Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-26464

Tomcat bundle setenv.[sh|bat] should set CATALINA_OPTS instead of JAVA_OPTS

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      1

      Description

      The standard memory settings are in JAVA_OPTS, done in setenv.sh and setenv.bat. This is bad practice and should be changed to CATALINA_OPTS. One example for why it's bad: JAVA_OPTS is used to start any java process, including the shutdown of Tomcat. If you allocate 8G of RAM for running tomcat, you don't want to allocate these for the JVM that gets started up just to tell tomcat to stop (there will be a second process for short time). If all the memory is allocated immediately, shutting down might even fail with OutOfMemory Exceptions

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 45 weeks, 6 days ago

                Zendesk Support