Date: Tue, 03 Mar 2009 16:33:51 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: load average and some built-in monitoring mechanism Message-ID: <gojilb$vek$1@ger.gmane.org> In-Reply-To: <94136a2c0903021024q54225574hc36661eaa29a057@mail.gmail.com> References: <94136a2c0903021024q54225574hc36661eaa29a057@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Zbigniew Szalbot wrote: > Hi there, > > My machine has recently been taken down by (most likely) runaway java > process. The box had to be rebooted as there was no remote access to > it but I am not able to find anything useful in logs to confirm > whether it was java. Is there a tool that would enable me to > automatically turn on verbose logging of top processes to some file > once the load average is greater than the specified value? This way, > once the storm is over, I would be able to see which process(es) went > nuts. > > I guess a tool like that may simply already exist in which case I'd > appreciate links/more information. How are you dealing with such > issues when/if they happen to you? I don't think something like that already exists in base. You can use "top -d1" to get a snapshot from top and a small shell script (or a script in your chosen language) to test if the load average (you can get it from sysctl vm.loadavg) gets unreasonable. [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJrU3fldnAQVacBcgRAgq2AKDrrmrqwCFOo81gtKcI/jLy2bxT5wCdHdS3 z/z79LfALj44iwwQrZ1UBCs= =PeQC -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gojilb$vek$1>
