I’ve recently got a VPS and it’s performing excellently so far. However, I’d like to keep an eye of it’s memory usage as that seems to be the limiting factor.
I’m able to check by logging into the VPS control panel but this is a bit tiresome to do this daily/whenever as it needs a password etc.
Is there any way I can have a script that will notify me of when/if the memory usage of the server goes over say, 300MB?
I currently have a lighttpd server running 2 Wordpress blogs, a gnuplot script that runs every 6 hours on a Debian 5 64bit running at 250MB of RAM. My limit is 368MB so I’d like to be told when it hits 300MB (it hit 300MB earlier, a restart of the lighttpd server dropped it down to just under 200MB before it climbed to it’s current level).
From looks if I cant get informed, then a script to restart lighttpd every 3 days or so might be able to drop the memory usage on restart?