thanks Jean-Louis.

i used gdb to get a jvm.core on the live system as it is much faster.  then i used jmap to convert it to a jvm.hprof. (https://www.atlassian.com/blog/archives/so-you-want-your-jvms-heap) then i used eclipse memory analyser to get the dominator table, and paths to GC root (https://vimeo.com/21356498)

yes visualvm would be much better to show increase in memory consumption after gc.  i did have jmx set up on the server and i could view over ssh.  but like i say i am still struggling to find visualvm through yum

On 26/12/2018 12:06, Jean-Louis Monteiro wrote:
I'd say probably before going too deep, I would just use the verbose:gc
option piped into a log file so it can be further analyzed.

It should show a memory increase to confirm.
Also when it gets slow, probably a jstack could also help to see where the
threads are.

As for the head dump, I also use jvisualvm.
JMC is now available for free in OpenJDK (I believe) and might be helpful.

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Wed, Dec 26, 2018 at 11:23 AM Bruno Baptista <[email protected]> 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?

--
Mr MT Broadhead
Nigel Broadhead Mynard
See the latest jobs available at NBM @ https://nbmlaw.co.uk/recruitment.htm

32 Rainsford Road
Chelmsford Essex CM1 2QG
Tel: 01245 269909 Fax: 01245 261932
https://nbmlaw.co.uk

Partners: WJ Broadhead NP Eason SJ Lacey CR Broadhead D Seepaul T Carley

Nigel Broadhead Mynard Solicitors are authorised and regulated by the 
Solicitors Regulation Authority. We are also bound by their code of conduct. 
Registered no. 00061052

Nigel Broadhead Mynard also provide a will writing service, see 
https://nbmlaw.co.uk/wills.htm for more information

Confidentiality: Information in this message is confidential and may be legally 
privileged. It is intended solely for the recipient to whom it is addressed. If 
you receive the message in error, please notify the sender and immediately 
destroy all copies.

Security warning: Please note that this e-mail has been created in the 
knowledge that e-mail is not a 100% secure communications medium. We advise you 
that you understand and observe this lack of security when e-mailing us. This 
e-mail does not constitute a legally binding document. No contracts may be 
concluded on behalf of Nigel Broadhead Mynard Solicitors by e-mail 
communications.

Disclaimer: Please be aware of cyber crime. Nigel Broadhead Mynard will not 
take responsibility if you transfer money to a wrong bank account. Please speak 
to your Solicitor before transferring any money. If you receive an email from 
Nigel Broadhead Mynard requesting your bank details or telling you our bank 
details have changed, please contact your Solicitor immediately to clarify.

PLEASE ALSO NOTE that Nigel Broadhead Mynard only use emails which end with the suffix 
@nbmlaw.co.uk. If you receive any email from an address without that suffix or where that 
suffix does not appear in the address box when you click "Reply" then you 
should not rely on the email being from NBM and you should immediately contact us on the 
above number or any numbers published on our website to verify the source of the email is 
genuine.

If you have any queries, please contact [email protected]

Reply via email to