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

Static JAVA_XMX and JAVA_XX_MAXPERMSIZE env variables #141

Open
joshuabaird opened this issue Jul 13, 2015 · 0 comments
Open

Static JAVA_XMX and JAVA_XX_MAXPERMSIZE env variables #141

joshuabaird opened this issue Jul 13, 2015 · 0 comments

Comments

@joshuabaird
Copy link

JAVA_XMX and JAVA_XX_MAXPERMSIZE have static values in templates/setenv.sh.header. You can override these by using "SETENV" on tomcat::instance, but the result is a confusing file where you have these variables defined twice that looks like this:

export DSUN_JAVA2D_OPENGL="false"
export DJAVA_AWT_HEADLESS="true"
export JAVA_XMX="256m"
export JAVA_XX_MAXPERMSIZE="256m"

export JAVA_XMX="28000m"
export JAVA_XX_MAXPERMSIZE="750m"

. $CATALINA_BASE/bin/setenv-local.sh

export JAVA_OPTS="-Dsun.java2d.opengl=${DSUN_JAVA2D_OPENGL} \
                  -Djava.awt.headless=${DJAVA_AWT_HEADLESS} \
                  -Xmx${JAVA_XMX} \
                  -XX:MaxPermSize=${JAVA_XX_MAXPERMSIZE} \
                  ${ADD_JAVA_OPTS}"

Is there a reason these are statically defined?

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

1 participant