baan999
25th February 2009, 06:52
I want to kill the process from ther server. user has executed from his PC.
it was running past 2 days.

Please advice

sukesh75
25th February 2009, 14:59
hi,
To kill a process started by a user, you got to first find out the bshell process id (bshell_pid) of that user. This can be done by executing
licmon (Bse\bin\licmon) from command prompt. The bshell id is the number that is next to the user's username. Once you get that, exit from licmon using "quit" command.
If yours is a Windows based environment, you could even get it from the Taskmanager (check process ntbshell against the username) .

Next you have to find the process id of the process you want to close and this can be achieved by typing..
bshcmd -p bshell_pid

Armed with these two, execute the following at the prompt
bshcmd -k N1 N2
(where N1 is the process id and N2 is the bshell id)

hth

sk

dave_23
28th February 2009, 00:34
bshcmd only works if the process returns back to the bshell at any time (think of the bshell as a virtual CPU running your session) if the session is spinning (since it's been running for 2 days i assume it is) then it will never release control back to the bshell for the kill.

Also the bshell doesn't cache the bshcmd command, so you have to catch it when it's returned back to the bshell. (not easy).


you'll need an advanced task manager (there are a few out there) use one of those to find the 2 day old bshell process that has a ton of memory allocated to it, and kill it.

Or just reboot the server (you're on windows so you should be use to that... ;) )

Dave

baan999
1st March 2009, 08:26
I have alredy restarted the system. now it is working fine. as there is no alternative other than restart.

thanks for all