Sunday 7 July 2013

How to Manually generate javacores for WAS processes ?


This is the method recommended in situations where the server hangs shortly after startup. It is also recommended when other not work, or when the system is under extremely heavy load.

This method uses an alternative method for starting an application server in a mode which accepts the Ctrl + Break keyboard combination to trigger a javacore. This method requires some preparation steps, and the affected server will need to be restarted. This method has the advantage that generating javacores does not require the additional overhead of using another tool (such as the administrative console or wsadmin tool).

Procedure:

  1. Open the command prompt.

  2. Navigate to "bin" subdirectory under the server's profile root (<WAS_HOME>\profiles\<PROFILE_NAME>\bin)

  3. From the "bin" subdirectory, execute the one of the following commands. Choose the command from the list below based on the type of server that the javacore will be generated from.

    Application Servers
    startServer.bat SERVER_NAME -script

    Nodeagents
    startNode.bat -script

    Deployment Managers (DMGR)
    startManager.bat -script

  4. This will generate a script named start_<SERVER_NAME>.bat in the current directory.

  5. Stop the server that requires the javacore.

  6. Using the new script, start the application server (or nodeagent or deployment manager).
    start_ server1 .bat

  7. While the server is running, from the same command prompt window, issue the keyboard combination Ctrl + Break. Output on the screen should immediately display that a javacore is being generated.

  8. Repeat step 7 as many times as required to collect javacores.

  9. Note the location of the javacores and collect them. They will usually be output to the current directory or the profile root.
  1. The server can be stopped either by issuing a stopServer.bat command, or terminated immediately with a keyboard combination Ctrl + C.

Hope this post will help for your environment.

Related Post:

Effort only fully releases its reward after a person refuses to quit.”

Regards,
Akhilesh B. Humbe

1 comment:

  1. Hi akhilesh,

    Very good note.Keep it up.

    Regards,
    Sachin

    ReplyDelete

Popular Posts