All I could find si that there isn't a specific limit to message size but it's dictated by the heap memory allocated to the JVM. Anyway smaller messages are better. I'm trying to send a 1Gb file with activemq without running into out-of-memory errors, I've read that the guys using artemis managed to do 8Gb using 50Mb of ram, it takes me at least 4Gb to send 1Gb(using amq's Blob method). Anyone has any idea why?
Asked
Active
Viewed 4,287 times
1
-
Have you tried sending your large message to artemis [the recommended way in the examples](https://github.com/apache/activemq-artemis/blob/master/examples/features/standard/large-message/src/main/java/org/apache/activemq/artemis/jms/example/LargeMessageExample.java)? There, you'll find a `BytesMessage` is used (not a `BlobMessage`), which is what was probably used to back the 8GB/50MB [statement in the docs](https://activemq.apache.org/artemis/docs/latest/large-messages.html). – Dovmo Feb 08 '18 at 07:57
-
I've seen that but we don't use Artemis, we are using activemq 5.15.2 – Ayeyebraso Feb 08 '18 at 09:15
-
Ah, OK. The question is flagged as Artemis and I only saw your quote about 8/50 on the Artemis site. Did you see it anywhere in relation to AMQ5? Keep in mind these are two entirely different implementations of two different JMS specs. – Dovmo Feb 08 '18 at 09:24
-
My bad, don't know why i put artemis in there or if it did it by itself. What do you mean by "in relation to AMQ"? – Ayeyebraso Feb 08 '18 at 11:32
-
That is, when I googled about the benchmark of sending 8GB using 50MB of RAM, I saw that in the Artemis documentation (mentioned above), but not in the ActiveMQ5 documentation anywhere – Dovmo Feb 08 '18 at 15:39
-
yes it's mentioned only on the artemis documantation – Ayeyebraso Feb 08 '18 at 15:49