Category / Section
How to allocate memory for various services in Gluu Server CE
Published:
1 min read
This is how you can specifically allocate memory for various resources. This is suitable for production systems which have at least 8GB of physical memory. You can allocate more memory according to your own setup. Location of the files below is: /etc/default
Identity
- JAVA_OPTIONS should be like this:
JAVA_OPTIONS="-server -Xms256m -XX:MaxMetaspaceSize=1000m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dcatalina.base=/opt/gluu/jetty/identity -Dpython.home=/opt/jython -Dorg.eclipse.jetty.server.Request.maxFormContentSize=50000000"
IDP
- JAVA_OPTIONS should be like this:
JAVA_OPTIONS="-server -Xms256m -Xmx1024m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dcatalina.base=/opt/gluu/jetty/idp"
oxAuth:
- JAVA_OPTIONS should be like this:
JAVA_OPTIONS="-server -Xms256m -XX:MaxMetaspaceSize=1317m -XX:+DisableExplicitGC -Dgluu.base=/etc/gluu -Dpython.home=/opt/jython -Dcatalina.base=/opt/gluu/jetty/oxauth"
- Restart Gluu Server container.
- Same way we can modify memory allocation for other components like Passport.