oracle / oci-java-sdk

Oracle Cloud Infrastructure SDK for Java
https://cloud.oracle.com/cloud-infrastructure
Other
192 stars 152 forks source link

Max CPU utilisation and application becomes irresponsive when we upgraded to 3.35.0 #584

Closed gmhoolageri closed 2 months ago

gmhoolageri commented 3 months ago

Our application was running fine until we upgraded to 3.35.0 of OCI SDK. The application started hitting high CPU utilisation in 5 days and application became irresponsive. Upon inspecting the thread dump we came to know that there are 9000+ threads are there active in our application which is too high. We looked at thread types and found at least 8000+ threads were of type idle-connection-monitor-thread. We immediately looked into SDK documentation and came to know that 3.31.x has the idle connection monitoring feature enabled by default and we can turn it off.

It is always a good design to release a feature which is turned off by default than turned off. My recommendation is to turn off the feature by default in upcoming java sdk releases.

rkumarpa commented 2 months ago

The issue has been resolved in 3.39.0 . Please see this ticket for more info - https://github.com/oracle/oci-java-sdk/issues/587

rkumarpa commented 2 months ago

We are closing this ticket. Please reopen it if you still see the issue with the versions 3.39.0 or later.