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>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig200C85A7F5A78C8B1F58B8B3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Zbigniew Szalbot wrote: > Hi there, >=20 > 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. >=20 > 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. --------------enig200C85A7F5A78C8B1F58B8B3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----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----- --------------enig200C85A7F5A78C8B1F58B8B3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gojilb$vek$1>