IBM Support

MustGather: Web container problems in WebSphere Application Server and WebSphere Liberty

Troubleshooting


Problem

Collecting data for problems with the IBM WebSphere web container and Servlet engine component. Gathering this MustGather information before you call IBM support can help you understand the problem and save time analyzing the data.

Resolving The Problem

If you contacted support, continue on to the component-specific MustGather information. Otherwise, click MustGather: Read first for all WebSphere Application Server and Liberty.

Servlet engine and web container specific MustGather information:
If possible, provide a simple test case that has no external dependencies. If a test case cannot be provided, collect the following data.
  1. Run genHistoryReport.bat or genHistoryReport.sh, which is located in the following directory:
    install_root/profiles/profile_name/bin
     
  2. Stop the web server and delete all Web server logs and the http_plugin.log file on the web server system.
     
  3. If you suspect that the problem might be related to the WebSphere Application Server plug-in, or to the web server itself, enable a full plug-in trace. To perform a plug-in trace, see the Plug-in MustGather documents.
     
  4. Start the web server.
     
  5. Important: Synchronize clocks on all web servers and WebSphere Application Server systems.
     
  6. Enable and collect Application Server traces with the following trace string:
Enable the trace for Traditional WebSphere Application Server:
Note: For detailed instructions on enabling trace, see How to setup a Trace.
Trace Specification:
*=info:com.ibm.ws.webcontainer*=all:com.ibm.wsspi.webcontainer*=all:HTTPChannel=all:GenericBNF=all

Note: There should not be any spaces or '.' between webcontainer and '*' for the trace strings shown.

For Remote Request Dispatcher issues, append this string as well:

com.ibm.ws.rrd*=all

For Async Request Dispatcher issues, append this string as well:

com.ibm.ws.ard*=all

Make sure to increase the maximum trace file size to 100MB and increase the maximum number of the historical log files to 10.

7. Take backup and delete all Application Server logs:
  • native_stderr.log
  • native_stdout.log
  • SystemOut.log
  • SystemErr.log

The log files are located in the following directory:
Note: If you configured to write Application Server log files into a different location, then clear them accordingly.
install_root/profiles/profile_name/logs/server_name
8. Delete all WebSphere Application Server FFDC logs. FFDC files are located in the following directory:
Note: If you configured to write FFDC log files into a different location, then clear them accordingly.
install_root/profiles/profile_name/logs/ffdc
9. Restart the server and re-create the issue.

Enable the trace for WebSphere Liberty:
1. Open your server.xml file located within the <LIBERTY_HOME>/usr/servers/<server name>/ directory

2. Add the following <logging> element:

<logging traceSpecification="com.ibm.ws.webcontainer*=all:com.ibm.wsspi.webcontainer*=all:HTTPChannel=all:GenericBNF=all:HTTPDispatcher=all" traceFileName="trace.log" maxFileSize="100" maxFiles="10" traceFormat="BASIC" />

Note: When using Jakarta EE 10 feature or servlet-6.0 feature with Liberty use below <logging> element

<logging traceSpecification="io.openliberty.webcontainer*=all:com.ibm.ws.webcontainer*=all:com.ibm.wsspi.webcontainer*=all:HTTPChannel=all:GenericBNF=all:HTTPDispatcher=all" traceFileName="trace.log" maxFileSize="100" maxFiles="10" traceFormat="BASIC" />

3. Clear and backup old log files within <LIBERTY_HOME>/usr/servers/<server name>/logs directory

4. Stop the application server then start the server with the following parameter added

       server start <SERVER_NAME> --clean

5. Re-create the issue. 
6. Run the following command from the bin directory:
      server dump <SERVER_NAME>
      (this creates a .zip file in the /usr/servers/<SERVER_NAME>/ directory)



When the problem is re-created, collect the following data:
Traditional WebSphere Application Server:
  1. Capture a browser screen displaying the error with friendly HTTP Errors disabled. Press <Alt>+<PrtSc> to capture the current browser window into the clipboard. Paste that into a file.
     
  2. Collect the following documents and information:
    1. Were clocks synchronized?
    2. The Application Server logs:
      install_root/profiles/profile_name/logs/server_name
    3. FFDC logs with the current date from the following directory:
      install_root/profiles/profile_name/logs/ffdc
    4. The server.xml file that is located in the directory:
      install_root/profiles/profile_name/config/cells/cell_name/nodes/node_name/servers/server_name
    5. The http_plugin.log file.
    6. The plugin-cfg.xml file.
    7. The web server configuration files, such as httpd.conf for IBM HTTP Server.
    8. The web server logs, such as access and error logs for IBM HTTP Server.
    9. Screen capture.
    10. The historyReport.html file from running genHistoryReport.bat or genHistoryReport.sh.
    11. Run collector.sh/collector.bat tool from install_root/bin. Follow the instructions to run the collector tool and provide the hostname -ND-WASenv.jar or hostname -Base -WASenv.jar file.
WebSphere Liberty:
  • .zip file in the /usr/servers/<SERVER_NAME/ directory that are created by the server dump.

For a listing of all technotes, downloads, and educational materials specific to the servlet engine and web container components, search the WebSphere Application Server support site.
 

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"ARM Category":[{"code":"a8m50000000CdEtAAK","label":"Web Container\/Servlet issues"}],"ARM Case Number":"","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"18.0.0;8.0.0;8.5.0;8.5.5;9.0.0;9.0.5"},{"Product":{"code":"SS7JFU","label":"WebSphere Application Server - Express"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 January 2023

UID

swg21384592