[ http://jira.magnolia.info/browse/MAGNOLIA-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Joseph moved SYS-21 to MAGNOLIA-2404: --------------------------------------------- Project: Magnolia (was: Systems / Infrastructure) Key: MAGNOLIA-2404 (was: SYS-21) Workflow: Copy of default jira wf (was: jira) Security: (was: Public) > Add a line in catalina.sh to display the heap-settings on Magnolia startup > -------------------------------------------------------------------------- > > Key: MAGNOLIA-2404 > URL: http://jira.magnolia.info/browse/MAGNOLIA-2404 > Project: Magnolia > Issue Type: Improvement > Environment: Magnolia EE 3.5.4, Tomcat 5.5 > Reporter: Giancarlo Berner > Assignee: Gregory Joseph > Priority: Trivial > > Magnolia requires a lot of heap (depending on persistence manager and version > settings too) and so the "Out Of Memory" error occurs every once and then. > Since magnolia_control.sh by default sets the "CATALINA_OPTS" properties, why > not display them on startup of Magnolia? > magnolia_control.sh calls startup.sh which launches catalina.sh. > I suggest that we add the line > echo "Using CATALINA_OPTS: $CATALINA_OPTS" > to the "Execute The Requested Command". The section will look like follows: > # ----- Execute The Requested Command > ----------------------------------------- > # Bugzilla 37848: only output this if we have a TTY > if [ $have_tty -eq 1 ]; then > echo "Using CATALINA_BASE: $CATALINA_BASE" > echo "Using CATALINA_HOME: $CATALINA_HOME" > echo "Using CATALINA_TMPDIR: $CATALINA_TMPDIR" > if [ "$1" = "debug" -o "$1" = "javac" ] ; then > echo "Using JAVA_HOME: $JAVA_HOME" > else > echo "Using JRE_HOME: $JRE_HOME" > fi > echo "Using CATALINA_OPTS: $CATALINA_OPTS" > fi > This will extend the output to show something like this: > Using CATALINA_BASE: /Applications/Mg354/apache-tomcat-5.5.25 > Using CATALINA_HOME: /Applications/Mg354/apache-tomcat-5.5.25 > Using CATALINA_TMPDIR: /Applications/Mg354/apache-tomcat-5.5.25/temp > Using JRE_HOME: > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home > Using CATALINA_OPTS: -Xms512M -Xmx1024M -Djava.awt.headless=true > allowing to easily see what additional options, like e.g. Heap, has been set. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------