config.registerTrackingProcessor java.lang.OutOfMemoryError: GC overhead limit exceeded

Using Axon 3.0.3 with Spring boot

If I enable registerTrackingProcessor:


public void configure(final EventHandlingConfiguration config) {


Using mysql I got java.lang.OutOfMemoryError: GC overhead limit exceeded after about 1700 events saved.

This not occur using H2 in memory database.

I think I’m missing something but I do not know where

Any suggestions is appreciate

Tried also with Axon 3.0.4 the problem still remain
I noticed the processors goes to 100% and memory allocation grows untill OutOf.

Hi Pietro,

on another thread (by ‘toi’) he suggested that maybe the gaps were an issue. How did you configure MySQL? Is it a single node or a master-master replicated node that uses auto-increment offsets?

Processor on 100% is a normal symptom with OOMs. It’s usually the garbage collection process that tries to get some memory. And then fails…