[jboss-user] [JBoss Messaging] - LocalTx, ClientTransaction leak?

ydzsidemiik do-not-reply at jboss.com
Mon Jan 7 08:38:38 EST 2008


Hi,

I am using JBoss Messaging 1.4.0.GA on JBoss AS 4.2.1.GA. While I am still confused as to what exactly is going on, I do notice that an awful lot of memory -- running into the hundreds of megabytes after a couple of weeks of uptime -- is being spent on instances of these classes.

Here is a sample from a memory profiler:

Name	NumberOfObjects	ShallowSize	Objects(+/-)	Size(+/-)
char[]	"3,279,908"	"207,726,784"	"1,469,889"	"113,996,504"
java.lang.String	"3,208,298"	"76,999,152"	"1,325,817"	"31,819,608"
org.jboss.jms.tx.LocalTx	"884,110"	"14,145,760"	"713,639"	"11,418,224"
org.jboss.jms.tx.ClientTransaction	"884,102"	"21,218,448"	"713,571"	"17,125,704"
EDU.oswego.cs.dl.util.concurrent.ConcurrentHashMap$Entry	"886,174"	"21,268,176"	"705,474"	"16,931,376"
java.util.HashMap$Entry	"1,775,551"	"42,613,224"	"522,401"	"12,537,624"
org.jboss.messaging.core.impl.message.SimpleMessageReference	"268,469"	"10,738,760"	"91,079"	"3,643,160"
org.jboss.jms.message.JBossMapMessage	"288,431"	"20,767,032"	"90,991"	"6,551,352"
byte[]	"365,068"	"70,405,112"	"88,651"	"18,667,008"
java.util.LinkedList$Entry	"287,433"	"6,898,392"	"87,552"	"2,101,248"
java.util.concurrent.ConcurrentLinkedQueue$Node	"162,932"	"2,606,912"	"80,845"	"1,293,520"
java.util.HashMap$EntrySet	"249,611"	"3,993,776"	"80,719"	"1,291,504"
java.lang.Long	"327,054"	"5,232,864"	"55,218"	"883,488"
java.lang.StringBuilder	"52,649"	"842,384"	"41,528"	"664,448"

Does it make sense to have almost a million of these objects hanging around after a few days uptime? Am I doing something wrong?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117559#4117559

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117559



More information about the jboss-user mailing list