Frequent peaks of CPU, caused by unknown java process











up vote
1
down vote

favorite












For some hours, I experience frequent peaks in the CPU usage of my laptop, due to a java process I don't know about, even if it is run by in my session (see firt line below).



enter image description here



Peaks occur irregularly (about every 5 minutes) and last about 20 seconds. I am not doing anything special when they occur (actually typing some text in TeXstudio). It continues even after having rebooted my system.



How could I narrow down the cause of this issue?



Edit: Thanks to Andrew's answer, I've found that the peaks are cause by /proc/4146/exe -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java... but I'm not sure what triggers it.










share|improve this question
























  • Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
    – Chai T. Rex
    Mar 29 '17 at 1:44












  • @ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
    – ebosi
    Mar 29 '17 at 1:55















up vote
1
down vote

favorite












For some hours, I experience frequent peaks in the CPU usage of my laptop, due to a java process I don't know about, even if it is run by in my session (see firt line below).



enter image description here



Peaks occur irregularly (about every 5 minutes) and last about 20 seconds. I am not doing anything special when they occur (actually typing some text in TeXstudio). It continues even after having rebooted my system.



How could I narrow down the cause of this issue?



Edit: Thanks to Andrew's answer, I've found that the peaks are cause by /proc/4146/exe -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java... but I'm not sure what triggers it.










share|improve this question
























  • Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
    – Chai T. Rex
    Mar 29 '17 at 1:44












  • @ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
    – ebosi
    Mar 29 '17 at 1:55













up vote
1
down vote

favorite









up vote
1
down vote

favorite











For some hours, I experience frequent peaks in the CPU usage of my laptop, due to a java process I don't know about, even if it is run by in my session (see firt line below).



enter image description here



Peaks occur irregularly (about every 5 minutes) and last about 20 seconds. I am not doing anything special when they occur (actually typing some text in TeXstudio). It continues even after having rebooted my system.



How could I narrow down the cause of this issue?



Edit: Thanks to Andrew's answer, I've found that the peaks are cause by /proc/4146/exe -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java... but I'm not sure what triggers it.










share|improve this question















For some hours, I experience frequent peaks in the CPU usage of my laptop, due to a java process I don't know about, even if it is run by in my session (see firt line below).



enter image description here



Peaks occur irregularly (about every 5 minutes) and last about 20 seconds. I am not doing anything special when they occur (actually typing some text in TeXstudio). It continues even after having rebooted my system.



How could I narrow down the cause of this issue?



Edit: Thanks to Andrew's answer, I've found that the peaks are cause by /proc/4146/exe -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java... but I'm not sure what triggers it.







java cpu cpu-load






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:24









Community

1




1










asked Mar 28 '17 at 22:53









ebosi

230112




230112












  • Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
    – Chai T. Rex
    Mar 29 '17 at 1:44












  • @ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
    – ebosi
    Mar 29 '17 at 1:55


















  • Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
    – Chai T. Rex
    Mar 29 '17 at 1:44












  • @ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
    – ebosi
    Mar 29 '17 at 1:55
















Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
– Chai T. Rex
Mar 29 '17 at 1:44






Press c in top to see the full command, then use the right arrow to see more about the command. It'll probably include the name of the Java class that's being executed. You can alternatively run ps aux | fgrep java.
– Chai T. Rex
Mar 29 '17 at 1:44














@ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
– ebosi
Mar 29 '17 at 1:55




@ChaiT.Rex Thanks! Indeed, running top -o PID (to sort processes by ID) and then hitting C easily led me to incriminate LanguageTool for an issue previously reported. Could you please write an answer that I'd be pleased to accept?
– ebosi
Mar 29 '17 at 1:55










3 Answers
3






active

oldest

votes

















up vote
2
down vote



accepted










In top, you can press c to show the whole command, then use to see more about the command, which will probably include the name of the Java class that's being executed.



Results are sorted by their CPU use (%CPU). If you want to sort results otherwise, you can run top -o <name of the colum> (e.g. top -o PID to sort by process ID, or top -o %MEM to sort processes by the amount of memory used).



You can alternatively run ps aux | fgrep java to see all running java processes.






