Java8 and above. How is it right to build a memory for JVM?



  • There's a java app that actively uses memory outside the couch (jvm heap). These are mainly jni challenges and buffered facilities, which are used in NIO/2. 4GB of the jvm emitted (not including memory under static constants of 1GB). How is it right to build jvm for objects not stored in a puppet?



  • It depends on the way the objects are allocated. In general, JVM has no control over the remembrance of the intact methods.

    For the memory of the NIO buffer, you can try to build -XX:MaxMetaspaceSize= or -XX:MaxDirectMemorySize




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2