The tomcat version is apache-tomcat-8.5.29
And RedHat Enterprise Linux 7.6

On 22/07/20, 7:28 PM, "Ragavendhiran Bhiman (rabhiman)" 
<rabhi...@cisco.com.INVALID> wrote:

    Hi Chris,

    Please see my answers inline.
    Also shared the svg graph here.

    https://www.dropbox.com/sh/o6zra7pf2o1xpge/AAA1J7BaVdPDF7s3RjPmy0xBa?dl=0

    Kindly reply.


    Thanks & Regards,
    Raghav

    On 20/07/20, 11:08 PM, "Christopher Schultz" <ch...@christopherschultz.net> 
wrote:

        -----BEGIN PGP SIGNED MESSAGE-----
        Hash: SHA256

        Ragavendhiran,

        On 7/18/20 08:53, Ragavendhiran Bhiman (rabhiman) wrote:
        > The OS is RHEL => 7.6
        >
        >
        > From: "Ragavendhiran Bhiman (rabhiman)" <rabhi...@cisco.com> Date:
        > Saturday, 18 July 2020 at 6:21 PM To: Tomcat Users List
        > <users@tomcat.apache.org> Subject: Memory leak in the PKCS11 how to
        > fix the problem
        >
        >
        >
        > From: "Ragavendhiran Bhiman (rabhiman)" <rabhi...@cisco.com> Date:
        > Saturday, 18 July 2020 at 6:20 PM To: Tomcat Users List
        > <users@tomcat.apache.org> Subject: Memory leak in the PKCS11 how to
        > fix the problem
        >
        > Hello All,
        >
        > I am seeing the memory leaks from tomcat apache in the following
        > SSL path using PKCS11.
        In what way are you using PKCS#11? Using a hardware crypto engine via
        OpenSSL? Are you using the APR connector or are you using OpenSSL via
        JSSE?
      <Raghav>  It is being used via the OpenSSL. I am not sure how to identify 
it is via the APR or hardware.

        > Attached the flame graph of memory possible memory leaks in this
        > area. Please check the attached flame graph of the memory trace.

        Attachments are stripped from messages to this list. Can you post the
        graph somewhere and include a link to a reply here?

    <Raghav>Attached again using the dropbox.

        > On simply a long run the memory keep on allocated in these back
        > traces only causing the memory leak, and the polling of the async
        > profiler for more than 6hours shows this clearly. Could you please
        >  help how to fix this problem? (open this svg graph in browser
        > only)> Note: If C_DestroyObject is not called because of finalizer
        >  accumulation is also tested by inducing the gc using the jmap
        > command still could see the memory never gone down after the Full
        > GC collection as well. Expecting your advice on the same.

        Are you suggesting that the solution will be to do something explicit
        in a class finalizer? Or are you suggesting that some additional
        native calls are required to clean-up.  

    <Raghav> I called the GC via jmap -histo:live but still the weak references 
not cleaned up the RSS never reduced. This means that some where the memory 
being held in native that’s what my suspect. Kindly suggest from your side as 
well.

    Thanks.


        - -chris
        -----BEGIN PGP SIGNATURE-----
        Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

        iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8V1jYACgkQHPApP6U8
        pFj3Rw/7B9SxlYNFPZoM6O4GWnwlxI2u+tLrsk2x/6TNOQuFnOIACctTKVe/WIwI
        /kF3O7kqwfDEewDhNa6KndUpQgWcvrtbON/QXEAK8SE7HaP0uZv0n5fB6FyRNPPo
        uJpnVu5WkJuvFcc9VmluMk9y+SdijhucQtIiK8Y+JEeHmp3Jjg3b45TeJYupDG3K
        iAuKqjgWHdRwpVgUNIKxj27PJJBs+qG8yfg7qkVvHrJHzNvZv5rGImcjtwPO6ktQ
        U7yWIcJLldF4pkOAWGSiqaCbZsFUCVRK8euejAj5kThZRELKtrJq+QOCy+pIiYHe
        rvJpJyG44VLYMqYDMPkDrHVrSJIj88zSJNdfBWXvnC2Ol7dJRTfpau19Js/kYwls
        53cELUg7XNOLpH14KnAKk2XMh25xjuZTHLtj2G3p61Frb48+81Ns6X8Hh/oDt/n+
        vGUpwU1Crf2HuXg1YiF4L3aw6UnnS3vH/BeeZpj6z8qwFdw9O7ylAcXOndhAiyN0
        SxQYmJIXkL8+WXBSTWt7dWZBdYiml/Zl2lkDhRGh+ftCCYZ8UgK5d2+b2HHVQiot
        nEs/dAu8rESBkFe0zXB9fgSeviLNwBDkAvenFJ/kZMstT5tzFZiLZW4EKpB8OWTx
        fbOGK5KQZB37Cbv+Eq64axWEK3vQHYROfeeAzEz3NgmYE2w74Rg=
        =yShM
        -----END PGP SIGNATURE-----

        ---------------------------------------------------------------------
        To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
        For additional commands, e-mail: users-h...@tomcat.apache.org


    
?B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB�?�?[��X��ܚX�K??K[XZ[?�?\�\��][��X��ܚX�P??�X�]?�\?X�?K�ܙ�B��܈?Y??]?[ۘ[??��[X[�?�??K[XZ[?�?\�\��Z?[????�X�]?�\?X�?K�ܙ�B�

Reply via email to