Help Center/ Application Performance Management/ FAQs/ Usage FAQs/ Why Is the Allocated Memory Greater Than the Preset Maximum Memory on the JVM Monitoring Page?
Updated on 2022-06-09 GMT+08:00

Why Is the Allocated Memory Greater Than the Preset Maximum Memory on the JVM Monitoring Page?

JVM uses the dynamic memory allocation mechanism. The amount of memory to be allocated must be a multiple of 2. Even if the minimum memory, -Xms is configured, JVM may not allocate the minimum amount of memory at the beginning. In some cases, the allocated memory may slightly exceed the maximum memory, -Xmx. To solve the problem, configure -XX:+AlwaysPretouch to prevent dynamic heap memory allocation.