Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-788

Java Agent 5 on Tomcat is not turned off properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0.0
    • Fix Version/s: 5.0.0.0
    • Component/s: J2EE Agents
    • Environment:
      jdk1.8.0_91 / Tomcat 7.0.79 / Java Agent Version: 5.0.0-SNAPSHOT, Build Date: 20170717
    • Target Version/s:
    • Verified Version/s:
    • Sprint:
      Sprint 2017.10 - Whorl

      Description

      Java Agent 5 on Tomcat is not turned off properly.

      Steps to reproduce

      1.) Install the policy agent
      2.) Start Tomcat/Agent
      3.) Turn off agent/tomcat

      Observed

      There is no port which used tomcat, but process is not killed

      [root@perf-openam2 opt]# ./apache-tomcat-7.0.79/bin/shutdown.sh 
      Using CATALINA_BASE:   /opt/apache-tomcat-7.0.79
      Using CATALINA_HOME:   /opt/apache-tomcat-7.0.79
      Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.79/temp
      Using JRE_HOME:        /opt/jdk1.8.0_91
      Using CLASSPATH:       /opt/apache-tomcat-7.0.79/bin/bootstrap.jar:/opt/apache-tomcat-7.0.79/bin/tomcat-juli.jar
      [root@perf-openam2 opt]# netstat -tnlp
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
      tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1582/sshd           
      tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1661/master         
      tcp        0      0 :::80                       :::*                        LISTEN      5528/httpd          
      tcp        0      0 :::22                       :::*                        LISTEN      1582/sshd           
      [root@perf-openam2 opt]# ps -ef | grep java
      root     22472     1 10 16:28 pts/0    00:00:30 /opt/jdk1.8.0_91/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-7.0.79/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dopenam.agents.bootstrap.dir=/opt/agents/j2ee_agents-5.0.0/tomcat_v6_agent/Agent_002/config -Djdk.tls.ephemeralDHKeySize=2048 -Xmx1536m -XX:MaxPermSize=256m -Djava.endorsed.dirs=/opt/apache-tomcat-7.0.79/endorsed -classpath /opt/apache-tomcat-7.0.79/bin/bootstrap.jar:/opt/apache-tomcat-7.0.79/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-7.0.79 -Dcatalina.home=/opt/apache-tomcat-7.0.79 -Djava.io.tmpdir=/opt/apache-tomcat-7.0.79/temp org.apache.catalina.startup.Bootstrap start
      root     22752 18661  0 16:33 pts/1    00:00:00 grep java
      

      Expected

      Agent/tomcat should be shutted down properly

      I reproduced this issue on Tomcat 7 and Tomcat 8.5

        Attachments

          Activity

            People

            Assignee:
            apforrest Andrew Forrest
            Reporter:
            richard.hruza Richard Hruza
            QA Assignee:
            Richard Hruza Richard Hruza
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: