Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-18 Thread Tom Martinec
gtully wrote > Currently non persistent messages don't have a cursor temp usage check > before a send, adding that would avoid lots of pain I think. > In any event, please open a jira issue to track your problem and fix and > we > will work to get this resolved asap. I created issues: AMQ-4230, AM

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-18 Thread Gary Tully
I peeked at that hang or a similar case recently w.r.t to flow control on a temp queue... I came to the conclusion that blocking on cursor add was problematic and that the blocking should be implemented in send, in the same way that store limits are enforced. Apart from the deadlock, multiple adds

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-17 Thread Tom Martinec
ceposta wrote > There's been a lot of re-work on the FilePendingMessageCursor (and other > areas that you touched here) since release 5.4.2 (which is about 2 yrs > old). Do you have the possibility to check with a later version of the > code > to see if that's been fixed for you? I have checked ac

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-17 Thread Christian Posta
There's been a lot of re-work on the FilePendingMessageCursor (and other areas that you touched here) since release 5.4.2 (which is about 2 yrs old). Do you have the possibility to check with a later version of the code to see if that's been fixed for you? On Mon, Dec 17, 2012 at 6:36 AM, Tom M

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-17 Thread Tom Martinec
Hello, I fixed the issue on my own. Here is the list of things I have done: 1 - On the line 219 of http://svn.apache.org/viewvc/activemq/tags/activemq-5.4.2/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java?view=markup I unlocked the messagesLock

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Tom Martinec
Hello, I am sorry for my double post. I will answer to all the reactions here: ceposta wrote > Interesting. Your scenario sounds like PFC is blocking the connection. Not > sure yet why that would happen. Your config looks okay. Do you still have > the thread dumps? No, but so far it has not bee

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Christian Posta
Not sure AMQ-4136 is related. That's for persistent messages. The only way for FilePendingMessageCursor to be in the mix here is if you're doing non-persistent messages over queues. Is that the case? On Wed, Dec 5, 2012 at 2:39 AM, Tom Martinec wrote: > AMQ-4136 -- *Christian Posta* http://w

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Christian Posta
Actually, your config *could* cause a problem. If you have>100MB of messages in memory and you try to write them to temp storage (let's say on a Topic) then you might have problems since temp store is only 100MB (1/2 of what memory is). On Wed, Dec 5, 2012 at 6:35 AM, Christian Posta wrote: > In

Re: Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Christian Posta
Interesting. Your scenario sounds like PFC is blocking the connection. Not sure yet why that would happen. Your config looks okay. Do you still have the thread dumps? Are the producer/consumer on the same connection? If you have a test case you can post, please do. Would make it easy to figure wha

Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Tomáš Martinec
Hello, I am trying to setup activemq 5.4.2 and I experience hangs when the broker fills its heap and starts using storage. In my scenario I have one message producer and one message consumer connected. The producer is blocked and the consumer does not receive any messages. I have been able to

Activemq 5.4.2 hangs when the temp disk usage is used

2012-12-05 Thread Tom Martinec
Hello, I am trying to setup activemq 5.4.2 and I experience hangs when the broker fills its heap and starts using storage. In my scenario I have one full speed message producer and one message consumer connected. The producer is blocked and the consumer does not receive any messages. I have been a