All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-webcontainermanagerprops.html Maven / Gradle / Ivy

There is a newer version: 3.2-b03
Show newest version



To Configure Manager Properties for the Web Container

The session manager provides the means to configure how sessions are created and destroyed, where the session state is stored, and the maximum number of sessions that are available.

  1. In the navigation tree, expand the Configuration node.
  2. Select the configuration that you are changing.
  3. Under the configuration's node, select the Web Container node.

    The General Properties page opens.

  4. On the General Properties page, click the Manager Properties tab.

    The Manager Properties page opens.

  5. In the Reap Interval field, type the number of seconds before the inactive session data is deleted from the store.

    The default value is 60.

    Set this value lower than the frequency at which session data changes. For example, this value should be as low as possible (1 second) for a hit counter servlet on a frequently accessed web site; otherwise, you could lose the last few hits each time you restart the server.

  6. In the Max Sessions field, type the maximum number of sessions that can be in cache.

    A value of –1 indicates no limit to the number of sessions. The default value is –1.

    After the limit is reached, an attempt to create a new session causes an IllegalStateException to be thrown.

  7. In the Session Filename field, type the absolute or relative path to the directory in which the session state is preserved between application restarts, if preserving the state is possible.

    If this path is not set, the session state is not preserved. By default, this path is not set.

    A relative path is relative to the temporary directory for this web application.

    This setting is applicable only if the Persistence Type is memory. To set the Persistence Type, see To Configure Availability Settings for the Web Container.

  8. (Optional) In the Additional Properties section, specify additional properties.

    The GlassFish Server does not define any additional properties for the session manager.

    • To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.
    • To modify a property, edit that property's Value field.
    • To delete a property, select the checkbox to the left of the Name field of the property that you are deleting, then click the Delete Properties button.
  9. Click Save.

    Tip - To return to the default settings, click the Load Defaults button, then click Save.


See Also
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy