Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-409

OutOfMemory issue in multi-module project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.2, 3.2.0
    • 3.2.0
    • checkstyle:check
    • None

    Description

      The issue seems to appear more often since upgrading to CheckStyle 9.X. However, the issue seems to rely in checkstyle mojo.

      I initially reported the issue at: https://github.com/checkstyle/checkstyle/issues/10934

      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.

      Attachments

        1. Screenshot 2021-11-08 at 17.31.54.png
          1.15 MB
          Benoit Lacelle
        2. Screenshot 2021-11-08 at 17.32.16.png
          421 kB
          Benoit Lacelle
        3. Screenshot 2021-11-08 at 18.30.37.png
          1006 kB
          Benoit Lacelle

        Activity

          People

            slachiewicz Sylwester Lachiewicz
            blasd Benoit Lacelle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: