Response time and memory consumption related to metaspace size

Metaspace size is a focal parameter in Java related to memory management. It is recommended setting a maximum metaspace limit at least on any test system to detect potential issues before entry into production. The recommended value according to Memory management, auto recover and network settings is the minimum required by ImageMaster. Any value lower than this is likely to cause an out-of-memory exception.

Technically, a maximum metaspace size limit is not required. It is recommended as an early warning measure, however, because if this limit is exceeded, this implies an issue in the Java framework with unexpected memory consumption which:

  • gradually slows the system down

  • eventually causes system failures (e.g. “java.lang.OutOfMemoryError: Metaspace”)

To prevent related issues, the following measures can help: