Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
Problem is finally resolved. There is an error in the documentation: This page: https://activemq.apache.org/artemis/docs/2.3.0/libaio.html mentions a file libActiveMQAIO64.so, which is /incorrect./ The distribution is shipped with a file called libartemis-native-64.so, which is to be used. In

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
Clebert, I'm in the IRC chat room. My ID: ipolevoy, ping me when you have a chance. thanks -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
sorry, this is a poor Nabble UI playing jokes on me, I did not see my response, so sent it again. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread ipolevoy
The entire code base except Artemis is under our control. The vast majority of the messages are delivering fast ,more than 99.999. The use case: An API submits a POST request, we form a message and stick it into a queue. The queue has 10 listeners. When these listeners receive a Message, they wri

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
we just use a system property: java -Djava.library.path=/opt/lib/linux-x86_64/ ... Where is the link to IRC? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
We use -Djava.library.path=/opt/lib/linux-x86_64/, is this not OK? Is there a link to IRC? Thanks -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Messages delayed for no reason

2017-11-20 Thread ipolevoy
yep, we do use MessageListener, and register 10 instances of them on the same queue. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-20 Thread ipolevoy
We recompiled and reinstalled the library, but when the process starts, we still see " libaio is not available, switching the configuration into NIO" in the log file. Is there a way to tell that the library is installed and functions properly? Thanks -- Sent from: http://activemq.2283324.n4

Messages delayed for no reason

2017-11-20 Thread ipolevoy
Some of the messages sit in a queue, while we have available and registered listeners. After a few hours, the messages are delivered. What can be the cause of that? We use Artemis embedded using the JavaLite Async wrapper: https://github.com/javalite/activeweb/blob/master/javalite-async/src/mai

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-14 Thread ipolevoy
Clebert, thank you for your help. Enjoy your vacation, we will be looking closer, and if cannot resolve I will ping you in a few days. Thank you, -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-13 Thread ipolevoy
Hi, Clebert. This is exactly what I did. However, my admin has doubts in a way he compiled and installed the lib. Let us poke around a bit. Is there a sure way to determine that the system library is properly installed and functioning without running a broker? Thanks, -- Sent from: http://

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-13 Thread ipolevoy
are you asking to install the distribution and start a broker on our production env? Is there any other method? Thanks, -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-13 Thread ipolevoy
IN addition, I also tried to set the system property from inside Java using Syste.setProperty(..), but did that did not work either. Can you tell me if I'm using the right SO file? The name of this file is different from your Artemis documentation -- Sent from: http://activemq.2283324.n4.na

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-13 Thread ipolevoy
This script is only used to test libaio integration. I cannot use the script from the distribution because we use Artemis embedded into our app. -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-13 Thread ipolevoy
Here is more info: Script I use: #!/usr/bin/env bashexport CP=worker-classes/for file in `ls lib`;do CP=$CP:lib/$file; donefor file in `ls worker-libs`;do CP=$CP:worker-libs/$file; doneecho $CPgroovy -Djava.library.path=./artemis-lib -cp $CP $1 $2 $3 $4 $5 The content of my directory: ll artem

Re: Artemis cannot find LIBAIO, although it is installed

2017-11-09 Thread ipolevoy
Hey, guys. We were unable to configure libaio and are still using NIO. I did everything as recommended, but still no luck. My env: Linux Ubuntu 16 Libaio is installed. dpkg --search libaio libaio1:amd64: /usr/share/doc/libaio1 libaio1:amd64: /usr/share/doc/libaio1/TODO libaio1:amd64: /lib/

JMSQueueControl deleted, what now?

2017-08-24 Thread ipolevoy
Hi, all. I was migrating JavaLite to Artemis 2.20, but ran into a problem that JMSQueueControl was removed in this commit: https://github.com/apache/activemq-artemis/commit/0189f156ec951824e7a0f0ca93f1d7ae28db754c by Andy Taylor. I documented details and the question on SO: https://stackoverf

