-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
ThreadLocal usage in JsonFactory may cause memory leaks #189
Comments
Right, One possibility I could consider is adding a |
Actually, even if class eviction is delayed a bit, how big of a problem should this be? |
Added |
Hi , i found my java server had frequent full gc these days .
IMHO , those json file are read only in my server, so singleton instance of each is fit in my case . |
@JasonHuangHuster for questions please use mailing lists; this is a closed issue. As to memory usage, But if you think it could help, try disabling |
JsonFactory assign BufferRecycler to thread local but does not remove it. Very often jackson-core is loaded by web application classloader so we have situation where this classloader is referenced from thread object. As a result, after undeploying web app, classes wouldn't be unloaded (or wil be unloaded after some time because of the SoftReference).
The text was updated successfully, but these errors were encountered: