I have a Linux server which I have installed Java on.
Sometimes, and only sometimes when a large number 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:
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 everything is fine.
If you need more input let me know!