This is a persistent memory map (mmap) file-based session manager that works in both single-process and multi-process mode.
The MaxProcs directive in the magnus.conf file determines whether the server is running in single-process or multi-process mode. For more information, see the Sun Java System Web Server 6.1 SP12 NSAPI Programmer’s Guide.
You may want to enable MMapSessionManager to change its default parameters. You can also enable MMapSessionManager for a particular context if the server is running in single-process mode. To do so, edit the sun-web.xml file for the web application as in the following example. Note that persistence-type must be set to mmap.
<sun-web-app> ... <session-config> <session-manager persistence-type=”mmap”> ... </session-manager> ... </session-config> ... </sun-web-app>
For more information about the sun-web.xml file, see Chapter 7, Deploying Web Applications
The following table describes manager-properties properties for the MMapSessionManager session manager. The left column lists the property name, the middle column indicates the default value, and the right column describes what the property does.
Table 4–7 manager-properties Properties for MMapSessionManager
The MMapSessionManager can only store objects that implement java.io.Serializable.