To increase memory and change server mode you just need to write below arguments in setenv.sh file.
Example:
path: /bundles/tomcat-7.0.42/bin/setenv.sh
CATALINA_OPTS="$CATALINA_OPTS -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.$Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=1024m -Dexternal-properties=portal-developer.properties"
in the above example -Xmx1024m -XX:MaxPermSize=1024m are memory arguments and -Dexternal-properties=portal-developer.properties is Server mode in which I have set Server mode to Development.
Hope this will help you :)
0 Comment(s)