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

    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

            luyang.tan Luyang Tan (Inactive)
            olaf.kock Olaf Kock
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 8 weeks, 5 days ago

              Packages

                Version Package
                6.1.X EE
                --Sprint 11/12
                6.2.0 CE M2