zy-kkk opened a new pull request, #39833:
URL: https://github.com/apache/doris/pull/39833

    pick(#39582)
   
   This PR addresses a memory leak issue caused by FastList objects in HikariCP 
being retained by ThreadLocal variables, which are not easily garbage collected 
in long-running JNI threads. To mitigate this, a system property 
com.zaxxer.hikari.useWeakReferences is set to true, ensuring that WeakReference 
is used for ThreadLocal objects, allowing the garbage collector to reclaim 
memory more effectively. Even though setting this will affect some performance, 
solving resource leaks is relatively more important
   Performance difference before and after setting
   Before setting:
   10 concurrency 0.02-0.05
   100 concurrency 0.18-0.4
   After setting:
   10 concurrency 0.02-0.07
   100 concurrency 0.18-0.7
   
   ## Proposed changes
   
   Issue Number: close #xxx
   
   <!--Describe your changes.-->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to