share|improve this answer






























    up vote
    2
    down vote













    sudo ls -l /proc/PID/exe


    Will show you where it is located, which will help locate the app in question.






    share|improve this answer




























      up vote
      2
      down vote













      I spent awhile trying to track down a similar process that was using all of my CPU. If you have been using docker recently on your local machine, make sure to check whether the process that is using all your CPU is coming from docker.



      sudo docker container ls` to see running containers


      Run



      sudo docker stop <container-name>


      to stop it and



      sudo docker rm <container-name>


      to remove it.






      share|improve this answer










      New contributor




      Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.


















        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "89"
        };
        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',
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        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%2faskubuntu.com%2fquestions%2f897916%2ffrequent-peaks-of-cpu-caused-by-unknown-java-process%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        2
        down vote



        accepted










        In top, you can press c to show the whole command, then use to see more about the command, which will probably include the name of the Java class that's being executed.



        Results are sorted by their CPU use (%CPU). If you want to sort results otherwise, you can run top -o <name of the colum> (e.g. top -o PID to sort by process ID, or top -o %MEM to sort processes by the amount of memory used).



        You can alternatively run ps aux | fgrep java to see all running java processes.






        share|improve this answer



























          up vote
          2
          down vote



          accepted










          In top, you can press c to show the whole command, then use to see more about the command, which will probably include the name of the Java class that's being executed.



          Results are sorted by their CPU use (%CPU). If you want to sort results otherwise, you can run top -o <name of the colum> (e.g. top -o PID to sort by process ID, or top -o %MEM to sort processes by the amount of memory used).



          You can alternatively run ps aux | fgrep java to see all running java processes.






          share|improve this answer

























            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            In top, you can press c to show the whole command, then use to see more about the command, which will probably include the name of the Java class that's being executed.



            Results are sorted by their CPU use (%CPU). If you want to sort results otherwise, you can run top -o <name of the colum> (e.g. top -o PID to sort by process ID, or top -o %MEM to sort processes by the amount of memory used).



            You can alternatively run ps aux | fgrep java to see all running java processes.






            share|improve this answer














            In top, you can press c to show the whole command, then use to see more about the command, which will probably include the name of the Java class that's being executed.



            Results are sorted by their CPU use (%CPU). If you want to sort results otherwise, you can run top -o <name of the colum> (e.g. top -o PID to sort by process ID, or top -o %MEM to sort processes by the amount of memory used).



            You can alternatively run ps aux | fgrep java to see all running java processes.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 30 '17 at 0:59









            ebosi

            230112




            230112










            answered Mar 29 '17 at 21:24









            Chai T. Rex

            3,96611233




            3,96611233
























                up vote
                2
                down vote













                sudo ls -l /proc/PID/exe


                Will show you where it is located, which will help locate the app in question.






                share|improve this answer

























                  up vote
                  2
                  down vote













                  sudo ls -l /proc/PID/exe


                  Will show you where it is located, which will help locate the app in question.






                  share|improve this answer























                    up vote
                    2
                    down vote










                    up vote
                    2
                    down vote









                    sudo ls -l /proc/PID/exe


                    Will show you where it is located, which will help locate the app in question.






                    share|improve this answer












                    sudo ls -l /proc/PID/exe


                    Will show you where it is located, which will help locate the app in question.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 28 '17 at 23:59









                    Andrew Crouthamel

                    39919




                    39919






















                        up vote
                        2
                        down vote













                        I spent awhile trying to track down a similar process that was using all of my CPU. If you have been using docker recently on your local machine, make sure to check whether the process that is using all your CPU is coming from docker.



                        sudo docker container ls` to see running containers


                        Run



                        sudo docker stop <container-name>


                        to stop it and



                        sudo docker rm <container-name>


                        to remove it.






                        share|improve this answer










                        New contributor




                        Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          up vote
                          2
                          down vote













                          I spent awhile trying to track down a similar process that was using all of my CPU. If you have been using docker recently on your local machine, make sure to check whether the process that is using all your CPU is coming from docker.



                          sudo docker container ls` to see running containers


                          Run



                          sudo docker stop <container-name>


                          to stop it and



                          sudo docker rm <container-name>


                          to remove it.






                          share|improve this answer










                          New contributor




                          Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.




















                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            I spent awhile trying to track down a similar process that was using all of my CPU. If you have been using docker recently on your local machine, make sure to check whether the process that is using all your CPU is coming from docker.



                            sudo docker container ls` to see running containers


                            Run



                            sudo docker stop <container-name>


                            to stop it and



                            sudo docker rm <container-name>


                            to remove it.






                            share|improve this answer










                            New contributor




                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            I spent awhile trying to track down a similar process that was using all of my CPU. If you have been using docker recently on your local machine, make sure to check whether the process that is using all your CPU is coming from docker.



                            sudo docker container ls` to see running containers


                            Run



                            sudo docker stop <container-name>


                            to stop it and



                            sudo docker rm <container-name>


                            to remove it.







                            share|improve this answer










                            New contributor




                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            share|improve this answer



                            share|improve this answer








                            edited Nov 24 at 1:25









                            zx485

                            1,43831114




                            1,43831114






                            New contributor




                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered Nov 23 at 17:43









                            Programmingjoe

                            1212




                            1212




                            New contributor




                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            Programmingjoe is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






























                                 

                                draft saved


                                draft discarded



















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f897916%2ffrequent-peaks-of-cpu-caused-by-unknown-java-process%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 did Captain America manage to do this?

                                迪纳利

                                南乌拉尔铁路局