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

[ASF BZ 62892] tomcat-native memory leak when using Mutual authentication + OCSP

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 3.1.6.ER1
    • JWS 3.1.0 SP4 GA
    • tomcat-native
    • None
    • Release Notes
    • Not Yet Documented
      • create selfsigned OCSP certifcate
      • configure tomcat to use native apr connector and enable Mutual authentication
      • run load test
      • run ./tomcat_watcher.sh <tomcat8_pid>

    Description

      Customer noticed the native memory increase when using Mutual authentication and OCSP on tomcat8, they are using this script:

      $ cat /root/certs/tomcat_watcher.sh 
      #!/bin/bash
      pid=$1
      counter=1
      until [ $counter -gt 240 ]
      do
      currentdate=$(date +"%m-%d-%Y %H:%M:%S")
      privatemem=$(echo 0 $(awk '/Private/ {print "+", $2}' /proc/$pid/smaps) | bc)
      echo $currentdate,$privatemem
       ((counter++))
      sleep 30
      done
      

      and running it as ./tomcat_watcher.sh <tomcat8_pid>. The result is that the memory increases during the load test, if they test with no Mutual authentication and OCSP, there is no such issue. I have tested in my environment with the following versions:

      • jws3.1 rpm install,
      • tomcat-native-1.2.8-10.redhat_10.ep7.el7
      • rhel 7.4

      I have used tomcat-native-1.2.8 as it is listed in the supported configuration for JWS 3.1, I can replicate the issue when the server is not used.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-csutherl Coty Sutherland
              rhn-support-leiyu Lei Yu (Inactive)
              Daniel Philips Daniel Philips (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: