{"id":2018,"date":"2017-12-07T08:42:42","date_gmt":"2017-12-07T08:42:42","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2018"},"modified":"2020-01-09T09:44:06","modified_gmt":"2020-01-09T09:44:06","slug":"suddenly-started-hanging","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/suddenly-started-hanging\/","title":{"rendered":"Suddenly started hanging"},"content":{"rendered":"<p><strong>pasupuleti2 created the topic: Suddenly started hanging<\/strong><br \/>\nSuddenly 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.<\/p>\n<p>Please help me to resolve this issue without loosing old Jenkins projects, Script, configurations and build history.<\/p>\n<p>-Saritha<\/p>\n<p><strong>rajeshkumar replied the topic: Suddenly started hanging<\/strong><br \/>\nFirst, check if Jenkins responds to the HTTP requests. For example, if it does but it always shows &#8220;Please wait while Jenkins is getting ready to work&#8230;&#8221;, please tell that to us. If it doesn&#8217;t respond to requests at all, please tell that to us, too.<\/p>\n<p>The most common forms of hangups are:<\/p>\n<p>Jenkins shows &#8220;Please wait while Jenkins is getting ready to work&#8230;&#8221; for long time and it never comes up.<br \/>\nJenkins 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.<br \/>\nJenkins runs out of heap space and goes into a fatal GC spiral.<\/p>\n<p>Either case, check the following steps to obtain further details:<\/p>\n<p>1. See Obtaining a thread dump and obtain a thread dump.<br \/>\nwiki.jenkins-ci.org\/display\/JENKINS\/Obtaining+a+thread+dump<br \/>\n2. 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&#8217;ll be lot easier for us to understand what&#8217;s going on.<br \/>\n<a href=\"http:\/\/download.oracle.com\/javase\/1,5.0\/docs\/tooldocs\/share\/jmap.html\" target=\"_blank\" rel=\"noopener\">download.oracle.com\/javase\/1,5.0\/docs\/tooldocs\/share\/jmap.html <\/a><\/p>\n<p>Similarly, if the hang is the &#8220;Please wait while Jenkins is getting ready to work&#8230;&#8221; kind of hang, please repeat this process a few times with several minutes (or longer) interval and report them all.<\/p>\n<p>Source &#8211; <a href=\"http:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Jenkins+is+hanging\" target=\"_blank\" rel=\"noopener\">wiki.jenkins-ci.org\/display\/JENKINS\/Jenkins+is+hanging<\/a><br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>pasupuleti2 replied the topic: Suddenly started hanging<\/strong><br \/>\nRajesh,<\/p>\n<p>Tried jmap command. I got below message.<\/p>\n<p>C:\\Program Files\\Java\\jre7\\bin&gt;jmap -dump:format=b,file=heapJMap.bin 7540<br \/>\n&#8216;jmap&#8217; is not recognized as an internal or external command,<br \/>\noperable program or batch file.<\/p>\n<p>C:\\Program Files\\Java\\jre7\\bin&gt;JMap<br \/>\n&#8216;JMap&#8217; is not recognized as an internal or external command,<br \/>\noperable program or batch file.<\/p>\n<p>C:\\Program Files\\Java\\jre7\\bin&gt;java -version<br \/>\njava version &#8220;1.7.0_51&#8221;<br \/>\nJava(TM) SE Runtime Environment (build 1.7.0_51-b13)<br \/>\nJava HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230;. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[434],"class_list":["post-2018","post","type-post","status-publish","format-standard","hentry","category-jenkins","tag-hanging"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2018","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2018"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2018\/revisions"}],"predecessor-version":[{"id":5341,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2018\/revisions\/5341"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2018"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}