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).
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
add a comment |
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).
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
Pressc
intop
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 runps aux | fgrep java
.
– Chai T. Rex
Mar 29 '17 at 1:44
@ChaiT.Rex Thanks! Indeed, runningtop -o PID
(to sort processes by ID) and then hittingC
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
add a comment |
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).
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
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).
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
java cpu cpu-load
edited Apr 13 '17 at 12:24
Community♦
1
1
asked Mar 28 '17 at 22:53
ebosi
230112
230112
Pressc
intop
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 runps aux | fgrep java
.
– Chai T. Rex
Mar 29 '17 at 1:44
@ChaiT.Rex Thanks! Indeed, runningtop -o PID
(to sort processes by ID) and then hittingC
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
add a comment |
Pressc
intop
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 runps aux | fgrep java
.
– Chai T. Rex
Mar 29 '17 at 1:44
@ChaiT.Rex Thanks! Indeed, runningtop -o PID
(to sort processes by ID) and then hittingC
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
New contributor
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Mar 30 '17 at 0:59
ebosi
230112
230112
answered Mar 29 '17 at 21:24
Chai T. Rex
3,96611233
3,96611233
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
sudo ls -l /proc/PID/exe
Will show you where it is located, which will help locate the app in question.
answered Mar 28 '17 at 23:59
Andrew Crouthamel
39919
39919
add a comment |
add a comment |
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
edited Nov 24 at 1:25
zx485
1,43831114
1,43831114
New contributor
answered Nov 23 at 17:43
Programmingjoe
1212
1212
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Press
c
intop
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 runps 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 hittingC
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