Solution
NNOTESMM.EXE is a Notes Shared Memory Manager. When the Domino server is started, Domino reserves a segment of memory (typically a quarter of the available memory). The NNOTESMM.EXE is launched when the Domino server is shut down. The task goes in and cleans up the memory instantaneously that the Domino server had used and releases the memory back to the operating system for reuse. The rationale to this is to allow a terminating process to release some system shared memory so that some other processes that get started later on can use the memory.

This application is launched when a terminating Notes process realizes that it has mapped shared system memory and no other Notes process has yet attached to it. NOTESMM attaches to all shared memory and prevents the OS from discarding it. This allows the other Notes processes to use the memory in the future.

We Loop until we are the last process or told to quit. Note that the call to OSProcessShouldQuit is also an implied call to "AccessAll", which gains access to all shared memory objects. This is important, and is the entire point of this program.

 

原来NNOTESMM.EXE是一个共享内存管理器,在启动Domino的时候,保留1/4的可利用的内存,当DOmino关闭的时候,NNOTESMM.EXE进程瞬间清理并释放Domino使用的内存。

posted on 2009-04-02 11:19  一份工作而已  阅读(565)  评论(0编辑  收藏  举报