Skip to content
Discussion options

You must be logged in to vote

We're running 32GB production instances with the following config:

  • Java heap 3GB
  • Disk cache 16GiB

We pre-size Java heap (-Xmx and -Xms), and pre-touch (-XX:+AlwaysPreTouch) and pre-allocate (-Dmemory.directMemory.preallocate=true) direct memory to avoid surprises, but don't limit direct memory allocation at the JVM level.

This is quite a conservative sizing intentionally, and we're getting around nowish to instrumenting disk cache and direct memory allocation so we can track them in our metrics and push them a bit more.
This has been pretty reliable wrt OOM killer issues and overall performance running under significant transaction loads.

Aside from the usual OOM caveats (e.g. the exact…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tglman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants