How to troubleshoot this memory usage?

Posted by Camran on Server Fault See other posts from Server Fault or by Camran
Published on 2010-12-07T15:53:42Z Indexed on 2011/01/11 19:56 UTC
Read the original article Hit count: 203

Filed under:
|
|
|
|

I have a classifieds website.

I use PHP, MySql, and SOLR.

Solr uses a Servlet Container, in my case JETTY, which is java application.

I just noticed that something was terribly wrong on my website. I opened the terminal and entered the "top" command and noticed that JAVA was EATING all the cpu and mem.

Now I thought "Ok, maybe I need more mem and cpu" So I increased it. But along with the increase the java app started eating more.

This has never happened before, and it is either a bug, or a hack of some kind.

Anyways, I need to troubleshoot this now, and so I wonder how do I do this?

Can I somehow pinpoint exactly when the memory usage started to go up from some error log?

How does one troubleshoot this?

How do I prevent it? Is it possible to prevent too many requests somehow, if they are within a timeline?

Thanks

© Server Fault or respective owner

Related posts about linux

Related posts about apache