HTTP session manager troubleshooting tips

 

+

Search Tips   |   Advanced Search

 

If you are having problems creating or using HTTP sessions with your Web application hosted by WebSphere Application Server, here are some steps to take:

  1. See HTTP session aren't getting created or are getting dropped to see if your specific problem is discussed.

  2. View the JVM logs for the application server which hosts the problem application:

    1. First, look at messages written while each application is starting. They will be written between the following two messages

      Starting application: application
      .....................
      Application started: application
      

    2. Within this block, look for any errors or exceptions containing a package name of com.ibm.ws.webcontainer.httpsession. If none are found, this is an indication that the session manager started successfully.

    3. Error "SRVE0054E: An error occurred while loading session context and Web application" indicates that SessionManager didn't start properly for a given application.

    4. Look within the logs for any Session Manager related messages. These messages will be in the format SESNxxxxE and SESNxxxxW for errors and warnings, respectively, where xxxx is a number identifying the precise error. Look up the extended error definitions in the Session Manager message table.

    5. Use the Log Analyzer tool to browse the service log (activity.log) file for clues.

    6. See Best practices for using HTTP Sessions.

    7. To dynamically view the number of sessions as a Web application is running, enable performance monitoring for HTTP sessions. This will give you an indication as to whether sessions are actually being created.

    8. To learn how to view the http session counters as the application runs, see Monitoring performance with Tivoli Performance Viewer.

    9. Alternatively, a special servlet can be invoked that displays the current configuration and statistics related to session tracking. This servlet has all the counters that are in performance monitor tool and has some additional counters.

      • Servlet name: com.ibm.ws.webcontainer.httpsession.IBMTrackerDebug.

      • It can be invoked from any web module which is enabled to serve by class name. For example, using default_app,...

        http://localhost:9080/servlet/com.ibm.ws.webcontainer.httpsession.IBMTrackerDebug

      • If you are viewing the module via the serve-by-class-name feature, be aware that it may be viewable by anyone who can view the application. You may wish to map a specific, secured URL to the servlet instead and disable the serve-servlets-by-classname feature.

  3. Enable tracing for the HTTP Session Manager component:

    • Use the trace specification com.ibm.ws.webcontainer.httpsession.*=all=enabled. Follow the instructions for dumping and browsing the trace output to narrow the origin of the problem.

    • If you are using persistent sessions based on memory replication, also enable trace for com.ibm.ws.drs.*.

  4. If you are using database-based persistent sessions, look for problems related to the data source the Session Manager relies on to keep session state information. For details on diagnosing database related problems see Errors accessing a datasource or connection pool

 

Error message SRVE0079E Servlet host not found after you define a port

Error message SRVE0079E can occur after you define the port in WebContainer > HTTP Transports for a server, indicating that you do not have the port defined in your virtual host definitions. To define the port,

  1. On the administrative console, go to...

    Environment | Virtual Hosts | default_host | Host Aliases | New

  2. Define the new port on host "*"

 

The application server gets EC3 - 04130007 ABENDs

To prevent an EC3 - 04130007 abend from occuring on the application server, change the HTTP Output timeout value. The custom property ConnectionResponseTimeout specifies the maximum number of seconds the HTTP port for an individual server can wait when trying to read or write data.

If none of these steps fixes your problem, check to see if the problem has been identified and documented by looking at the available online support (hints and tips, technotes, and fixes). If you don't find your problem listed there contact IBM support.

IBM Support has documents that can save you time gathering information needed to resolve this problem. Before opening a PMR, see the IBM Support page.


 

Related Tasks

Troubleshoot by task
Troubleshoot by component