Friday, January 20, 2012

Kill a Runaway or Ghost ESSSVR Process



Kill a Runaway or Ghost ESSSVR Process [ID 583519.1]

 Modified 19-JAN-2011     Type HOWTO     Status PUBLISHED 

In this Document
  Goal
  Solution

Applies to:

Hyperion Essbase - Version: 7.1.0.0.00 and later   [Release: 7.1 and later ]
Information in this document applies to any platform.

Goal

How to kill a runaway or ghost ESSSVR process?

Solution

To kill a runaway or ghost ESSSVR process:

Windows:

1. CTL/ALT/DEL and select Task Manager
2. In the processes tab, select the ESSSVR process and do an "End Process". If you have multiple ESSSVR processes, you can search through the essbase.log file for the process id that the application was started on.

UNIX:
1. From the UNIX prompt, type: ps -ef | grep ESSSVR
2. Find the runaway/ghost ESSSVR process id and use the kill -15 command to kill that pid. If after a few minutes the ESSSVR process does not stop, you will have to use the kill -9 command.

NOTE:  The -9 argument to kill should never be used on Unix systems, except as a very last resort. The KILL signal does not allow a process to run any cleanup code, which means blasting away with kill -9 may leave child processes of a parent orphaned, temporary files open, shared memory segments active, and sockets busy. This leaves the system in a messy state, and could lead to unanticipated and hard to debug problems.

Properly written programs will respond to a -15 by cleaning up anything they need to do before dying. Understand that this is not a matter of priorities, or the system giving more time with a -15; it's simply that a program can catch the -15, do what it needs to do and then voluntarily exit. It could also choose to ignore the -15 all together. If it hasn't made any provisions at all, the -15 works exactly like the -9: the process dies immediately.

A "kill -9" just causes the process to die; it gets no chance to do any cleanup. Therefore, if you don't know how a program was written, you should try the -15 first, in case it does need to clean up files, flush logs or whatever. If the -15 doesn't work, then use the -9.

When using a kill -9 if processes do become orphaned they can attach themselves to the init process.



NOTE: In Essbase v6.2 and above we have added an essbase.cfg setting to help prevent these runaway or ghost ESSSVR processes. For more information see the Online Technical Reference Manual for the QRYGOVEXECTIME setting.

No comments:

Post a Comment