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

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

XMLWordPrintable

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

      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.

            rhn-support-csutherl Coty Sutherland
            rhn-support-leiyu Lei Yu (Inactive)
            Matus Madzin Matus Madzin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: