You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by krv <vi...@onmobile.com> on 2008/03/26 16:08:26 UTC

Resources not getting deallocated after receiving messages

Hi,

Many posts have been posted regarding 'OutOfMemory' but I couldn't find
relevant information, hence posting in a new thread.

I have an asynchronous sender and receiver. After sending about 200k
messages I am getting 'OutOfMemory'. After observing the profiler I found
out that the sessions created for the messages are not getting closed. Also
found out that instances of the following objects go on increasing:
 * <class>[ ]
 * java.util.concurrent.locks.ReentrantLock$NonfairSync
 * java.util.concurrent.ConcurrentHashMap$Segment

The number of instances for the above objects is about 3 times (each) the
number of messages i.e. about 9 objects for each message. 200k+ objects (of
each type) account upto around 50mb.

Am I missing something in the sender/receiver?

Any help is greatly appreciated.

Regards,
Vivek
-- 
View this message in context: http://www.nabble.com/Resources-not-getting-deallocated-after-receiving-messages-tp16302582s2354p16302582.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Resources not getting deallocated after receiving messages

Posted by ttmdev <jo...@ttmsolutions.com>.
Can you provide information re the memory leak that you've come across?



rby wrote:
> 
> Hi,
> 
> Same here, I have an obvious memory leak with activemq 5.1-snapshot.
> I hope someone will respond at least to one of these memory related
> questions.
> 
> Regards,
> Ramzi
> 
> 
> krv wrote:
>> 
>> Hi,
>> 
>> Many posts have been posted regarding 'OutOfMemory' but I couldn't find
>> relevant information, hence posting in a new thread.
>> 
>> I have an asynchronous sender and receiver. After sending about 200k
>> messages I am getting 'OutOfMemory'. After observing the profiler I found
>> out that the sessions created for the messages are not getting closed.
>> Also found out that instances of the following objects go on increasing:
>>  * <class>[ ]
>>  * java.util.concurrent.locks.ReentrantLock$NonfairSync
>>  * java.util.concurrent.ConcurrentHashMap$Segment
>> 
>> The number of instances for the above objects is about 3 times (each) the
>> number of messages i.e. about 9 objects for each message. 200k+ objects
>> (of each type) account upto around 50mb.
>> 
>> Am I missing something in the sender/receiver?
>> 
>> Any help is greatly appreciated.
>> 
>> Regards,
>> Vivek
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Resources-not-getting-deallocated-after-receiving-messages-tp16302582s2354p16331261.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Resources not getting deallocated after receiving messages

Posted by krv <vi...@onmobile.com>.
Ok, I got the problem. The problem was at my sender/receiver components in
Mule. Yeah, I was using Mule as a client to connect to ActiveMQ. For more
information about this problem with mule go to : 
http://www.nabble.com/forum/ViewPost.jtp?post=13619403&framed=y
http://www.nabble.com/forum/ViewPost.jtp?post=13619403&framed=y 


Dil wrote:
> 
> 
> I have an asynchronous sender and receiver. After sending about 200k
> messages I am getting 'OutOfMemory'
> 
> are you closing all connection after you send from producer?
> 
> 
> rby wrote:
>> 
>> Hi,
>> 
>> Same here, I have an obvious memory leak with activemq 5.1-snapshot.
>> I hope someone will respond at least to one of these memory related
>> questions.
>> 
>> Regards,
>> Ramzi
>> 
>> 
>> krv wrote:
>>> 
>>> Hi,
>>> 
>>> Many posts have been posted regarding 'OutOfMemory' but I couldn't find
>>> relevant information, hence posting in a new thread.
>>> 
>>> I have an asynchronous sender and receiver. After sending about 200k
>>> messages I am getting 'OutOfMemory'. After observing the profiler I
>>> found out that the sessions created for the messages are not getting
>>> closed. Also found out that instances of the following objects go on
>>> increasing:
>>>  * <class>[ ]
>>>  * java.util.concurrent.locks.ReentrantLock$NonfairSync
>>>  * java.util.concurrent.ConcurrentHashMap$Segment
>>> 
>>> The number of instances for the above objects is about 3 times (each)
>>> the number of messages i.e. about 9 objects for each message. 200k+
>>> objects (of each type) account upto around 50mb.
>>> 
>>> Am I missing something in the sender/receiver?
>>> 
>>> Any help is greatly appreciated.
>>> 
>>> Regards,
>>> Vivek
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Resources-not-getting-deallocated-after-receiving-messages-tp16302582s2354p16325857.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Resources not getting deallocated after receiving messages

Posted by Dil <di...@gmail.com>.

I have an asynchronous sender and receiver. After sending about 200k
messages I am getting 'OutOfMemory'

are you closing all connection after you send from producer?


rby wrote:
> 
> Hi,
> 
> Same here, I have an obvious memory leak with activemq 5.1-snapshot.
> I hope someone will respond at least to one of these memory related
> questions.
> 
> Regards,
> Ramzi
> 
> 
> krv wrote:
>> 
>> Hi,
>> 
>> Many posts have been posted regarding 'OutOfMemory' but I couldn't find
>> relevant information, hence posting in a new thread.
>> 
>> I have an asynchronous sender and receiver. After sending about 200k
>> messages I am getting 'OutOfMemory'. After observing the profiler I found
>> out that the sessions created for the messages are not getting closed.
>> Also found out that instances of the following objects go on increasing:
>>  * <class>[ ]
>>  * java.util.concurrent.locks.ReentrantLock$NonfairSync
>>  * java.util.concurrent.ConcurrentHashMap$Segment
>> 
>> The number of instances for the above objects is about 3 times (each) the
>> number of messages i.e. about 9 objects for each message. 200k+ objects
>> (of each type) account upto around 50mb.
>> 
>> Am I missing something in the sender/receiver?
>> 
>> Any help is greatly appreciated.
>> 
>> Regards,
>> Vivek
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Resources-not-getting-deallocated-after-receiving-messages-tp16302582s2354p16323367.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Resources not getting deallocated after receiving messages

Posted by rby <ra...@gmail.com>.
Hi,

Same here, I have an obvious memory leak with activemq 5.1-snapshot.
I hope someone will respond at least to one of these memory related
questions.

Regards,
Ramzi


krv wrote:
> 
> Hi,
> 
> Many posts have been posted regarding 'OutOfMemory' but I couldn't find
> relevant information, hence posting in a new thread.
> 
> I have an asynchronous sender and receiver. After sending about 200k
> messages I am getting 'OutOfMemory'. After observing the profiler I found
> out that the sessions created for the messages are not getting closed.
> Also found out that instances of the following objects go on increasing:
>  * <class>[ ]
>  * java.util.concurrent.locks.ReentrantLock$NonfairSync
>  * java.util.concurrent.ConcurrentHashMap$Segment
> 
> The number of instances for the above objects is about 3 times (each) the
> number of messages i.e. about 9 objects for each message. 200k+ objects
> (of each type) account upto around 50mb.
> 
> Am I missing something in the sender/receiver?
> 
> Any help is greatly appreciated.
> 
> Regards,
> Vivek
> 

-- 
View this message in context: http://www.nabble.com/Resources-not-getting-deallocated-after-receiving-messages-tp16302582s2354p16302999.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.