Glassfish "hangs"?

From time to time I see the messages on glassfish mailing list, reporting that Glassfish hangs at some point. I'd like to provide some simple instructions, which will help Glassfish team to find the problem and help you asap.

  1. Don't panic. In most cases the "hang" is caused by custom (web) application. 
  2. When you found that Glassfish is not responsive - pls. take a snapshot of threads dump:
    • Find the pid of the Glassfish process. Glassfish 2.x: jps | grep PELaunch, or Glassfish 3.x: jps | grep ASMain
    • Force threads dump to be written to the jvm.log file: kill -3 <pid>
  3. Locate jvm.log file (usually it could be found in the instance log directory): GF/domains/domain1/logs/jvm.log
  4. You can check the jvm.log file and make sure listed threads are not blocked inside your (web) application classes.
  5. If not - report the problem on glassfish users mailing list or forum, providing as detailed info/observations on the usecase as possible.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

oleksiys

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today