Nexus Docker container eating up all of my hosts's memory?

What is the correct approach the repair the database? I’ve tried Fix Sonatype Nexus OrientDB · GitHub?

It seems as everytime there is a bigger upload e.g. docker push the memory usage increases and stays there. Is that normal behaviour?