I've dumped JVM memory on OutOfMemoryError and started to analyze it with
Eclipse Memory Analyzer. I think there is some problem with MavenLog
class. One of instances points to a String 275MB big... Connections go
like this:
So it looks like MavenEventStore stores logs in CircularFifoBuffer. CFB
has got array of logs (array size: 10000). Array holds reference to a
MavenLog which references enormous String (137022158 characters). This
String starts with: " (f) classpathElements = [" - after this goes
classpath elements from my project; two first chars are whitespaces.
I think this take place only while plugin enables maven dependency
management. Maybe when I'm enabling it for 50+ projects at one operation,
this log is concatenated between all of them?