Why is JBoss spinning up multiple child processes on Linux

Latest response

I am running jboss on Linux using script.

./standalone.sh -c=standalone-full.xml -bmanagement=$(hostname) -b=$(hostname)

As a result of this it, spawns multiple child process similar to the following: https://developer.jboss.org/thread/175022

root 5266 5245 0 11:15:57 pts/2 17:06 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 6668 5266 0 11:33:48 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 16061 5266 0 12:13:03 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 17973 5266 0 12:33:38 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 11358 5266 0 11:51:22 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 11733 5266 0 11:53:30 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
root 13117 5266 0 12:00:28 pts/2 0:00 /opt/JDK/bin/java -Dprogram.name=jboss_run.sh -s
Here I am using example for above link for the purpose of exhibiting my problem (as I cannot share actual logs), but in my case the process running is jboss.

When I execute ps -ef | grep jboss, it gives me multiple entries(like the above entries, except that instead of java it is jboss in my case) with same parent id (like 5266) and different child ids.

This happens intermittently, and later when I run ps -ef | grep jboss, it only shows one jboss process running.

I have been googling on this problem, but not finding much help.

I also referred to https://developer.jboss.org/thread/153697. It mentions of this issue happening, but there is no concrete evidence/reasoning for the same.

Any pointers or suggestion, what might be causing this issue?



Did you stop jboss before starting a new one? The start times are all different it looks like you did not stop the old one.

I have taken the output from https://developer.jboss.org/thread/175022. I cannot use actual log from customer environment but in the customer environment I am having similar kind of output generated.

I am not sure how you are starting JBoss, when I start a SA with the command '/opt/jboss/bin/standalone.sh --server-config=standalone-full.xml &'

what is the script jboss_run.sh script do? is it the script to start the JBoss with the above command line ?

Ian, I have already mentioned that I am using the output from https://developer.jboss.org/thread/175022.

I am facing similar problem as explained in the links that I have shared from above link.

I cannot share the actual logs as it is from client environment.