Skip to content

OutOfMemory following CheckStyle 9.X upgrade #10934

@blacelle

Description

@blacelle

I consider checkstyle used in a maven multi-module project.

	<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-checkstyle-plugin -->
	<maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version>
	<!-- https://mvnrepository.com/artifact/com.puppycrawl.tools/checkstyle -->
	<checkstyle.version>9.1</checkstyle.version>

I end with OutOfMemory issues in a compilation step going through all modules:

16:03:39,815 [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ dp-proxy ---
16:03:39,819 [INFO] Changes detected - recompiling the module!
16:03:39,976 [INFO] Compiling 26 source files to /home/circleci/project/exec/dp-proxy/target/classes
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid153.hprof ...
Heap dump file created [912601987 bytes in 4.290 secs]

I can not share the code as the project is private.

Screenshot 2021-11-08 at 17 32 16

Screenshot 2021-11-08 at 17 31 54

I feel the issue is some of these ANTLR objects are not cleaned from one module to another.

I can dig deeper in the HeapDump through MAT if helpful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions