It's not a secret anymore!
The moose likes Distributed Java and the fly likes How to kill rmiregistry on Linux? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to kill rmiregistry on Linux? " Watch "How to kill rmiregistry on Linux? " New topic

How to kill rmiregistry on Linux?

zulfiqar raza
Ranch Hand

Joined: Oct 18, 2000
Posts: 81

Folks, anyone know how to kill an rmiregistry process on linux? since I can't even find the process when I do a 'ps -aux'.
But the process is still running, or has not released some lock as, if i try to restart rmiregistry it says port already in use. But if I reboot my Linux machine it works fine.
On windows its simple, i just Ctrl-C and rmiregistry stops. and then i can restart it. But I can't kill it on Linux as the process does not even show up!
asad ali

Joined: Dec 12, 2000
Posts: 20
Following is true for Red Hat Linux 7.0.
After starting the rmiregistry, execute the following command from command line
ps -ef | grep java
You should list of processes that are similar to
Kill the first of these processes and that should kill your rmiregistry.
CAUTION:If you have any other java process like client and/or server running, then you need to stop these processes before you run the 'ps' command.
ram mohan
Ranch Hand

Joined: Oct 17, 2000
Posts: 68
This works in Linux Mandraka.I hope it works in all linux which is compatible with the Red Hat.
ps -ax|grep rmiregistry
and enter.Then in the command mode process id of the rmiregistry get displayed.then kill -9 id. This kill that process
[This message has been edited by ram mohan (edited April 06, 2001).]
I agree. Here's the link:
subject: How to kill rmiregistry on Linux?
It's not a secret anymore!