JBOSS high CPU utilization

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















My Application is installed on JBOSS EAp 6.1 .Few days back we found that the application slowness or end user not able to access the application.



We took ps -aux logs, and one of the output is below.



[Mon Jun 12 08:55:29.218 2017] 500 46257 90.7 10.2 22713508 6779044 ? Sl Apr26 61791:48 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx4096m -XX:MaxPermSize=512m -Djava


Looks like this java process was hogging my CPU.but also its in Sl mode. This is my assumption.



Can this be the reason of application problem?



What could be the reason of high cpu usage?



What is the role of this process in JBOSS application server?



We didn't take thread dump and Gc logs (gc logs not enabled later we checked) and restarted the server. Now no logs.










share|improve this question




























    0















    My Application is installed on JBOSS EAp 6.1 .Few days back we found that the application slowness or end user not able to access the application.



    We took ps -aux logs, and one of the output is below.



    [Mon Jun 12 08:55:29.218 2017] 500 46257 90.7 10.2 22713508 6779044 ? Sl Apr26 61791:48 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx4096m -XX:MaxPermSize=512m -Djava


    Looks like this java process was hogging my CPU.but also its in Sl mode. This is my assumption.



    Can this be the reason of application problem?



    What could be the reason of high cpu usage?



    What is the role of this process in JBOSS application server?



    We didn't take thread dump and Gc logs (gc logs not enabled later we checked) and restarted the server. Now no logs.










    share|improve this question


























      0












      0








      0








      My Application is installed on JBOSS EAp 6.1 .Few days back we found that the application slowness or end user not able to access the application.



      We took ps -aux logs, and one of the output is below.



      [Mon Jun 12 08:55:29.218 2017] 500 46257 90.7 10.2 22713508 6779044 ? Sl Apr26 61791:48 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx4096m -XX:MaxPermSize=512m -Djava


      Looks like this java process was hogging my CPU.but also its in Sl mode. This is my assumption.



      Can this be the reason of application problem?



      What could be the reason of high cpu usage?



      What is the role of this process in JBOSS application server?



      We didn't take thread dump and Gc logs (gc logs not enabled later we checked) and restarted the server. Now no logs.










      share|improve this question
















      My Application is installed on JBOSS EAp 6.1 .Few days back we found that the application slowness or end user not able to access the application.



      We took ps -aux logs, and one of the output is below.



      [Mon Jun 12 08:55:29.218 2017] 500 46257 90.7 10.2 22713508 6779044 ? Sl Apr26 61791:48 /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/bin/java -D[Standalone] -server -XX:+UseCompressedOops -Xms2048m -Xmx4096m -XX:MaxPermSize=512m -Djava


      Looks like this java process was hogging my CPU.but also its in Sl mode. This is my assumption.



      Can this be the reason of application problem?



      What could be the reason of high cpu usage?



      What is the role of this process in JBOSS application server?



      We didn't take thread dump and Gc logs (gc logs not enabled later we checked) and restarted the server. Now no logs.







      linux java webserver jboss






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 16 '17 at 13:38









      Kusalananda

      135k17255421




      135k17255421










      asked Jun 16 '17 at 13:20









      user236419user236419

      11




      11




















          1 Answer
          1






          active

          oldest

          votes


















          0














          The output you are showing doesn't show any application except the javavm running as a server.



          High CPU load is quiet often seen in Java Applications when the used memory is nearly at the limit. The garbage collection runs all the time to free up memory again. This slows down the application performance and utilized nearly all cpu cycles.



          Since you already killed the process, the chances to figure it out is gone.



          For the future my suggestion is to configure a way to monitor the JVM:



          • Adding GCLog is a simple approach.

          • Adding JMX Remote Monitoring (please add authentication!) see:
            http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

          • Allowing a third party agent to directly attach to the java virtual machine.

          If you are again in such a situation, you can do following:



          Getting a Java Stack-Trace of the Java Instance:

          (Java running with PID 46257)
          jstack -l 46257 >jstack-output.log



          Then make a Heap-Dump to further analytics:
          jmap -dump:live,format=b,file=jmap-heapdump.hprof 46257



          Analysing the hprof-heapdumps can be done by various tools ( google: java heapdump analyzer ). This may help you to get a better cause for the high cpu load.






          share|improve this answer






















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f371525%2fjboss-high-cpu-utilization%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The output you are showing doesn't show any application except the javavm running as a server.



            High CPU load is quiet often seen in Java Applications when the used memory is nearly at the limit. The garbage collection runs all the time to free up memory again. This slows down the application performance and utilized nearly all cpu cycles.



            Since you already killed the process, the chances to figure it out is gone.



            For the future my suggestion is to configure a way to monitor the JVM:



            • Adding GCLog is a simple approach.

            • Adding JMX Remote Monitoring (please add authentication!) see:
              http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

            • Allowing a third party agent to directly attach to the java virtual machine.

            If you are again in such a situation, you can do following:



            Getting a Java Stack-Trace of the Java Instance:

            (Java running with PID 46257)
            jstack -l 46257 >jstack-output.log



            Then make a Heap-Dump to further analytics:
            jmap -dump:live,format=b,file=jmap-heapdump.hprof 46257



            Analysing the hprof-heapdumps can be done by various tools ( google: java heapdump analyzer ). This may help you to get a better cause for the high cpu load.






            share|improve this answer



























              0














              The output you are showing doesn't show any application except the javavm running as a server.



              High CPU load is quiet often seen in Java Applications when the used memory is nearly at the limit. The garbage collection runs all the time to free up memory again. This slows down the application performance and utilized nearly all cpu cycles.



              Since you already killed the process, the chances to figure it out is gone.



              For the future my suggestion is to configure a way to monitor the JVM:



              • Adding GCLog is a simple approach.

              • Adding JMX Remote Monitoring (please add authentication!) see:
                http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

              • Allowing a third party agent to directly attach to the java virtual machine.

              If you are again in such a situation, you can do following:



              Getting a Java Stack-Trace of the Java Instance:

              (Java running with PID 46257)
              jstack -l 46257 >jstack-output.log



              Then make a Heap-Dump to further analytics:
              jmap -dump:live,format=b,file=jmap-heapdump.hprof 46257



              Analysing the hprof-heapdumps can be done by various tools ( google: java heapdump analyzer ). This may help you to get a better cause for the high cpu load.






              share|improve this answer

























                0












                0








                0







                The output you are showing doesn't show any application except the javavm running as a server.



                High CPU load is quiet often seen in Java Applications when the used memory is nearly at the limit. The garbage collection runs all the time to free up memory again. This slows down the application performance and utilized nearly all cpu cycles.



                Since you already killed the process, the chances to figure it out is gone.



                For the future my suggestion is to configure a way to monitor the JVM:



                • Adding GCLog is a simple approach.

                • Adding JMX Remote Monitoring (please add authentication!) see:
                  http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

                • Allowing a third party agent to directly attach to the java virtual machine.

                If you are again in such a situation, you can do following:



                Getting a Java Stack-Trace of the Java Instance:

                (Java running with PID 46257)
                jstack -l 46257 >jstack-output.log



                Then make a Heap-Dump to further analytics:
                jmap -dump:live,format=b,file=jmap-heapdump.hprof 46257



                Analysing the hprof-heapdumps can be done by various tools ( google: java heapdump analyzer ). This may help you to get a better cause for the high cpu load.






                share|improve this answer













                The output you are showing doesn't show any application except the javavm running as a server.



                High CPU load is quiet often seen in Java Applications when the used memory is nearly at the limit. The garbage collection runs all the time to free up memory again. This slows down the application performance and utilized nearly all cpu cycles.



                Since you already killed the process, the chances to figure it out is gone.



                For the future my suggestion is to configure a way to monitor the JVM:



                • Adding GCLog is a simple approach.

                • Adding JMX Remote Monitoring (please add authentication!) see:
                  http://docs.oracle.com/javase/7/docs/technotes/guides/management/agent.html

                • Allowing a third party agent to directly attach to the java virtual machine.

                If you are again in such a situation, you can do following:



                Getting a Java Stack-Trace of the Java Instance:

                (Java running with PID 46257)
                jstack -l 46257 >jstack-output.log



                Then make a Heap-Dump to further analytics:
                jmap -dump:live,format=b,file=jmap-heapdump.hprof 46257



                Analysing the hprof-heapdumps can be done by various tools ( google: java heapdump analyzer ). This may help you to get a better cause for the high cpu load.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 16 '17 at 17:36









                Daniel AndersenDaniel Andersen

                1757




                1757



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f371525%2fjboss-high-cpu-utilization%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown






                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?