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

tomcat service restarts will cause a duplicated command-line arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • JWS 3.1.0 SP2 DR1
    • rpm, tomcat7, tomcat8
    • None

      Our automated test for BZ1042811 fails on RHEL6:

      .qa.[root@intel-sugarbay-dh-02 ~]# service tomcat8 start
      Starting tomcat8: [  OK  ]
      .qa.[root@intel-sugarbay-dh-02 ~]# pgrep -lf tomcat8
      22083 /usr/lib/jvm/java/bin/java -Djava.security.egd=file:/dev/urandom -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat8/conf/logging.properties -classpath /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar:/usr/share/tomcat8/bin/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat8 -Dcatalina.home=/usr/share/tomcat8 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat8/temp org.apache.catalina.startup.Bootstrap start
      
      .qa.[root@intel-sugarbay-dh-02 ~]# service tomcat8 restart
      Stopping tomcat8: [  OK  ]
      Starting tomcat8: [  OK  ]
      .qa.[root@intel-sugarbay-dh-02 ~]# pgrep -lf tomcat8
      22251 /usr/lib/jvm/java/bin/java -Djava.security.egd=file:/dev/urandom -Djava.security.egd=file:/dev/urandom -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/share/tomcat8/conf/logging.properties -classpath /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar:/usr/share/tomcat8/bin/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat8 -Dcatalina.home=/usr/share/tomcat8 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat8/temp org.apache.catalina.startup.Bootstrap start
      
      .qa.[root@intel-sugarbay-dh-02 ~]# tr \\0 \\n </proc/22251/cmdline 
      /usr/lib/jvm/java/bin/java
      -Djava.security.egd=file:/dev/urandom
      -Djava.security.egd=file:/dev/urandom
      -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
      -Djava.util.logging.config.file=/usr/share/tomcat8/conf/logging.properties
      -classpath
      /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar:/usr/share/tomcat8/bin/commons-daemon.jar
      -Dcatalina.base=/usr/share/tomcat8
      -Dcatalina.home=/usr/share/tomcat8
      -Djava.endorsed.dirs=
      -Djava.io.tmpdir=/var/cache/tomcat8/temp
      org.apache.catalina.startup.Bootstrap
      start
      

      Note that you have to add an additional parameter for tomcat to duplicate this. In the case above, it is -Djava.security.egd=file:/dev/urandom.

      RHEL7 does not have the problem above.

              rhn-support-csutherl Coty Sutherland
              mczernek@redhat.com Marek Czernek (Inactive)
              Marek Czernek Marek Czernek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: