On Sep 21, 2007, at 09:44, Kent Johnson wrote:
I was hoping for a utility that would wrap the process in some way and
report the high-water memory use of the process. Oh well...
That sounds something like a profiler. Sorry, not a specific
recommendation, but perhaps an extra Google
On Mon, 24 Sep 2007 10:35:59 -0400
Bill McGonigle [EMAIL PROTECTED] wrote:
On Sep 21, 2007, at 09:44, Kent Johnson wrote:
I was hoping for a utility that would wrap the process in some way and
report the high-water memory use of the process. Oh well...
That sounds something like a
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
10 matches
Mail list logo