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

JBoss EAP JVM throws OutOfMemory on dynatrace instrumentation?

Hello, I am trying to instrument a JBOSS EAP jvm using dynatrace appmon 7. As soon as the JVM is started the application throws OutOfMemory exception on instrumentation.

I am clueless about this issue. Pl. help troubleshooting this issue.

Also, I have been suggested to to use the xms/xmx Java_OPTS settings along with agentpath but I am not aware of this setting. Pl. guide through the workaround urgently.

Regards, Rajesh.

5 REPLIES 5

Any Help Pl.?

harald_berger
Dynatrace Pro
Dynatrace Pro

Hi Rajesh,

The XMS / XMX are standard JVM options and have nothing to do with AppMon. So simply try to increase the XMX value.

Please not there are different OutOfMemory exceptions. Also GC overhead may trigger this.

Provide exact stack trace and command line.

Best

Harry

Hi Herald, Thanks for replay.

I have used the below argument to specify these params in appropriate place in starting batch file:

set "JAVA_OPTS=%JAVA_OPTS% -Xms1G -Xmx1G -XX:MaxPermSize=256M -agentpath:"C:\dynatrace7\agent\lib64\dtagent.dll"=name=MyUatAgent_89,server=10.24.11.12:9998"

After this, the server is not going OOM. It is kept under monitoring.

Hi Herald, Unfortunately, the settings mentioned below is OVERRIDING the application heap! And causing application to cause the Garbage Collection.

I would open support case for this issue.

harald_berger
Dynatrace Pro
Dynatrace Pro

Hi Rajesh,

Your JVM reports "OutOfMemory: PermGen space". So increase the PermGen.

You can use -XX:MaxPermSize=128m

Best

Harry