![]() |
|
Timed out sessions show when an idle session is discarded. Sessions are used to maintain a stateful HTTP connection. These sessions contain user profiles and other useful information.
The <default-session-timeout> tag specifies the timeout value. The default value is 30 minutes. It can be modified as:
session-timeout value. If lower value is set, these sessions may be discarded prematurely causing inconvenience to users.Viewing Sessions
To view the number of sessions from shell, use the status command. This displays the number of sessions created and sessions getting timed out. For example:
Sessions: 100 Session going to be timeout in next Timer iteration: 60
If the number of sessions timed-out are substantially lower than the session count in store, it means that many sessions are active and are consuming a lot of VM memory. In this case, it is better to set the session timeout to a lower value. If the application permits, reduce the session-timeout value. Where higher values are required, it is not possible to reduce it irrespective of performance status. The main aim is to keep the session count low.
To improve Server performance, an idle session is discarded.
Session Cleanup Time
You can use the<session-cleanup-time-seconds> tag for cleaning up stale sessions: <session-cleanup-time-seconds>1800</session-cleanup-time-seconds>
For optimal performance, set the value as half of <default-session-timeout> parameter.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |