Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

What JVM Garbage Collections options for AEM do you use?

Avatar

Level 1

So, by default the start script of AEM doesn't contain any specific JVM OPTS that configure / tune the way in which the JVM performs Garbage Collection.

Just wondering: What JAVA_OPTS do you guys use in the start script to configure the GC process for the Java Virtual Machine?

PS: Not talking about the Garbage Collection for the Datastore, this is about the JVM and it's memory management.

PSS: How about using the new G1GC, anyone got experience with that?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
3 Replies

Avatar

Community Advisor

Any issues with your JVM that force you to change GC OPTS?

Avatar

Level 1

We're seeing a lot of heap memory being held in the Old Gen Space. Manually triggering a Full GC reduces this by a lot. My assumption at this point is that GC is set a bit to lazy by default.

We've assigned 12Gb to the heap by the way, so in any case there's plenty of room left.

Avatar

Correct answer by
Employee Advisor

Why do you want to change JVM settings if you don't have to?

JVM tuning or premature optimization? | Things on a content management system