Les Ostness
asked on
How long should you wait for Oracle WebLogic to shutdown before killing processes?
How long should you wait for Oracle WebLogic to shutdown before killing processes?
I'm writing a shutdown script (linux bash) for developers to use and sometimes I get a few processes that still remain, so I kill them after 10 minutes. I was wondering if 10 minutes is sufficient, too long, or too short?
Sometimes the processes remaining are FND, PALIBR, java, fatal.err, and RCVOLTM
I'm writing a shutdown script (linux bash) for developers to use and sometimes I get a few processes that still remain, so I kill them after 10 minutes. I was wondering if 10 minutes is sufficient, too long, or too short?
Sometimes the processes remaining are FND, PALIBR, java, fatal.err, and RCVOLTM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
noci,
Your advice is spot on. Thank you so much.
So now after I run adstpall.sh I have three loops that check if there are still processes running. If there are I try to terminate the processes.
1st loop uses SIGHUP kill -1, the nicest way to terminate a process
2nd loop uses SIGTERM kill -15, the second nicest way to terminate a process
3rd loop uses SIGKILL kill -9, the MEANEST way to terminate a process. So far my testing has not had to use SIGKILL.
Your advice is spot on. Thank you so much.
So now after I run adstpall.sh I have three loops that check if there are still processes running. If there are I try to terminate the processes.
1st loop uses SIGHUP kill -1, the nicest way to terminate a process
2nd loop uses SIGTERM kill -15, the second nicest way to terminate a process
3rd loop uses SIGKILL kill -9, the MEANEST way to terminate a process. So far my testing has not had to use SIGKILL.
During shutdown kill -15 is used on all processes and if there are still running processes after a short while then kill -9 will be run.
So applications do need to handle this anyway or just die...
So applications do need to handle this anyway or just die...
ASKER