I am running ActiveMQ-4.0-RC2, Jencks JCA and Java 1.5.
I started a JMSBroker at 11:59:11PM and connections and sessions occurred
all though the night and the next day successfully. Then at 12:10:58PM in
the afternoon, a connection is created successfuly but creating a Session
just hangs and never returns.
Once this occurs, all further attempts at creating a session fail, even when
using different clients and my developer workstation.
Restarting the broker will allow correct the problem for another 12 hours.
The communication approach I am using is for a client to connect to the
server periodically, exchange messages and then disconnect. That seems to
work well for 12 hours and then stop.
Is there something I am supposed to reset to fix this problem?
Here is the client log
=============================================
INFO Thread=SiteManager UpdateViaInternetProcessor.start() Started
running. -- Sat 2006.04.08 12:10:58.329PM CDT
DEBUG Thread=UpdateViaInternetProcessor UpdateViaInternetProcessor.run()
Starting. -- Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=UpdateViaInternetProcessor JmsCommunicator.connect()
javax.net.ssl.keyStore=null -- Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=UpdateViaInternetProcessor JmsCommunicator.connect()
javax.net.ssl.keyStorePassword=null -- Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=UpdateViaInternetProcessor JmsCommunicator.connect()
javax.net.ssl.trustStore=null -- Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=UpdateViaInternetProcessor
JmsCommunicator.createConnectionWithinSeconds() Starting. maxSeconds=15 --
Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=UpdateViaInternetProcessor StartJms.start()1144516258407 --
Sat 2006.04.08 12:10:58.407PM CDT
DEBUG Thread=StartJms1144516258407 StartJms.run() Starting to connect. --
Sat 2006.04.08 12:10:58.516PM CDT
DEBUG Thread=StartJms1144516258407 StartJms.run() Connection established.
-- Sat 2006.04.08 12:10:58.625PM CDT
DEBUG Thread=StartJms1144516258407 StartJms.run() Completed in 218
milliseconds -- Sat 2006.04.08 12:10:58.625PM CDT
DEBUG Thread=StartJms1144516258407 StartJms.run() Exited 1144516258407 --
Sat 2006.04.08 12:10:58.625PM CDT
INFO Thread=UpdateViaInternetProcessor JmsCommunicator.connect() JMS
connection by "ActiveMQ version 1.1" -- Sat 2006.04.08 12:10:58.625PM CDT
DEBUG Thread=UpdateViaInternetProcessor
JmsCommunicator.createSessionWithinSeconds() Starting. maxSeconds=15 -- Sat
2006.04.08 12:10:58.625PM CDT
DEBUG Thread=UpdateViaInternetProcessor StartJms.start()1144516258625 --
Sat 2006.04.08 12:10:58.625PM CDT
DEBUG Thread=StartJms1144516258625 StartJms.run() Creating session on
ActiveMQConnection
{id=ID:Ad_Box_790-4545-1144472234219-1:44,clientId=null,started=false} --
Sat 2006.04.08 12:10:58.750PM CDT
DEBUG Thread=UpdateViaInternetProcessor StartJms.interrupt() Interrupted.
-- Sat 2006.04.08 12:11:13.625PM CDT
DEBUG Thread=StartJms1144516258625 StartJms.run() Failed. Reason -
javax.jms.JMSException: java.io.InterruptedIOException -- Sat 2006.04.08
12:11:13.641PM CDT
=============================================
Here is the corresponding broker log
=============================================
DEBUG Sat 08 12:09:12PM Cleaning up old messages.
DEBUG Sat 08 12:09:12PM Executing SQL: DELETE FROM ACTIVEMQ_MSGS WHERE (
EXPIRATION<>0 AND EXPIRATION<?) OR ID <= ( SELECT
min(ACTIVEMQ_ACKS.LAST_ACKED_ID) FROM ACTIVEMQ_ACKS WHERE
ACTIVEMQ_ACKS.CONTAINER=ACTIVEMQ_MSGS.CONTAINER)
DEBUG Sat 08 12:09:12PM Deleted 0 old message(s).
DEBUG Sat 08 12:09:12PM Cleanup done.
DEBUG Sat 08 12:09:18PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:09:33PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:09:33PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:09:48PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:10:03PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:10:03PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:10:18PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:10:33PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:10:33PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:10:48PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:11:03PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:11:03PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:11:18PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:11:33PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:11:33PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:11:48PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:12:03PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:12:03PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:12:18PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:12:33PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:12:33PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:12:48PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:13:03PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:13:03PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:13:18PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:13:33PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:13:33PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:13:48PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:14:03PM No message sent since last write check, sending a
KeepAliveInfo
DEBUG Sat 08 12:14:03PM Message received since last read check, resetting
flag:
DEBUG Sat 08 12:14:12PM Cleaning up old messages.
DEBUG Sat 08 12:14:12PM Executing SQL: DELETE FROM ACTIVEMQ_MSGS WHERE (
EXPIRATION<>0 AND EXPIRATION<?) OR ID <= ( SELECT
min(ACTIVEMQ_ACKS.LAST_ACKED_ID) FROM ACTIVEMQ_ACKS WHERE
ACTIVEMQ_ACKS.CONTAINER=ACTIVEMQ_MSGS.CONTAINER)
=============================================
--
View this message in context:
http://www.nabble.com/Unable-to-create-Session-after-12-hours.-t1418268.html#a3822931
Sent from the ActiveMQ - User forum at Nabble.com.