wildfly-security / wildfly-openssl

Generic OpenSSL bindings for Java
Apache License 2.0
81 stars 72 forks source link

GC pause gradually increase on using wildfly openssl #112

Open onlynishant opened 2 years ago

onlynishant commented 2 years ago

Hi,

I noticed that the GC pause gradually keeps increasing when I use wildfly OpenSSL. I am using openssl openssl-1.1.1d

$] /usr/java/jdk-11.0.9+11/bin/java -version
openjdk version "11.0.9" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9+11)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.23.0, JRE 11 Linux amd64-64-Bit Compressed References 20201022_810 (JIT enabled, AOT enabled)
OpenJ9   - 0394ef754
OMR      - 582366ae5
JCL      - 3b09cfd7e9 based on jdk-11.0.9+11)

$] ls /usr/local/ssl/lib
engines-1.1  libcrypto.a  libcrypto.so  libcrypto.so.1.1  libssl.a  libssl.so  libssl.so.1.1  pkgconfig

$] grep -i openssl logs/supervisord.log
Nov 30, 2021 7:16:50 AM org.wildfly.openssl.SSL init
INFO: WFOPENSSL0002 OpenSSL Version OpenSSL 1.1.1d  10 Sep 2019

Java code:

org.wildfly.openssl.OpenSSLProvider.registerFirst();

JVM arg: -Dorg.wildfly.openssl.path=/usr/local/ssl/lib

Maven:

 <dependency>
      <groupId>org.wildfly.openssl</groupId>
      <artifactId>wildfly-openssl-java</artifactId>
      <version>2.1.4.Final</version>
    </dependency>
    <dependency>
      <groupId>org.wildfly.openssl</groupId>
      <artifactId>wildfly-openssl</artifactId>
      <version>2.1.4.Final</version>
    </dependency>

Without wildfly OpenSSL

Screenshot 2021-11-30 at 7 52 54 PM

With wildfly OpenSSL

Screenshot 2021-11-30 at 7 53 19 PM