You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In applications that should optimise for minor garbage collection (which is most of the cloud-based one in my experience), it is useful to set the -Xmn to fix how much memory can be allocated in the heap for young generation. This parameter usually makes sense a fraction of the total heap memory, so that allocating more memory to the surrounding container lets the memory allocated to young generation expand linearly with the total memory available to the heap.
We have implemented this feature in the forked the memory calculator used by the Instana Agent, but we'd be happy to contribute back if this feature is interesting to this project.