Hi All,
My server keeps 'falling to sleep' i.e. an event log file becomes old meaning no new events are being processed.
I have made a script that outputs the age of the file every X seconds to see if it has 'fallen to sleep' again.
What i want to do is monitor memory usage also, to see if that ties in with the times which the server stops responding.
I know 'top' shows current usage, but is there a way to write that to a file?
Thanks in advance anyone! I know this is different to normal computing questions but worth a try.
My server keeps 'falling to sleep' i.e. an event log file becomes old meaning no new events are being processed.
I have made a script that outputs the age of the file every X seconds to see if it has 'fallen to sleep' again.
What i want to do is monitor memory usage also, to see if that ties in with the times which the server stops responding.
I know 'top' shows current usage, but is there a way to write that to a file?
Thanks in advance anyone! I know this is different to normal computing questions but worth a try.