The client complains that it experiences a memory leak in our Java application.
Despite all my efforts to reproduce its surroundings, configuration, and use, I could not reproduce and thus identify the leak.
I would like to go a different way ... Instead of trying to reproduce it, perhaps I could ask him to create some idea of ββhis heap that would allow me to identify the leak.
Being a managed client who will send it to me, there are some requirements for this:
- Do not contain confidential information
- Must be small enough to be sent over the Internet.
- It should be created by an easily accessible tool (it would be better if it were in the Java distribution)
Full heap dumping is not possible due to 1. and 2.
First of all, this should allow me to find a leak. Therefore, it should at least show the saved heap size for objects of each class (the size of itself + everything that it refers to). jmap -histo
definitely not enough.
num
Is something like this useful at all? I do not think so.
source share