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.