Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sensible Java Metaspace Size Limit to fits-ngserver.sh #177

Open
jpellman opened this issue Jul 10, 2018 · 1 comment
Open

Add Sensible Java Metaspace Size Limit to fits-ngserver.sh #177

jpellman opened this issue Jul 10, 2018 · 1 comment

Comments

@jpellman
Copy link

The FITS nailgun wrapper is currently running using the Java 8 defaults. Under these defaults, there is no limit to the max metaspace size. This leads to the unfortunate side effect that if FITS is under heavy use it might cause out-of-memory errors due to the metaspace eating up all of the host's RAM. It might make sense to have this wrapper use the -XX:MaxMetaspaceSize= parameter when starting up Nailgun along with a sensible value based off the available RAM on the host.

@pwinckles
Copy link
Contributor

@jpellman Have you tried setting that parameter? If so, did it actually work? Metaspace is not supposed to grow unbound. I would expect that putting a limit on it would just cause the service to OOM sooner than later. I wonder if this is an issue that's unique to running FITS through nailgun, or if it's a general problem. It would likely be useful to see what's eating the metaspace. This could either be erroneous class loading, or native allocations that are not being reclaimed (likely culprits for the native allocations are MediaInfo and nailgun itself).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants