-
1. Re: max-size-bytes not being honored
ataylor Dec 16, 2013 5:56 AM (in response to dlmarion)You are sending 1Mb messages so they will be treated as large messages which are treated as file messages and sent in parts and saved on disc so the actual memory footprint is very small. Take a look at the user manual to see how to configure large message size or change your example to use smaller messages. I would probably do the latter since sending a large message in one chunk may cause issues with bottle necking the pings but this will be dependent on your network speed.
-
2. Re: max-size-bytes not being honored
dlmarion Dec 16, 2013 2:21 PM (in response to ataylor)Curious about what happens when you have large messages and persistence is false. Are they kept in memory? Could this be the cause of my OOME?
-
3. Re: Re: max-size-bytes not being honored
dlmarion Dec 16, 2013 8:55 PM (in response to ataylor)ataylor: I think I figured it out. I changed the messages to 1K and set the max-queue-size to 10MB. With persistence set to true, it works. If set to false, OOME! I think I found my problem. I was trying to run without persistence to reduce the I/O on the server (I don't care about lost messages). Looks like I can't do this as I can't keep the server up and running. Should I file a bug?
-
4. Re: Re: max-size-bytes not being honored
ataylor Dec 17, 2013 2:31 AM (in response to dlmarion)yes if you dont use persistence then everything is kept in memory so I would expect an OOM if you overload the memory, although this is not a bug. If you dont want messages persisted then you should send them non persisted or run with enough memory.
-
5. Re: max-size-bytes not being honored
dlmarion Dec 17, 2013 6:56 AM (in response to ataylor)Can you elaborate on how to do this? I'm creating a non-durable message with session.createMessage(type, false); Where do you set persistence=false?
-
6. Re: max-size-bytes not being honored
ataylor Dec 17, 2013 7:08 AM (in response to dlmarion)thats exactly how you do it, you can also make your queues non durable