You are not logged in.
Pages: 1
Hi,
is there a way to monitor the memory / cpu usage of a python script?
thanks
Matthew
"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson
Offline
Take a look at "man top" if you want to monitor the script externally. I don't know how to make the script report back on its own cpu and memory usage.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
It depends -- what do you mean by "monitor"? If the script is run once, try time (/usr/bin/time from package time, not the shell builtin), with -v option. For long running, daemon-like scripts I'd use something like monit with few thresholds.
Offline
Pages: 1