Hi,
Thanks Scott.
My Fedora installation does not use queues it uses topics for messaging
(default installation). I don't have anything stuck anywhere, I have check
with a JMX console.
GSearch is subscribed to these topics and it receives messages correctly.
The topics are empty afterwards.
Any other idea ?
André
On Fri, Aug 10, 2012 at 4:06 PM, Scott Prater <[email protected]> wrote:
> Hello, André,
>
> The fact that the amount of time that Fedora takes to start up is
> variable suggests to me that ActiveMQ is trying to resend messages it
> has stuck in its queue. Few messages, quick startup, lots of messages,
> slow startup. You could verify that by deleting the messages in the
> queue, shutting down Fedora, starting it back up again, and seeing if it
> starts immediately; then perform a number of API-M actions (ingests,
> updates, etc.), examining the state of the queue, shutting down Fedora,
> starting it up again, and see if it takes a while.
>
> See http://activemq.apache.org/how-do-i-purge-a-queue.html for
> information on purging a queue.
>
> Once you've verified that is, in fact, the problem, then you'll need to
> see why messages are getting stuck in the queue: perhaps no configured
> message consumer?
>
> -- Scott
>
> On 08/10/2012 02:15 PM, André Lapointe wrote:
> > Hi,
> >
> > On Tomcat startup, our fedora installation hangs for a few minutes,
> > sometimes for as long as an hour. It seems that ActiveMQ is the problem
> > because when its turned off, the startup executes in a few second.
> >
> > I have turn on TRACE logging for ActiveMQ and here is the log traces
> > before and after the hangup :
> >
> > INFO 2012-08-10 10:34:44.059 [main]
> > (org.apache.activemq.store.kahadb.MessageDatabase) Recovery replayed 2
> > operations from the journal in 0.017 seconds.
> > INFO 2012-08-10 10:34:44.065 [main]
> > (org.apache.activemq.broker.BrokerService) ActiveMQ 5.5.0 JMS Message
> > Broker (localhost) is starting
> > INFO 2012-08-10 10:34:44.065 [main]
> > (org.apache.activemq.broker.BrokerService) For help or more information
> > please see: http://activemq.apache.org/
> > DEBUG 2012-08-10 10:45:28.699 [main]
> > (org.apache.activemq.broker.region.AbstractRegion) localhost adding
> > destination: topic://fedora.apim.update
> > DEBUG 2012-08-10 10:45:28.736 [main]
> > (org.apache.activemq.broker.region.TopicRegion) Restoring durable
> > subscription: SubscriptionInfo {subscribedDestination =
> > topic://fedora.apim.update, destination = topic://fedora.apim.update,
> > clientId = fedoragsearch0, subscriptionName = fedora.apim.update,
> > selector = null}
> > DEBUG 2012-08-10 10:45:28.776 [main]
> > (org.apache.activemq.broker.TransportConnector) Publishing:
> > tcp://localhost:61616 for broker transport URI: tcp://localhost:61616
> > DEBUG 2012-08-10 10:45:28.777 [main]
> > (org.apache.activemq.broker.region.AbstractRegion) localhost adding
> > destination: topic://ActiveMQ.Advisory.Topic
> > TRACE 2012-08-10 10:45:28.785 [main]
> > (org.apache.activemq.broker.jmx.ManagedRegionBroker) Sub with key:
> > fedoragsearch0:fedora.apim.update, already registered
> > INFO 2012-08-10 10:45:28.790 [main]
> > (org.apache.activemq.transport.TransportServerThreadSupport) Listening
> > for connections at: tcp://localhost:61616
> >
> > In this case it hung for a little bit more than 10 minutes. I've been
> > looking for a solution all day long and I can't find anything. Any idea ?
> >
> > Also, I have tried to remove everything in
> > $FEDORA_HOME/data/activemq-data/localhost/KahaDB/ and it rebuilds itself
> > at startup fast. Where does the info is taken to rebuild the activemq
> > data ? In the FOXML ?
> >
> > Thanks,
> >
> > André
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >
> >
> >
> > _______________________________________________
> > Fedora-commons-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
> --
> Scott Prater
> Shared Development Group
> General Library System
> University of Wisconsin - Madison
> [email protected]
> 5-5415
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fedora-commons-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users