Found the cause. My messages were quite big and they were filling the memory
buffer of the queue.I increased it and the problem was resolved:
Hmm, in fact it doesn't seem to always be the case. I am running activemq as
a server and a producer. Only the producer is running and the producer sends
GB of data to activemq:
val msg = "Hello world!" * 100
val start = System.currentTimeMillis
(0 to 3000).foreach {
Thanks Johan, so does that mean that activemq will always keeps the messages
in memory and when memory is full nothing can be done other than consume
them?
--
View this message in context:
http://activemq.2283324.n4.nabble.com/activemq-deadlocks-when-publisher-tries-to-commit-tp4671888p4671948.
Just to explain what I want to do better:
I want to publish messages continiously. The consumer might run or not (it
can run say once per day). In the mean time I might have collected GB of
published data.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/activemq-deadloc
Thanks, when I modify the policy to
I get (after a while)
javax.jms.IllegalStateException: The Session
This occures rarelly (once per day) and creates problems on our production
servers. When we publish a rather big message (~1MB) using the vm protocol,
the publisher deadlocks here:
prio=10 tid=0x7f2f5008c000 nid=0x1880 waiting on condition
[0x7f303acd9000]
java.lang.Thread.State: WAIT
yes, I can see it in the log file (& code ofcourse)
--
View this message in context:
http://activemq.2283324.n4.nabble.com/useJmx-false-two-brokers-getting-exception-due-to-jmx-tp4671456p4671476.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
And in fact they use different storage directories which is visible in the
logs
--
View this message in context:
http://activemq.2283324.n4.nabble.com/useJmx-false-two-brokers-getting-exception-due-to-jmx-tp4671456p4671477.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
2 test cases use two brokers. One is configured to not use jmx:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema
Thanks, the enableJournalDiskSyncs worked. Will try the transactions soon
too.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/activemq-fast-on-laptop-but-slow-on-desktop-pc-tp4669815p4669842.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
I start up activemq:
./activemq console
xbean:/home/ariskk/idea-workspace/backend/config/jms/activemq-stress.xml
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq
/home/ariskk/.activemqrc)
INFO: Invoke the following command to create a
11 matches
Mail list logo