Re: Monitoring memory usage of an external component

2012-06-22 Thread Eugene Gavrish
> *Does anyone here use a tool to monitor memory usage by individual > processes (or groups thereof), and run commands when certain levels are met? > * I'd like to kill and restart my java service (through supervisor) when it > gets above a certain size. simple bash-script with ps aux | grep java

Re: Monitoring memory usage of an external component

2012-06-21 Thread Cal Leeming [Simplicity Media Ltd]
Depending on the web application server you use, this can usually restrict the memory limit for you - uWSGI is a fine example of this. You can also use the 'poor mans' memory checks by checking the resident memory usage (not sure what that func is in Java), and checking if its over a certain limit

Monitoring memory usage of an external component

2012-06-20 Thread Marcin Tustin
Not strictly a django question, but one I hope someone else here might have faced. I have an a site which depends on a java web service (of my own creation). This seems to leak memory like a sieve, because of the various libraries involved. This is a problem because my host sets a limit on the tot