Glassfish Message Queue Process Shutdowns For No Apparent Reason (Doc ID 1331741.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 8.1 to 8.1 [Release 8.1]
Other UNIX
Oracle Solaris on SPARC (32-bit)
***Checked for relevance on 10-Jun-2013***

Symptoms

There are times when it might appear that the Message Queue (MQ) broker process shutdowns without an administrator physically issuing any shutdown.  Checking the MQ logs, sometimes does reveal that the MQ process was indeed shutting down gracefully on its own.

When you use the imqcmd utility to shutdown the broker, for example:

imqcmd shutdown bkr -b localhost:7676


then a "Shutdown requested by broker administrator" message will appear in the broker log as follows:

[21/Jun/2011:14:18:02 SGT] [B1065]: Accepting: admin@127.0.0.1:53296->admin:53292. Count=1
[21/Jun/2011:14:18:07 SGT] [B1007]: Stopping Service admin with protocol tcp(host = *, port=0, mode=dedicated)
[21/Jun/2011:14:18:07 SGT] [B1007]: Stopping Service jms with protocol tcp(host = *, port=0, mode=dedicated)
[21/Jun/2011:14:18:08 SGT] [B1093]: Shutdown requested by broker administrator
[21/Jun/2011:14:18:08 SGT] [B1047]: Shutting down broker...
[21/Jun/2011:14:18:08 SGT] [B1077]: Broadcast good-bye to all connections ...
[21/Jun/2011:14:18:08 SGT] [B1078]: Flushing good-bye messages ...
[21/Jun/2011:14:18:08 SGT] [B1063]: Done
[21/Jun/2011:14:18:08 SGT] [B1048]: Shutdown of broker complete.
[21/Jun/2011:14:18:08 SGT] [B1066]: Closing: admin@127.0.0.1:53296->admin:53292. Count=0


However, if the broker is not shut down using the MQ administrative command (imqcmd), then the broker log may look like this:

[21/Jun/2011:13:54:05 SGT] [B1047]: Shutting down broker...
[21/Jun/2011:13:54:05 SGT] [B1007]: Stopping Service admin with protocol tcp(host = *, port=0, mode=dedicated)
[21/Jun/2011:13:54:05 SGT] [B1007]: Stopping Service jms with protocol tcp(host = *, port=0, mode=dedicated)
[21/Jun/2011:13:54:05 SGT] [B1077]: Broadcast good-bye to all connections ...
[21/Jun/2011:13:54:05 SGT] [B1078]: Flushing good-bye messages ...
[21/Jun/2011:13:54:05 SGT] [B1063]: Done
[21/Jun/2011:13:54:05 SGT] [B1048]: Shutdown of broker complete.


Notice the message "Shutdown requested by broker administrator" is missing.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms