Recommended Data Collection for Crashes and Hangs in the Application Server ( Windows )
- Download Sysinternals Process Utilities - http://technet.microsoft.com/en-us/sysinternals/cb56073f-62a3-4ed8-9dd6-40c84cb9e2f5.aspx
- Process Explorer
- Enable Control-L ( View -> Lower Pane Panel )
- Enable View -> Select Columns
- Process Memory
- Select All Except Private Bytes History
- Handle
- Select All
- File -> Save as Handle.txt
- DLL
- Select All
- File -> Save as Dll.txt
- Process Memory
- Process Explorer
Complete Application server version
<appserver_install-directory>/bin/asadmin version --verbose
- Tar of the config files
<sjsas-install>/config/asenv.conf
<sjsas-install>/domains/<domain_name>/<instance-config>/*
For 8.x and 9.x
<sjas-install>/nodeagents/<nodeagent_name>/<instance_name>/config/*
- High CPU Application Server Process
- Launch Process Explorer and locate the application process that indicates high cpu ( java.exe and appserv.exe )

- Right-click properties
- locate the tid of the offending process
- Click on tid ( in this case 3512 ) and click on button "Stack"
- Copy the content of the stack and paste it into a file
- Collect the Java Thread Stack dump using the instructions below steps.pdf
Application Server Process Hangs
Self-help
- For 9.x
- Please ensure that the worker threads in the domain.xml is tuned. Default is 5.
eg
Change
<request-processing header-buffer-length-in-bytes="8192" initial-thread-count="2" request-timeout-in-seconds="30" thread-count="5" thread-increment="1"/>
to
<request-processing header-buffer-length-in-bytes="8192" initial-thread-count="2" request-timeout-in-seconds="30" thread-count="128" thread-increment="1"/> - Please refer to this Sun blog for more information http://weblogs.java.net/blog/jfarcand/archive/2007/03/configuring_gri_2.html
- Please ensure that the worker threads in the domain.xml is tuned. Default is 5.
Data Collection
- Collection of Java Thread Stack Dump ( a few sets of data over a period of time )
- 7.x and 8.x

This is a third-party tool : Run the following tool from adaptj - http://www.adaptj.com/main/download - Suggested instructions to run Adaptj 's stacktrace : steps.pdf

Made sure Java option -Xrs is not enabled
- Suggested instructions to run Adaptj 's stacktrace : steps.pdf
- 9.x
- Run the command : asadmin generate-jvm-report --type=thread
- 7.x and 8.x
Application Server Process Crash
- Check and sent any window dump file ( as a result of the application server crash )
- Check for any hs_err_pid.log. By default, the file is created in the working directory of the process
- When was the issue noticed first?(Please provide the exact time stamp of the issue). Does this issue happen during high load or any particular activity? Explain.
- How often it is occurring?
- Provide the server.log at the time of crash and the access log around the time of the issue
<appserver_install-directory>/domains/<domain_name>/logs/server.log
<appserver_install-directory>/nodeagents/<nodeagent_name>/<instance_name>/logs/server.log