I have a server performing multiple tasks over traffic coming to it.
Lately the server has been stuttering.
When the system chokes, it reboots - this leaves me with little meaningful information as for the pathology of the choke (this is definitely not a violent crash).
What tool in your experience assisted you in preserving meaningful data regarding a system choke.
This could be memory consumption, "ps", "top" or any other parameter.
Mind you, a script that simply outputs several lengthy commands (ps -a) every so and so - can use massive storage, and be hard to analyse.