Hi Mathew,

Thanks.

Are you including some bval dependency in the code of your own app?

You can zip that file. It will get much smaller. If you could share it, it would be nice indeed.

Cheers!

Bruno Baptista
https://twitter.com/brunobat_


On 26/12/18 11:27, Matthew Broadhead wrote:
the top 4 classes on the dominator table are
class - objects - retained heap - percentage
org.apache.bval.cdi.BValExtension - 27 - 785,781,368 - 50.38%
org.apache.webbeans.container.BeanManagerImpl - 27 - 262,583,784 - 16.84%
org.apache.openjpa.kernel.FinalizingBrokerImpl - 6,643 - 81,369,760 - 5.22%
java.lang.Class - 52,286 - 59,176,176 - 3.79%

i have been using OpenJDK forever
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/bin/java

i can make the jvm.hprof available by gogole drive or similar (at risk of making myself look stupid for having a big memory leak!). it is 3.2GB

On 26/12/2018 12:19, Bruno Baptista wrote:
Hi Matthew

It comes with the JDK, just type:

$ jvisualvm

But that BValExtension usage is intriguing.

Can you please let us know the top 4 classes in the retained list?

This is on 7.0.5 plus with Oracle JDK 8?

Cheers

Bruno Baptista
https://twitter.com/brunobat_


On 26/12/18 11:10, Matthew Broadhead wrote:
hi Bruno,

i can't find visualvm in centos.  i had it in ubuntu but i don't know which centos repo it is in.  i suppose i could download it directly...

eclipse memory analyser gives me a retained heap size of 785,781,368 for org.apache.bval.cdi.BValExtension which is 50.38% of everything.

On 26/12/2018 11:23, Bruno Baptista wrote:
Thant's interesting Matthew.

Usually I open those in jvisualvm. I go to classes and activate the retained column.

That column will calculate the retained (effective) memory usage by class.

Usually it takes a while to calculate, that's why it's not on by default.

Cheers

Bruno Baptista
https://twitter.com/brunobat_


On 26/12/18 09:28, Matthew Broadhead wrote:
TomEE 7.0.5 plus

i had a recent memory leak which was stalling the server every couple of days.  so i did a heap dump and solved that problem.

then i decided to do another heap dump because the server is running pretty slowly.  each page is taking a few seconds to load on a 32GB system.  (i did clear out work directory)

it turns out that more than half of the memory is consumed with org.apache.bval.cdi.BValExtension.  is this fairly normal? using Eclipse Memory Analyser i have dug into shortest routes to GC root but i don't find any of my objects listed there.  mostly BVal stuff.  are there any tips for debugging heap dumps?


Reply via email to