Suddenly started hanging

pasupuleti2 created the topic: Suddenly started hanging
Suddenly jenkins started hanging. that keeps hanging every second. We have many projects in Jenkins. The jobs were running fine in the past. Yesterday I installed Perl plugins in jenkins and suddenly it started hanging. Nothing is dispalying.

Please help me to resolve this issue without loosing old Jenkins projects, Script, configurations and build history.

-Saritha

rajeshkumar replied the topic: Suddenly started hanging
First, check if Jenkins responds to the HTTP requests. For example, if it does but it always shows “Please wait while Jenkins is getting ready to work…”, please tell that to us. If it doesn’t respond to requests at all, please tell that to us, too.

The most common forms of hangups are:

Jenkins shows “Please wait while Jenkins is getting ready to work…” for long time and it never comes up.
Jenkins is not picking up HTTP requests, so all attempts to connect hang and no page is ever rendered. This is often caused by a dead lock.
Jenkins runs out of heap space and goes into a fatal GC spiral.

Either case, check the following steps to obtain further details:

1. See Obtaining a thread dump and obtain a thread dump.
wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump
2. Use jmap -heap to obtain the heap summary information. This is primarily to see if the system is in the GC spiral. If possible, add the -dump:format=b,file=heap.hprof option to obtain the full heap dump, or use kill -SIGABRT to generate the core dump. Send that to us and it’ll be lot easier for us to understand what’s going on.
download.oracle.com/javase/1,5.0/docs/tooldocs/share/jmap.html

Similarly, if the hang is the “Please wait while Jenkins is getting ready to work…” kind of hang, please repeat this process a few times with several minutes (or longer) interval and report them all.

Source – wiki.jenkins-ci.org/display/JENKINS/Jenkins+is+hanging
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

pasupuleti2 replied the topic: Suddenly started hanging
Rajesh,

Tried jmap command. I got below message.

C:\Program Files\Java\jre7\bin>jmap -dump:format=b,file=heapJMap.bin 7540
‘jmap’ is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Java\jre7\bin>JMap
‘JMap’ is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Java\jre7\bin>java -version
java version “1.7.0_51”
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)