Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Monitoring memory usage of an external component
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcin Tustin  
View profile  
 More options Jun 20 2012, 12:00 pm
From: Marcin Tustin <marcin.tus...@gmail.com>
Date: Wed, 20 Jun 2012 12:00:07 -0400
Local: Wed, Jun 20 2012 12:00 pm
Subject: Monitoring memory usage of an external component

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 total usage
of memory by all of my processes.

*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.

(I know about JVM memory options. These are not really effective for my
needs).

--
Marcin Tustin
Tel: 07773 787 105


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cal Leeming [Simplicity Media Ltd]  
View profile  
 More options Jun 21 2012, 7:00 pm
From: "Cal Leeming [Simplicity Media Ltd]" <cal.leem...@simplicitymedialtd.co.uk>
Date: Fri, 22 Jun 2012 00:00:42 +0100
Local: Thurs, Jun 21 2012 7:00 pm
Subject: Re: Monitoring memory usage of an external component

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.. if it is, then you execute some code. This is a pretty
ghetto approach though ;/

You can also do it externally with a process checker, but again that's
really designed for shared hosting providers to stop abuse and run away
threads.

Hope this helps

Cal

On Wed, Jun 20, 2012 at 5:00 PM, Marcin Tustin <marcin.tus...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eugene Gavrish  
View profile  
 More options Jun 22 2012, 3:56 am
From: Eugene Gavrish <eug...@gmail.com>
Date: Fri, 22 Jun 2012 00:56:55 -0700 (PDT)
Local: Fri, Jun 22 2012 3:56 am
Subject: Re: Monitoring memory usage of an external component

> *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 lists all your java-
processes. You need VSZ column

So you can write a simple cron-based solution


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »