cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Memory leak on hot deploy WAR

primiano_ciavar
Newcomer

Hi,

when we deploy a WAR we get a memory leak caused by class com.dynatrace.diagnostics.agent.introspection.as.

Complete path:

Class Name | Ref. Objects | Shallow Heap | Ref. Shallow Heap | Retained Heap
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
class com.dynatrace.diagnostics.agent.introspection.as @ 0x7a0177f90 System Class | 11.171 | 40 | 780.752 | 91.088
'- d com.dynatrace.diagnostics.agent.introspection.as @ 0x6602cc3e8 | 11.171 | 24 | 780.752 | 90.976
'- e com.dynatrace.diagnostics.agent.b.i @ 0x660360318 | 11.171 | 40 | 780.752 | 90.952
'- b com.dynatrace.diagnostics.agent.cache.f @ 0x660360330 | 11.171 | 24 | 780.752 | 90.912
'- a java.util.WeakHashMap @ 0x6c4678460 | 11.171 | 72 | 780.752 | 90.888
'- table java.util.WeakHashMap$Entry[128] @ 0x6c46784c8 | 11.171 | 1.048 | 780.752 | 90.760
'- [120] java.util.WeakHashMap$Entry @ 0x6c4678728 | 11.171 | 72 | 780.752 | 1.864
'- value com.dynatrace.diagnostics.agent.b.j @ 0x680021070 | 11.171 | 24 | 780.752 | 1.792
'- a com.dynatrace.diagnostics.agent.cache.f @ 0x680021088 | 11.171 | 24 | 780.752 | 1.768
'- a java.util.WeakHashMap @ 0x6aaca2158 | 11.171 | 72 | 780.752 | 1.744
'- table java.util.WeakHashMap$Entry[16] @ 0x6aaca2188 | 11.171 | 152 | 780.752 | 152
'- [12] java.util.WeakHashMap$Entry @ 0x6aaca2210 | 11.171 | 72 | 780.752 | 1.464
'- value java.lang.reflect.Method @ 0x6aaca2238 | 11.171 | 152 | 780.752 | 1.392
'- returnType class ch.qos.logback.classic.Level @ 0x7c0d52908 | 11.171 | 152 | 780.752 | 512
|- <classloader> org.apache.catalina.loader.WebappClassLoader @ 0x67277c1d8| 11.164 | 336 | 780.528 | 8.598.840
|- TRACE ch.qos.logback.classic.Level @ 0x6721929a0 | 1 | 32 | 32 | 32
|- WARN ch.qos.logback.classic.Level @ 0x672191518 | 1 | 32 | 32 | 32
|- OFF ch.qos.logback.classic.Level @ 0x6715dbaf8 | 1 | 32 | 32 | 32
|- INFO ch.qos.logback.classic.Level @ 0x6715dbb10 | 1 | 32 | 32 | 32
|- DEBUG ch.qos.logback.classic.Level @ 0x6715dbb28 | 1 | 32 | 32 | 32
|- ERROR ch.qos.logback.classic.Level @ 0x6728abdb0 | 1 | 32 | 32 | 32
|- ALL ch.qos.logback.classic.Level @ 0x6715dbb40 | 1 | 32 | 32 | 32
'- Total: 8 entries | | | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

eclipse-m-a.txt

visual-vm.jpg

4 REPLIES 4

harald_berger
Dynatrace Pro
Dynatrace Pro

Hi,

The agent holds its own cache to speed up things like reflection calls, which is the case here.
Why do you suspect there is a leak? The consumed heap does not suggest that.

Best

Harry









Salve,



La ringrazio per avermi contattato. Sarò fuori ufficio fino al 2 aprile 2017.



Cordiali saluti.




Le informazioni contenute in questo messaggio sono riservate ed esclusivamente indirizzate al destinatario indicato - ovvero alla persona incaricata di recapitarlo. La riproduzione, la comunicazione, la diffusione non autorizzate non sono consentite. Nel caso in cui aveste ricevuto questo messaggio per errore, vogliate cortesemente cancellarlo, compresi gli eventuali file allegati ed avvisare il mittente. L’azienda indicata nell’estensione dell’indirizzo non assume alcuna responsabilità su eventi causati da questo messaggio in seguito a manipolazioni del contenuto o della struttura quali: intercettazioni, modifiche, danneggiamenti, usi impropri, inserimenti di virus e codici maligni. I contenuti del messaggio non comportano alcun vincolo ne’ creano obblighi per l’azienda stessa, salvo ciò non sia espressamente previsto da un accordo scritto. Grazie per la collaborazione.

Information in this message is reserved and exclusively addressed to the above mentioned person. Unauthorized reproduction, communication or disclosure is not allowed. If you have received this email by mistake, you are kindly requested to delete it, including any attachments, and to inform the sender. The company indicated as sender does not assume any responsibility on whatever could happen as a consequence of manipulation of contents or structure of this message, e.g.: interception, change, damage, improper use, presence of virus or malicious code. The contents of this message do not create obligations for the company, other than those specifically established by written agreements. Thank you for your cooperation.

primiano_ciavar
Newcomer

Hi Harald, that's not a suspect. Have you analized the heap dump attached?

philipp_grasboe
Newcomer

It's correct, the classes mentioned in the first message belong to the agent's reflection cache. Please note that the implementation in 6.2 was flawed and has been reworked for 6.5.

Hope that helps,

Philipp