Re: How does Apache Artemis manage heap space (RAM)

2017-03-09 Thread ipolevoy
What is an address and how it relates to queues? I see paging configuration the broker for "jms.queue.*" I saw references to address in the docs here: https://activemq.apache.org/artemis/docs/1.2.0/paging.html but still not clear on what an address is. -- View this message in context: http:/

Re: How does Apache Artemis manage heap space (RAM)

2017-03-08 Thread ipolevoy
haha, you are correct! Not only I should not use broker for error messages, but having them in the DB is much more convenient. I could re-queue them, or just delete. Thanks for the link to the antipattern! -- View this message in context: http://activemq.2283324.n4.nabble.com/How-does-Apache-A

Re: How does Apache Artemis manage heap space (RAM)

2017-03-08 Thread ipolevoy
Thanks for the info! This makes sense. I explored the configuration in the debugger, and it does not seem that Artemis may allocate more than 200MB of heap, but keeping all these error messages in the queue might not be the best idea in the first place. Will Artemis use heap for DLQ?

How does Apache Artemis manage heap space (RAM)

2017-03-07 Thread ipolevoy
In our projects, we use two queues, one for normal processing, and another for errors. The "error" queue sometimes gets filled with "error" messages, which are sitting there, until a human checks them out. In some cases, the "error" queue fills out with a lot of messages, and then the JVM runs out

Re: Artemis cannot find LIBAIO, although it is installed

2016-02-02 Thread ipolevoy
Justin, and Clebert, thanks for suggestion, I found references to the lib in the script! Will do. -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-cannot-find-LIBAIO-although-it-is-installed-tp4706815p4706820.html Sent from the ActiveMQ - User mailing list archiv

Artemis cannot find LIBAIO, although it is installed

2016-02-02 Thread ipolevoy
My environment: Linux version 3.13.0-74-generic (buildd@lcy01-07) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 14.04.3 LTS Release:14.04 Codename: trusty I hav

Re: ActiveMQ does not send some messages

2016-01-29 Thread ipolevoy
Hi, Justin. We are getting this condition every day. Here is some more information. When largemessages directory has some files that do not get processed, we can still get the count of messages in queues like this: ObjectName queueName = ObjectNameBuilder.DEFAULT.getJMSQueueObjectName(queueNa

Re: ActiveMQ does not send some messages

2016-01-28 Thread ipolevoy
HI Justin, these are great suggestions. I'm all for cleaner code. We had another instance of 3 messages not delivered. I stopped the broker and executed this command: artemis data print. When I implemented it for the first time it printed a lot of information to the console. I th

Re: ActiveMQ does not send some messages

2016-01-28 Thread ipolevoy
Hi, Clebert. thanks for suggestion. I will try this command next time when this happens. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-does-not-send-some-messages-tp4706550p4706579.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ does not send some messages

2016-01-27 Thread ipolevoy
Justin, thanks for the URL pointer - we will look into it! -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-does-not-send-some-messages-tp4706550p4706557.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: ActiveMQ does not send some messages

2016-01-27 Thread ipolevoy
Hi, Clebert. I do not think we use STOMP. As I mentioned before, creation of large messages is annoying but not critical. Not processing some small number of messages is critical. -- View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-does-not-send-some-messages-tp47065

Re: ActiveMQ does not send some messages

2016-01-27 Thread ipolevoy
Hi, Justin. here is some compressed code that shows configuration: Configuration config = new ConfigurationImpl(); JMSConfiguration jmsConfig = new JMSConfigurationImpl(); config.setJournalType(JournalType.NIO); config.setPersistenceEnabled(true); config.setSecuri

ActiveMQ does not send some messages

2016-01-27 Thread ipolevoy
Hi All and thanks for help in advance! Recently we upgraded from HornetQ to Artemis 1.2 and started to observe strange behavior. Some messages are sitting in largemessages directory and not delivered to listeners. Restarting a Java process forces the broker to clean the directory and deliver the