-
-
Notifications
You must be signed in to change notification settings - Fork 14
Update JVM arguments for memory tuning in Dockerfile #1427
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
base: master
Are you sure you want to change the base?
Conversation
|
added -XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=80. |
|
-XX:+UseContainerSupport can also be used to inform Java that it is running under a container |
srosset81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @guycst !
Can you tell us more about this setting ? Does it mean Fuseki will use, at most, 80% of the RAM available ?
src/jena/fuseki-docker/Dockerfile
Outdated
|
|
||
| MAINTAINER Niko PLP <info@parlepeuple.fr> | ||
|
|
||
| ENV JAVA_MX_RAM="4G" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you replace this now-unused ENV var with two vars (initial & max percentage), so that users of the Docker image can fine-tune it according to their needs ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MaxRAMPercentage parameter allows setting the maximum heap size for a JVM running with a large amount of memory (greater than 200 MB).
The MinRAMPercentage parameter, unlike its name, allows setting the maximum heap size for a JVM running with a small amount of memory (less than 200MB).
Sounds like a good option to add ! |
added -XX:+UseContainerSupport
Commented out the JAVA_MX_RAM now unused environment variable for tuning.
No description provided.