Saturday, February 12, 2005

What to do if WebSphere Studio hangs

What to do if WebSphere Studio hangs: "Introduction
Tools and applications sometimes hang (do not respond to any mouse or keyboard input) because of an infinite loop, deadlock, or other problem. IBM � WebSphere� Studio Application Developer (hereafter called Application Developer) is no exception. This article shows you how to identify the component where the hang occurs and determine whether it is due to user error, programming error, or a bug in the product. (Screenshots below are from Application Developer V5.1).
A technique provided by the Java JVM
The Java� JVM provides the means to produce a javacore at the activation of a combination of keys: pressing Ctrl-Break (on Windows) or Ctrl-\ (on Linux) produces a Signal which will cause the JVM to take a snapshot javacore. The program will continue running unimpeded otherwise. The technique to localize the hang is to produce a few snapshot javacore files and analyze them. We will provide two examples, one in a simple standalone Java program environment, another one running in the Application Developer environment. In both cases, once the program hangs, there is need to press Ctrl-C to terminate the program."

No comments:

Post a Comment