It's not a secret anymore!
The moose likes JBoss/WildFly and the fly likes Stopping jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Stopping jboss" Watch "Stopping jboss" New topic

Stopping jboss

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103


I have Jboss 5.1 running on linux it has four ejb services running, Now when I try to stop the jboss by pressing crtl-c on it's console or try to run it doesn't shut down.What I have to every time is run 'pgrep -f jboss' then get the pid and do 'kill -9 <pid>' also if I do 'ps -ef | grep jboss' it doesn't display anything even if jboss is running if I do 'ps -ef | grep java' then it shows the java process whihc is having the same pid of the 'pgrep -f jboss'.Need help on these two issues.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

Sounds like you have a stray thread that is not shutting down. Does any of your code start up threads (hope not, that's a Java EE non-no). One way to find out is, after hitting CTRL-C, wait a minute, then ask for a Java thread dump (CTRL-\). Examine the threads that are running, look for threads whose stack traces include your code; that should give you some clue as to what is causing the problem.

JBoss In Action
I agree. Here's the link:
subject: Stopping jboss
It's not a secret anymore!