Package com.jetbrains

Interface SystemUtils


@Service @Provided public interface SystemUtils
Extends services provided by java.lang.System and similar.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Performs garbage collection making an additional effort to mark and collect referrents of soft and weak references.
    void
    Performs garbage collection making an additional effort to reduce the heap's committed size.
  • Method Details Link icon

    • fullGC Link icon

      void fullGC()
      Performs garbage collection making an additional effort to mark and collect referrents of soft and weak references. Implemented for G1 only; equivalent to System.gc() for other garbage collectors.
    • shrinkingGC Link icon

      @Extension(SHRINKING_GC) void shrinkingGC()
      Performs garbage collection making an additional effort to reduce the heap's committed size. After GC, the JVM adjusts the committed heap size based on the amount of used memory, adhering to the -XX:JbrShrinkingGcMaxHeapFreeRatio option. Implemented for G1 only; equivalent to System.gc() for other garbage collectors. Equivalent to System.gc() if -XX:JbrShrinkingGcMaxHeapFreeRatio option is not set. Note: This does not change the minimum (-Xms) or maximum (-Xmx) heap size limits