Jboss7 memory leak - class org.xnio.LimitedBlockingQueue @ 0x45d48b78
apparaonali Nov 26, 2012 5:32 PMHi,
I am using jboss7.1.2, I am observing some meory issues in Jboss7.
Whn I run our application for 5 minutes my hep memory is reaching to 1GB. I run Eclipse memory analyser and it is showing suspectable memory leak as below.
Class Name | | Shallow Heap | Retained Heap |
-----------------------------------------------------------------------------------------------------------------------------------------
java.util.Vector @ 0x19840780 | | | 48 | 101,857,520 | |
'- classes org.jboss.modules.ModuleClassLoader @ 0x19840698 | | | 80 | 101,862,304 | |
|- <classloader> class org.xnio.LimitedBlockingQueue @ 0x45d48b78 | | | 8 | | 32 |
| |- <class> org.xnio.LimitedBlockingQueue @ 0x1a1e7340 | | | 40 | | 40 |
| | |- <Java Local> java.lang.Thread @ 0x26a4ae98 Remoting "is3-64w7-regr6:MANAGEMENT" task-4 Thread | | 112 | | 1,008 | |
| | |- <Java Local> java.lang.Thread @ 0x26a4af28 Remoting "is3-64w7-regr6:MANAGEMENT" task-3 Thread | | | 112 | | 976 |
| | |- <Java Local> java.lang.Thread @ 0x26a4afb8 Remoting "is3-64w7-regr6:MANAGEMENT" task-2 Thread | | | 112 | | 976 |
| | |- <Java Local> java.lang.Thread @ 0x26a4b048 Remoting "is3-64w7-regr6:MANAGEMENT" task-1 Thread | | | 112 | | 976 |
| | '- Total: 4 entries | | | | | |
| |- <class> org.xnio.LimitedBlockingQueue @ 0x1a1e7158 | | | 40 | | 40 |
| '- Total: 2 entries | | | | | |
|- <classloader> class org.xnio.XnioWorker$TaskPool @ 0x45d6bab0 | | | 0 | | 0 |
|- classloader java.security.ProtectionDomain @ 0x19f3e720 | | | 32 | | 232 |
If I run the application for 20-30 minutes then it is showing
Class Name | | Shallow Heap | Retained Heap |
-----------------------------------------------------------------------------------------------------------------------------------------
java.util.Vector @ 0x1995eb58 | | | 48 | 457,670,904 | |
'- classes org.jboss.modules.ModuleClassLoader @ 0x1995ea70 | | | 80 | 457,676,056 | |
|- <classloader> class org.xnio.LimitedBlockingQueue @ 0x45e5a988 | | | 8 | | 32 |
| |- <class> org.xnio.LimitedBlockingQueue @ 0x1a182d70 | | | 40 | | 40 |
| | |- <Java Local> java.lang.Thread @ 0x26ba2160 Remoting "is3-64w7-regr6:MANAGEMENT" task-4 Thread| | 112 | | 888 | |
| | |- <Java Local> java.lang.Thread @ 0x26ba21f0 Remoting "is3-64w7-regr6:MANAGEMENT" task-3 Thread| | 112 | | 856 | |
| | |- <Java Local> java.lang.Thread @ 0x26ba22a0 Remoting "is3-64w7-regr6:MANAGEMENT" task-2 Thread| | 112 | | 696 | |
| | |- <Java Local> java.lang.Thread @ 0x26ba2330 Remoting "is3-64w7-regr6:MANAGEMENT" task-1 Thread| | 112 | | 952 | |
| | '- Total: 4 entries | | | | | |
| |- <class> org.xnio.LimitedBlockingQueue @ 0x1a0eb798 | | | 40 | | 40 |
| '- Total: 2 entries | | | | | |
|- <classloader> class org.xnio.XnioWorker$TaskPool @ 0x45e5c510 | | | 0 | | 0 |
|- classloader java.security.ProtectionDomain @ 0x19f55ed0 | | | 32 | | 232 |
'- Total: 3 entries | | | | |
-----------------------------------------------------------------------------------------------------------------------------------------
And here is the object where it is consuming more memory.
Class Name | | Shallow Heap | Retained Heap |
---------------------------------------------------------------------------------------------------------------------------
java.lang.Object[160] @ 0x25e89f58 | | | 656 | 457,670,856 |
|- [137] class org.xnio.ByteBufferSlicePool$QueueThread @ 0x4a617cf0 | | | 8 | 457,668,848 |
| |- <classloader> org.jboss.modules.ModuleClassLoader @ 0x1995ea70 | | | 80 | 457,676,056 |
| | |- classes java.util.Vector @ 0x1995eb58 | | | 48 | 457,670,904 |
| | | |- elementData java.lang.Object[160] @ 0x25e89f58 | | | 656 | 457,670,856 |
| | | | |- [137] class org.xnio.ByteBufferSlicePool$QueueThread @ 0x4a617cf0 | | | 8 | 457,668,848 |
| | | | | |- <classloader> org.jboss.modules.ModuleClassLoader @ 0x1995ea70 | | | 80 | 457,676,056 |
| | | | | | |- classes java.util.Vector @ 0x1995eb58 | | | 48 | 457,670,904 |
| | | | | | | |- elementData java.lang.Object[160] @ 0x25e89f58 | | | 656 | 457,670,856 |
| | | | | | | | |- [137] class org.xnio.ByteBufferSlicePool$QueueThread @ 0x4a617cf0| | 8 | 457,668,848 |
---------------------------------------------------------------------------------------------------------------------------
Eclipse memory analyser shows the above marked objecrs are suspected memory leaks.
org.xnio.ByteBufferSlicePool$Queue getting added to Vector and size of the vector is getting increased during application run with time.
Memory Analyser doen't show an erefrences to our application code and it is showing to the above objects and class loader.
I want to understand are there any memory leaks in Jboss7.1.2?
is any one observed similar issues in jboss7.1.2?
I took latest jboss7 from nightly build on Nov 16, 2012 and I observed similar issue there also.
Any suggestions or help please.
Thanks for the help in advance