Lappeau•

Many librairies use native code and off heap memory. And some tools are done for that, like Cassandra for example that will by default use very much more off heap than heap memory.

8
francesco_v•

JVM should fix this issue, Docker is important.

Waiting JVM 9...

2
dleskov•

Technically, the formula should say "2 * [-Xmx]", because the value of "-XX:MaxDirectMemorySize" gets synced with the value of "-Xmx" on VM startup by default.

Alexey Ragozin has put together a very concise cheatsheet on HotSpot memory usage and the respective control/logging options.

2
nerdwallerOP•

This is an excellent cheatsheet, mind if I link it from the post and cite you as pointing it out?

1
dleskov•

Sure.

1
istarian•

The post title doesn't convey that the article is talking about server side and/or containerized applications/usage of JVM... In desktop cases I would guess that profiliing and manual tuning is probably sufficient most of the time.

1