Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "FAQ/Memory" page has been changed by KonstantinKolinko: https://wiki.apache.org/tomcat/FAQ/Memory?action=diff&rev1=13&rev2=14 Comment: Recommend using CATALINA_OPTS. Using JAVA_OPTS to set memory settings is a bad idea. == Answers == <<Anchor(Q1)>>'''How do I adjust memory settings?''' - First look at {{{java -X}}} to determine what parameters to set. Then you can set them via the environment variable {{{JAVA_OPTS}}}. Read the files catalina.bat or catalina.sh for more information on JAVA_OPTS. + First look at {{{java -X}}} to determine what parameters to set. Then you can set them via the environment variable {{{CATALINA_OPTS}}} (using `JAVA_OPTS` also works, but is not recommended). This variable is usually set in a file `bin/setenv.sh` or `bin/setenv.bat` that you may need to create by yourselves. + + The `setenv` file is documented in RUNNING.txt in your version of Tomcat. The environment variables are described in a comment at the top of catalina.bat or catalina.sh files. <<Anchor(Q2)>>'''Why do I get {{{OutOfMemoryError}}} errors?''' @@ -54, +56 @@ * That being said, a memory profiling tool might prove the above statements wrong - but you probably don't want to use them in a production environment. ---- - [[CategoryFAQ|CategoryFAQ]] + [[CategoryFAQ]] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org