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

Offline Tar Compaction not Successful

Maddy737
Level 4
Level 4

Dear all,

I run the offline compaction on AEM 6.0 and it took more than 5 hours and final throws below error.

Command i have used java -Dtar.memoryMapped=true -Xmx8g -jar $oakrun checkpoints $aemfolder/repository/segmentstore >> $installfolder/help/logs/$logfile

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

at org.apache.jackrabbit.oak.plugins.memory.MemoryNodeBuilder.setProperty(MemoryNodeBuilder.java:489)

at org.apache.jackrabbit.oak.spi.state.ApplyDiff.propertyAdded(ApplyDiff.java:62)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.propertyAdded(Compactor.java:155)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:155)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.Compactor$CompactDiff.childNodeAdded(Compactor.java:184)

at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:160)

at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)

at org.apache.jackrabbit.oak.plugins.segment.Compactor.process(Compactor.java:105)

at org.apache.jackrabbit.oak.plugins.segment.Compactor.compact(Compactor.java:111)

at org.apache.jackrabbit.oak.plugins.segment.file.FileStore.compact(FileStore.java:693)

at org.apache.jackrabbit.oak.run.Main.compact(Main.java:389)

at org.apache.jackrabbit.oak.run.Main.main(Main.java:147)

4 Replies
smacdonald2008
Level 10
Level 10

This looks like a memory issue -- java.lang.OutOfMemoryError

Gaurav-Behl
Community Advisor
Community Advisor

Provide more memory since you are using memoryMapped feature -

-Xmx20g or based on your available RAM

Maddy737
Level 4
Level 4

Hi edubey

Thank you, Actually am using oak verion 1.0.39, can we still use the parameters mentioned?

Oak Offline Compaction - Improve performance, avoid memory issues and track progress

Currently my system having 20GB of RAM, this is pre prod environment and i think 20GB would be sufficient. Your thoughts please.