MMap 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. The Maxprocs is deprecated in Web Server 7.0.
You can enable MMap to change its default parameters. You can also enable MMap 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 9, Deploying Web Applications.
The following table describes manager-properties properties for the MMap session manager.
Table 6–7 manager-properties Properties for MMap
MMap can only store objects that implement java.io.Serializable.