Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7125

SQ startup fails with OOM when temp file is too big

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      When starting up an SQ instance with a temp directory containing an decompressed report of 1Gb (and presumably a lot files), the bootstrap JVM fails with an OOM when try and failing to delete the temp directory

      WrapperSimpleApp: Encountered an error running main: java.lang.OutOfMemoryError: GC overhead limit exceeded
      java.lang.OutOfMemoryError: GC overhead limit exceeded
          at java.io.WinNTFileSystem.list(Native Method)
          at java.io.File.list(File.java:1122)
          at java.io.File.listFiles(File.java:1207)
          at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1645)
          at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
          at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
          at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
          at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
          at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
          at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
          at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
          at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
          at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
          at org.apache.commons.io.FileUtils.deleteQuietly(FileUtils.java:1566)
          at org.sonar.application.PropsBuilder.initTempDir(PropsBuilder.java:102)
          at org.sonar.application.PropsBuilder.build(PropsBuilder.java:73)
          at org.sonar.application.App.main(App.java:115)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:497)
          at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
          at java.lang.Thread.run(Thread.java:745)
      WrapperSimpleApp: start(args) end.  Main Completed=true, exitCode=1
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomas.verin Thomas VĂ©rin
                Reporter:
                sebastien.lesaint Sebastien Lesaint
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: