Hi

We are running SM 5.1.1 with around 45 routes. This in on Redhat 6.5.

The configuration is "out of the box", so using inbuilt ActiveMQ, 5.10, camel 
2.13.2 etc.

When we come to shut down ServiceMix from command line, with 
/opt/apache-servicemix-5.1.1/bin/stop

the command takes a couple of seconds to complete, but when we look at the 
process running, with ps aux, I see ServiceMix still running.

$ ps aux |grep sermix
sermix    2350  0.4 11.8 5131980 466660 ?      Sl   Apr16   6:36 
/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java -server -Xms128M -Xmx3072M 
-Dcom.sun.management.jmxremote 
-Djava.endorsed.dirs=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/jre/lib/endorsed:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/lib/endorsed:/opt/apache-servicemix-5.1.1/lib/endorsed
 
-Djava.ext.dirs=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/jre/lib/ext:/usr/lib/jvm/jre-1.7.0-openjdk.x86_64/lib/ext:/opt/apache-servicemix-5.1.1/lib/ext
 -Dkaraf.instances=/opt/apache-servicemix-5.1.1/instances 
-Dkaraf.home=/opt/apache-servicemix-5.1.1 
-Dkaraf.base=/opt/apache-servicemix-5.1.1 -Dkaraf.data=/data/SerMixData 
-Djava.io.tmpdir=/data/SerMixData/tmp 
-Djava.util.logging.config.file=/opt/apache-servicemix-5.1.1/etc/java.util.logging.properties
 -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath 
/opt/apache-servicemix-5.1.1/lib/karaf-jaas-boot.jar:/opt/apache-servicemix-5.1.1/lib/karaf.jar:/opt/apache-servicemix-5.1.1/lib/karaf-wrapper.jar:/opt/apache-servicemix-5.1.1/lib/karaf-wrapper-main.jar
 org.apache.karaf.main.Main

This process can take up to 20 minutes to stop.

I think it's because the ActiveMQ is still running/trying to clear message 
queues, but can someone perhaps give us some help with identifying why it takes 
so long to shutdown.

We used to use the Wrapper to manage the SM start/stop, (stopped as this 
wouldn't let us start with >4Gb RAM allocation) and this used to give the 
message "Stopping Karaf" every 10 seconds or so, until the process had stopped. 
This still isn't optimum and I can't believe that it would take 20 minutes to 
shutdown!

Any thoughts?

Cheers

James


Oxford University Press (UK) Disclaimer

This message is confidential. You should not copy it or disclose its contents 
to anyone. You may use and apply the information for the intended purpose only. 
OUP does not accept legal responsibility for the contents of this message. Any 
views or opinions presented are those of the author only and not of OUP. If 
this email has come to you in error, please delete it, along with any 
attachments. Please note that OUP may intercept incoming and outgoing email 
communications.

Reply via email to