I have a centos 5.5 web app server which has its swap graph rise to 100% in a very short time interval... usually less than 30-40 seconds. This halts the machine and all I can do is reboot it. I have a periodical memory clean script that flushes the memory upon swap being over 20% which works well. But in cases when the swap rises sharply, the script doesn't get enough time to finish execution and hence server halts. What could be the solution to this?