You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Peter Splinakis (JIRA)" <ji...@apache.org> on 2011/08/05 12:47:27 UTC

[jira] [Commented] (AMQ-2962) Hanging at startup

    [ https://issues.apache.org/jira/browse/AMQ-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079894#comment-13079894 ] 

Peter Splinakis commented on AMQ-2962:
--------------------------------------

This issue seems to still exist in version 5.5.0.
As a workaround we had to set the expiration time on the message content itself rather than the JMS message and let the consumer decide on the expiration of the message.
Is there a more elegant solution we could use to resolve this? Has anybody come up with a workaround?

> Hanging at startup
> ------------------
>
>                 Key: AMQ-2962
>                 URL: https://issues.apache.org/jira/browse/AMQ-2962
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.4.1
>         Environment: Fedora Core 12
> OracleSun java 1.6:
> java version "1.6.0_21"
> Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
> JBoss 4.2.3 using AMQ resource adapter.
>            Reporter: Roelof Naude
>         Attachments: AMQ2962.patch, amq.ra.threads.txt, debug_traces_hanging.log, debug_traces_startup.log, thread_dump_during_hang.txt
>
>
> Noticed today the activemq was hanging during startup. Investigation revealed that it is tied to expiration of messages at startup. The only way to recover from this was to kill -9 the VM and delete the kahadb message store.
> Further testing was done whereby message expiry time was set to longer period. AMQ started up just fine. Another test was performed whereby:
> 1. subscribe for messages
> 2. send a few messages
> 3. disconnect consumer
> 4. send more messages (1 or 2 will do)
> 5. shutdown AMQ
> 6. wait for a time period exceeded the expiration time of the messages
> 7. start AMQ. at this time it should be hanging
> Logs and thread dumps attached.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira