-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change Activity ID behavior #2136
Conversation
- Activity ID stays the same for the life of the process (not per thread) - Always send Activity ID to the server in PRELOGIN - Increment the sequence for each new connection (not each command)
/azp run CI-mssql-jdbc |
No pipelines are associated with this pull request. |
Hi quick question about this, the changes in #2254 seem to reverse the changes made in #465 (see also #314) that fixed a ClassLoader leak that was a result of the ActivityCorrelator ThreadLocal never being removed from the thread. Now the ThreadLocal seems to have been added back: final class ActivityCorrelator {
+ private static ThreadLocal<ActivityId> t_ActivityId = new ThreadLocal<ActivityId>() {
+ @Override
+ protected ActivityId initialValue() {
+ return new ActivityId(); Since this ThreadLocal is now being created again, I am seeing a ClassLoader leak when unloading a webapp using the
The same does not happen with the Do you or anyone familiar with this issue have any ideas on how I could solve this? Unfortunately we frequently need to reload webapps and leaking a few hundred mb of memory due to the ClassLoader leak is not really an option, so we are currently having to stick to the older driver version. Any help would be much appreciated, thanks! |
thanks for reporting this we will work on addressing this issue. |
@lilgreenbird Thanks for the quick response and fix! |
Also send a unique client ID (netAddress) that will persist for the duration of the process.