Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-740

[RHEL 6 RPM] JVM options are doubled after service restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JWS 5.0_RHEL DR1
    • JWS 3.1.0 SP1 DR1
    • rpm, tomcat
    • None
    • Hide

      1) Add some shell expansion to tomcat*.conf

      $ echo "JAVA_OPTS=\"${JAVA_OPTS} -Xms1m\"" >> /etc/tomcat8/tomcat8.conf
      

      2) Start tomcat and verify that there's only one instance of the Xms argument

      $ service tomcat8 start
      $ ps aux | grep tomcat | grep -o \\-Xms1m
      -Xms1m
      

      3) Restart tomcat to duplicate the JAVA_OPTS

      $ service tomcat8 restart
      

      4) Verify that there are multiple Xms args with ps

      $ ps aux | grep tomcat | grep -o \\-Xms1m
      -Xms1m
      -Xms1m
      
      Show
      1) Add some shell expansion to tomcat*.conf $ echo "JAVA_OPTS=\"${JAVA_OPTS} -Xms1m\"" >> /etc/tomcat8/tomcat8.conf 2) Start tomcat and verify that there's only one instance of the Xms argument $ service tomcat8 start $ ps aux | grep tomcat | grep -o \\-Xms1m -Xms1m 3) Restart tomcat to duplicate the JAVA_OPTS $ service tomcat8 restart 4) Verify that there are multiple Xms args with ps $ ps aux | grep tomcat | grep -o \\-Xms1m -Xms1m -Xms1m

      Basically, it is the same problem as
      https://bugzilla.redhat.com/show_bug.cgi?id=1042811

      Affects: Tomcat 7 and 8 on RHEL6

      This is not regression against 3.1.0.GA

            rhn-support-csutherl Coty Sutherland
            jstefl@redhat.com Jan Štefl
            Jan Onderka Jan Onderka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: