Java process eating CPU; Why?
Posted
by
Camran
on Server Fault
See other posts from Server Fault
or by Camran
Published on 2011-01-04T18:50:20Z
Indexed on
2011/01/04
18:55 UTC
Read the original article
Hit count: 134
I have a Linux server which I have installed Java on.
Sometimes, and only sometimes when a large nr of visitors visit my website, the site hangs.
When I open the terminal and enter the "top" command to see whats going on, I can see that "Java
" process is eating CPU! Like 400%.
I have also tried ps aux
command, and can see that the command is from usr/bin/java
I have little experience in troubleshooting this kind of things, so I turn to you guys for help.
I have a java container installed (Jetty) which I must have in order to use SOLR (search engine) which is integrated into my website.
I can start and stop SOLR by:
etc/init.d/solr stop
But this didn't remove the java process from the "Top" command. Still java was eating 400% CPU.
Is there other methods to restart java only?
This has happened twice to me, and each time I have now restarted my entire servers and everithing is fine.
If you need more input let me know!
Thanks
© Server Fault or respective owner