Hey All,

I'm having an issue where a connection pool (apache dbcp) is waiting forever for a connection, when I see no reason for it to do so. Nothing else has the lock, as I did a stack dump of the stuck threads. I googled the problem and found a few other people who had the issue, and there problem was related to GC.

From the kill -quit of the tomcat process, I see the following:

INFO   | jvm 1    | 2009/03/12 11:52:58 | Heap
INFO | jvm 1 | 2009/03/12 11:52:58 | PSYoungGen total 207616K, used 45724K [0xa6a60000, 0xb4de0000, 0xb4de0000) INFO | jvm 1 | 2009/03/12 11:52:58 | eden space 198784K, 18% used [0xa6a60000,0xa8e676f0,0xb2c80000) INFO | jvm 1 | 2009/03/12 11:52:58 | from space 8832K, 99% used [0xb4540000,0xb4ddfae8,0xb4de0000) INFO | jvm 1 | 2009/03/12 11:52:58 | to space 17088K, 0% used [0xb2c80000,0xb2c80000,0xb3d30000) INFO | jvm 1 | 2009/03/12 11:52:58 | PSOldGen total 1864192K, used 623335K [0x34de0000, 0xa6a60000, 0xa6a60000) INFO | jvm 1 | 2009/03/12 11:52:58 | object space 1864192K, 33% used [0x34de0000,0x5ae99da0,0xa6a60000) INFO | jvm 1 | 2009/03/12 11:52:58 | PSPermGen total 77056K, used 76996K [0x1cde0000, 0x21920000, 0x34de0000) INFO | jvm 1 | 2009/03/12 11:52:58 | object space 77056K, 99% used [0x1cde0000,0x21911028,0x21920000)
INFO   | jvm 1    | 2009/03/12 11:52:58 |

I see the 'from space' is at 99% used, as is PSPermGen object space.

My memory parameters for tomcat are:

wrapper.java.additional.5=-XX:MaxPermSize=384m
wrapper.java.initmemory=2048
wrapper.java.maxmemory=2048

Do you think this could be causing my problem? I am using cacti to graph tomcat heap, but it doesn't show any problems.

Cheers,
Ian Long
Chief Software Architect, Opterus Inc.

Email: ian.l...@opterus.com
Phone: 416-840-8495 x666
Mobile: 416-817-9206
Web: http://www.opterus.com




Reply via email to