Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358129

compiler/startup/StartupOutput.java runs into out of memory on Windows after JDK-8347406

XMLWordPrintable

      The test compiler/startup/StartupOutput.java starts 200 VMs in a loop , this can lead to resource shortages on some machines.
      We see errors like this, probably the number of started JVMs should be somewhat reduced e.g. to 50 or 100, and the resource consumption of those started JVMs should be adjusted too.

      Example error :
      #
      # There is insufficient memory for the Java Runtime Environment to continue.
      # Native memory allocation (mmap) failed to map 4194304 bytes. Error detail: G1 virtual space
      # Possible reasons:
      # The system is out of physical RAM or swap space
      # This process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
      # Possible solutions:
      # Reduce memory load on the system
      # Increase physical memory or swap space
      # Check if swap backing store is full
      # Decrease Java heap size (-Xmx/-Xms)
      # Decrease number of Java threads
      # Decrease Java thread stack sizes (-Xss)
      # Set larger code cache with -XX:ReservedCodeCacheSize=
      # JVM is running with Zero Based Compressed Oops mode in which the Java heap is
      # placed in the first 32GB address space. The Java Heap base address is the
      # maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
      # to set the Java Heap base and to place the Java Heap above 32GB virtual address.
      # This output file may be truncated or incomplete.
      #
      # Out of Memory Error (os_windows.cpp:3556), pid=19372, tid=46104

      We see an
      InitialHeapSize = 536870912 (~500m plus other memory needed by the JVM)
      this is probably too much and leads to the resource shortage.

            dfenacci Damon Fenacci
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: