James Bond
Registered
I have an application that has a memory leak....it runs OK for two or even three days but then it starts to take up lots of memory (cf top) and slows the system down with paging.
I would like to have some way to automatically kill it every day (say) and restart it but how to do that? I guess I need some job which I can run from cron (I know how to do this)....but how to find the PID and do the "kill -9"? Does anybody have a command file already written for this?
I would like to have some way to automatically kill it every day (say) and restart it but how to do that? I guess I need some job which I can run from cron (I know how to do this)....but how to find the PID and do the "kill -9"? Does anybody have a command file already written for this?