Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 36138 invoked from network); 30 Jul 2009 11:35:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 11:35:16 -0000 Received: (qmail 6308 invoked by uid 500); 30 Jul 2009 11:35:16 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 6282 invoked by uid 500); 30 Jul 2009 11:35:16 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 6272 invoked by uid 99); 30 Jul 2009 11:35:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 11:35:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajdavies@gmail.com designates 209.85.217.207 as permitted sender) Received: from [209.85.217.207] (HELO mail-gx0-f207.google.com) (209.85.217.207) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 11:35:03 +0000 Received: by gxk3 with SMTP id 3so2423481gxk.14 for ; Thu, 30 Jul 2009 04:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Wvg62kjiVyAL1tfHPnsjxkcuU9F1G4eFF25EY/jAHFs=; b=MMAGBXyp/oY6B+uCgX1BHllllNAx+txWJcLgyYV3MKjXZXqQ1QHu6DRG6POA7XCplK 4MJzvsQaF1yLqhMTt2rxHatn/jMmcGCniBEQmAneDIaGIVtMdGr4buzNBvrK3xhUWBE6 nAmRhD0XVRO+OgG2AJvsXq5DJurTL0oxr8RmU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=em7yk/xUlfuTZt4aHKJgJ0hX0uXjErQdf8SCu9TKHBlcSJVPj+6vd1XUGrkxnlZEzC JK6b11sOE3TKkWWr6TLbKgZtuykT+4IMX0zcp74a8JCMXlpoPxmotrrg6nglBcu1PhMx BeX644SoGG2FHTybWxDFCkZ0yeMpDY8tXR6o4= Received: by 10.90.101.17 with SMTP id y17mr766816agb.116.1248953681451; Thu, 30 Jul 2009 04:34:41 -0700 (PDT) Received: from wfh-bwright.americas.progress.com (host86-166-135-159.range86-166.btcentralplus.com [86.166.135.159]) by mx.google.com with ESMTPS id 4sm7536219agc.12.2009.07.30.04.34.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Jul 2009 04:34:39 -0700 (PDT) Message-Id: From: Rob Davies To: users@activemq.apache.org In-Reply-To: <24727769.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Standalone server restarting itself every 5 minutes - java.lang.IllegalStateException Date: Thu, 30 Jul 2009 12:34:34 +0100 References: <24727769.post@talk.nabble.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org first - try disabling multicast discovery in the activemq configuration On 29 Jul 2009, at 22:17, GaryG wrote: > > We've recently updated to ActiveMQ 5.2.0, and are running it as a > standalone > server, with a config file very similar to the basic example > provided out of > the box. There has been no code change in the Java code that talks > to the > AMQ server. Yet, once started up, the ActiveMQ server process is > restarting > itself every 5 minutes. > > Looking at the "activemq.log", I see the following: > =============== > . > . > . > 2009-07-29 20:48:01,949 [31.140.17:41258] DEBUG AbstractRegion > - Adding destination: topic:// > ActiveMQ.Advisory.Producer.Topic.dr01b_wf1 > 2009-07-29 20:48:01,951 [31.140.17:41258] DEBUG AbstractRegion > - Adding destination: > topic://ActiveMQ.Advisory.Producer.Topic.WorkerFarmControl > 2009-07-29 20:48:01,952 [31.140.17:41258] DEBUG AbstractRegion > - Adding destination: topic:// > ActiveMQ.Advisory.Producer.Topic.dr01a_wf1 > 2009-07-29 20:48:01,956 [31.140.17:41258] DEBUG AbstractRegion > - Adding destination: topic://ControllerCCTopicSend > 2009-07-29 20:48:01,957 [31.140.17:41258] DEBUG > JournalPersistenceAdapter > - Waking for checkpoint to complete. > 2009-07-29 20:48:01,957 [eckpoint Worker] DEBUG > JournalPersistenceAdapter > - Checkpoint started. > 2009-07-29 20:48:01,979 [eckpoint Worker] DEBUG > JournalPersistenceAdapter > - Checkpoint done. > 2009-07-29 20:48:01,984 [31.140.17:41258] DEBUG AbstractRegion > - Adding destination: > topic://ActiveMQ.Advisory.Producer.Topic.ControllerCCTopicSend > 2009-07-29 20:52:55,790 [MQ ShutdownHook] INFO BrokerService > - ActiveMQ Message Broker (ai_jms, > ID:server2-55452-1248900479410-0:0) is > shutting down > 2009-07-29 20:52:55,791 [MQ ShutdownHook] DEBUG BrokerService > - Caught exception, must be shutting down: > java.lang.IllegalStateException: > Shutdown in progress > 2009-07-29 20:52:55,796 [MQ ShutdownHook] INFO NetworkConnector > - Network Connector local-nc Stopped > 2009-07-29 20:52:57,294 [31.140.18:56300] DEBUG TransportConnection > - Stopping connection: /1.1.1.18:56300 > 2009-07-29 20:52:57,294 [31.140.18:56300] DEBUG TcpTransport > - Stopping transport tcp:///1.1.1.18:56300 > 2009-07-29 20:52:57,297 [31.140.18:56300] DEBUG TransportConnection > - Stopped transport: /1.1.1.18:56300 > 2009-07-29 20:52:57,298 [31.140.18:56300] DEBUG TransportConnection > - Cleaning up connection resources: /1.1.1.18:56300 > 2009-07-29 20:52:57,299 [31.140.18:56300] DEBUG > JournalPersistenceAdapter > - Waking for checkpoint to complete. > 2009-07-29 20:52:57,299 [eckpoint Worker] DEBUG > JournalPersistenceAdapter > - Checkpoint started. > 2009-07-29 20:52:57,331 [eckpoint Worker] DEBUG > JournalPersistenceAdapter > - Checkpoint done. > 2009-07-29 20:52:57,338 [31.140.18:56300] DEBUG AbstractRegion > - Removing consumer: ID:server2-49559-1248899931358-0:2:-1:1 > . > . > . > ------------- > > So you can see for a while, the broker's adding topics and such, and > then > all of a sudden it gets an "IllegalStateException", and just restarts. > > > On the clients, when this happens we get this error: > > -------------- > 2009-07-29 20:52:48,550 [ActiveMQ Session Task] DEBUG jms_comm - > ActiveMQMessageReceiver[dr01b_wf1] got msg from = STG_AIC1, > jmsMsgID=ID:server1-41646-1248899975358-0:2:6:1:224 > 2009-07-29 20:52:48,550 [ActiveMQ Session Task] DEBUG jms_comm - > ActiveMQMessageReceiver[dr01b_wf1] sent processed msg to > messageListener! > 2009-07-29 20:52:49,896 [ActiveMQ Session Task] DEBUG jms_comm - > ActiveMQMessageReceiver[dr01b_wf1] got msg from = STG_AIC1, > jmsMsgID=ID:server1-41646-1248899975358-0:2:6:1:225 > 2009-07-29 20:52:49,896 [ActiveMQ Session Task] DEBUG jms_comm - > ActiveMQMessageReceiver[dr01b_wf1] sent processed msg to > messageListener! > 2009-07-29 20:52:57,865 [ActiveMQ Connection Worker: > tcp://server2/1.1.1.18:61616] ERROR jms_comm - FactoryUtil.onException > javax.jms.JMSException: java.io.EOFException > at > org > .apache > .activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49) > at > org > .apache > .activemq > .ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1773) > at > org > .apache > .activemq.ActiveMQConnection.onException(ActiveMQConnection.java:1790) > at > org > .apache > .activemq.transport.TransportFilter.onException(TransportFilter.java: > 99) > at > org > .apache > .activemq > .transport.ResponseCorrelator.onException(ResponseCorrelator.java:114) > at > org > .apache > .activemq.transport.TransportFilter.onException(TransportFilter.java: > 99) > at > org > .apache > .activemq.transport.TransportFilter.onException(TransportFilter.java: > 99) > at > org > .apache > .activemq > .transport > .WireFormatNegotiator.onException(WireFormatNegotiator.java:152) > at > org > .apache > .activemq > .transport.InactivityMonitor.onException(InactivityMonitor.java:244) > at > org > .apache > .activemq > .transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java: > 189) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.io.EOFException > at java.io.DataInputStream.readInt(DataInputStream.java:375) > at > org > .apache > .activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:269) > at > org > .apache > .activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java: > 210) > at > org > .apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java: > 202) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java: > 185) > ... 1 more > 2009-07-29 20:52:57,895 [ActiveMQ Connection Worker: > tcp://server2.mss.iss.net/1.1.1.18:61616] DEBUG jms_comm - JMS > Exception > occured. Server is down. > 2009-07-29 20:52:58,263 [Thread-27] ERROR jms_comm.log - > ActiveMQMessageSender[ControllerTaskStatusTopic] Error sending > message: > javax.jms.JMSException: Channel was inactive for too long: > server2/1.1.1.18:61616 > -------------- > > > Our "activemq.xml" file is pretty simple - it's almost exactly the > default > config with just some minor modifications: > ---------------------- > > > > xmlns="http://www.springframework.org/schema/beans" > xmlns:amq="http://activemq.apache.org/schema/core" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/schema/core > http://activemq.apache.org/schema/core/activemq-core.xsd > http://activemq.apache.org/camel/schema/spring > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> > > > class > = > "org > .springframework.beans.factory.config.PropertyPlaceholderConfigurer"> > > file:///${activemq.base}/conf/credentials.properties value> > > > > brokerName="ai_jms" > useJmx="true" dataDirectory="${activemq.base}/data"> > > > > > > > uri="static://(tcp://localhost:61616)"/> > > > > dataDirectory="${activemq.base}/activemq-data" dataSource="#derby- > ds"/> > > > > > > > > > > > > > > > > > > > > > discoveryUri="multicast://default"/> > > > > > > > > > > > > resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true"/> > resourceBase="${activemq.base}/webapps/demo" logUrlOnStart="true"/> > resourceBase="${activemq.base}/webapps/fileserver" > logUrlOnStart="true"/> > > > > > > > > > > > > > > > ---------------------- > > > And our Java clients use the following URL to connect to the server: > > tcp://${jms.server}:${jms.port}? > keepAlive > = > true > & > ;connectionTimeout > = > 0 > & > ;wireFormat > .maxInactivityDuration > =0&jms.useAsyncSend=true&jms.prefetchPolicy.all=250" > > > Notice that I tried setting the connectionTimeout and > maxInactivityDuration > to "0" thinking that this would turn off inactivity checking. > This didn't help. Further, the system does try to send through a > LOT of > traffic when we bring it up, so there's definitely no "inactivity". > > As I mentioned, the exact same codebase was working perfectly fine > with > ActiveMQ 4.1.1. There's been no code changes, and no changes in the > nature > of the logs we're sending through. The only change has been > upgrading to > AMQ 5.2.0 on the server side, and using the new jar file on the > Java client side. > > Any help would be appreciated, as I'm totally stumped as to why the > server > keeps restarting itself. Our message content hasn't changed, > so why would the EOF file errors or "channel inactive" errors be > happening?? > > Thanks, > Gary > > -- > View this message in context: http://www.nabble.com/Standalone-server-restarting-itself-every-5-minutes---java.lang.IllegalStateException-tp24727769p24727769.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Rob Davies I work here: http://fusesource.com My Blog: http://rajdavies.blogspot.com/ I'm writing this: http://www.manning.com/snyder/