How can I find out how much memory is used by a cron job?
Background:
I manage an account at WebFaction. It has a memory limit. I have a cron
job that runs every night, it generally is not a problem, but last night
it chewed up a ton of memory and triggered a limit alarm at WF.
I don't know
On Fri, 2007-09-21 at 08:27 -0400, Kent Johnson wrote:
How can I find out how much memory is used by a cron job?
Background:
I manage an account at WebFaction. It has a memory limit. I have a cron
job that runs every night, it generally is not a problem, but last night
it chewed up a ton
At 8:27 AM -0400 9/21/07, Kent Johnson wrote:
How can I find out how much memory is used by a cron job?
... on WebFaction
Hi Kent:
Here's how WebFaction says they determine memory usage:
http://blog.webfaction.com/memory-usage
One crude approach would be to fire off the ps query every few
On 9/21/07, Kent Johnson [EMAIL PROTECTED] wrote:
There is also the Python library function
resource.getrusage() but it doesn't seem to help - the ru_maxrss
parameter is always 0.
getrusage(2) on my CentOS 5 box says most of the rusage fields are
not implemented in the Linux kernel. That
Alex Hewitt wrote:
On Fri, 2007-09-21 at 08:27 -0400, Kent Johnson wrote:
Is there some way I can
wrap the cron job to log the memory used by the process?
One simple way 'ps aux | grep myjob'
If you loop on this and redirect the output to a file you can watch your
program grow. There is
On 9/21/07, Ben Scott [EMAIL PROTECTED] wrote:
(Note: Syntax in the above not checked. Testing is advised.)
D'oh! At the least, the second crontab entry should be:
0-30/2 02 * * * ps --no-header -C myjob -o pid,start,time,vsz,rss,cmd
$HOME/myjob.pslog
Note that the above now uses
On 9/21/07, Alex Hewitt [EMAIL PROTECTED] wrote:
One simple way 'ps aux | grep myjob'
A slightly improved version might be:
ps -C myjob -o pid,start,time,vsz,rss,cmd
In the above, myjob has to be the actual executable file name.
Sometimes that's not what you might expect; it depends on how
On Fri, 2007-09-21 at 09:44 -0400, Kent Johnson wrote:
Alex Hewitt wrote:
On Fri, 2007-09-21 at 08:27 -0400, Kent Johnson wrote:
Is there some way I can
wrap the cron job to log the memory used by the process?
One simple way 'ps aux | grep myjob'
If you loop on this and redirect
On Wed, 19 Sep 2007 07:18:08 -0400
Jim Kuzdrall [EMAIL PROTECTED] wrote:
:: Overview
Overwhelmed by formatting choices in OpenOffice Writer? Continually
fiddling with formatting that never comes up quite right for your
present document? Help is on the way!
And so it was. Many
Hi, Jim ( list) -
One more thing. And another opportunity for thanking you for last night's
presentation, as well as a chance for me to give something back. The OOo
gray-background-color problem appears to be SOLVED. (See 4. below.)
For years, ever since giving up on Microsoft Windows in fact,
On 9/21/07, Bill Sconce [EMAIL PROTECTED] wrote:
One more thing. And another opportunity for thanking you for last night's
presentation, as well as a chance for me to give something back. The OOo
gray-background-color problem appears to be SOLVED. (See 4. below.)
If the designers of X-Windows
On 09/21/2007 03:37 PM, Ben Scott wrote:
http://www.art.net/~hopkins/Don/unix-haters/x-windows/disaster.html
I have a bunch of disagreements with Unix Haters book, the first of
which is that many of the problems were implementation problems (app X
on platform Y does Z) rather than a design
Bill Sconce wrote:
On Wed, 19 Sep 2007 07:18:08 -0400
Jim Kuzdrall [EMAIL PROTECTED] wrote:
:: Overview
Overwhelmed by formatting choices in OpenOffice Writer? Continually
fiddling with formatting that never comes up quite right for your
present document? Help is on the way!
Hitting www.flickr.com and using keywords GNHLUG brings up such
memorable moments as:
- Bill McGonigle and his WiFi antenna-on-a-board at Hosstraders
- maddog and Jarod Wilson at the MythTV installfest
- the legislators hearing about House Bill 1197 (FOSS in government)
- me flinging CAT-5 over a
I thought this was clever:
http://i7.tinypic.com/5z6vt4n.jpg
Regards,
--kevin
--
GnuPG ID: B280F24E God, I loved that Pontiac.
alumni.unh.edu!kdc -- Tom Waits
___
gnhlug-discuss mailing list
On 9/21/07, Ted Roche [EMAIL PROTECTED] wrote:
Hitting www.flickr.com and using keywords GNHLUG brings up such
memorable moments as:
- Bill McGonigle and his WiFi antenna-on-a-board at Hosstraders
- maddog and Jarod Wilson at the MythTV installfest
- the legislators hearing about House Bill
16 matches
Mail list logo