You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Shahbaz Chaudhary <sc...@genghisfund.com> on 2008/07/24 21:55:58 UTC
java.lang.OutOfMemoryError: Java heap space
I have recently been dealing with qpid (the last release M2 version) running out of memory. I'm running it on a linux box with 4 gigs of ram (2 gigs allocated to qpid).
I start sending data to qpid around 9:30 through the C# api and qpid starts with about 10 megs of memory use. Today, around 3:30, it used up its two gigs.
As mentioned in a previous email, the only reason for this I can think of is that the queues are not getting dequeued fast enough (the clients are too slow) and they start to fill up.
I spent some time going through the JMX monitor (VisualJVM), but, frankly, I can't tell which queues are the ones taking up all the memory.
I have an hprof file (1.5 gig) as well which is generated when the jvm dies due to memory problems. I can't quite tell what to look for in the file either.
Finally, I don’t think my clients are too slow. The largest amount of data I publish is less than 150 megs!
How can I resolve this?
If C# clients were keeping up with the trunk version of qpid, I'd just upgrade and see if the issue gets resolved :)
Re: java.lang.OutOfMemoryError: Java heap space
Posted by Robert Greig <ro...@gmail.com>.
2008/7/24 Shahbaz Chaudhary <sc...@genghisfund.com>:
> As mentioned in a previous email, the only reason for this I can think of is that the queues are not getting dequeued fast enough (the clients are too slow) and they start to fill up.
>
> I spent some time going through the JMX monitor (VisualJVM), but, frankly, I can't tell which queues are the ones taking up all the memory.
It would be useful to know if you have any queues with messages on
them. It doesn't really matter at this stage whether you can tell
which queue is the problem - having queues with lots of messages on
them will at least help us rule out other types of bug.
> How can I resolve this?
How many clients do you have? I would start with one client and check
the queue depth(s), and increase the number of clients.
> If C# clients were keeping up with the trunk version of qpid, I'd just upgrade and see if the issue gets resolved :)
There is an M2.1 release which is newer, however right now I would try
to do some diagnosis before upgrading anything.
Robert