I will be running a custom daemon that could potentially spike the server's cpu? Is there a way to log those spikes with their start and running time?
|
feedback
|
|
If youre running linux or other unix variant, there is For example:
This will run sar once a second forever. The It can also watch a specific process with the | ||||
feedback
|
|
Use any monitoring system(Cacti,Zabbix,Munin,...) for monitoring daemon memory usage. | |||
|
feedback
|
|
Try using cacti: | |||
|
feedback
|
|
I would say if you have a bunch of servers to monitor, get a "utility server" and take the time and setup munin (what I use), or cacti or zenoss or ganglia or whatever you like. But if it's a one-off server, go with sar, which is part of the sysstat suite. Usually it's run from cron. In Debian systems, you'll have to enable it in /etc/defaults/sysstat. You can graph the results with ksar. | |||
|
feedback
|