Monitoring memory use

2007-09-21 Thread Kent Johnson
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

Re: Monitoring memory use

2007-09-21 Thread Alex Hewitt
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

Re: Monitoring memory use

2007-09-21 Thread Ray Cote
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

Re: Monitoring memory use

2007-09-21 Thread Ben Scott
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

Re: Monitoring memory use

2007-09-21 Thread Kent Johnson
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

Re: Monitoring memory use

2007-09-21 Thread Ben Scott
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

Re: Monitoring memory use

2007-09-21 Thread Ben Scott
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

Re: Monitoring memory use

2007-09-21 Thread Lloyd Kvam
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

Re: [GNHLUG] MerriLUG Nashua, Thur 20 Sep, OpenOffice Styles - for groff fans and real people too

2007-09-21 Thread Bill Sconce
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

OOo background color - Re: [GNHLUG] MerriLUG Nashua, Thur 20 Sep, OpenOffice Styles - for groff fans and real people too

2007-09-21 Thread Bill Sconce
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,

Re: OOo background color - Re: [GNHLUG] MerriLUG Nashua, Thur 20 Sep, OpenOffice Styles - for groff fans and real people too

2007-09-21 Thread Ben Scott
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

Re: OOo background color - Re: [GNHLUG] MerriLUG Nashua, Thur 20 Sep, OpenOffice Styles - for groff fans and real people too

2007-09-21 Thread Mark Komarinski
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

Re: [GNHLUG] MerriLUG Nashua, Thur 20 Sep, OpenOffice Styles - for groff fans and real people too

2007-09-21 Thread Ted Roche
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!

Request for GNHLUG Pictures

2007-09-21 Thread Ted Roche
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

net neutrality

2007-09-21 Thread Kevin D. Clark
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

Re: Request for GNHLUG Pictures

2007-09-21 Thread Michael Costolo
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