Skip to content

Conversation

@jxiaobin
Copy link

@jxiaobin jxiaobin commented Apr 7, 2014

reuse CLIENT field of com.woorea.openstack.connector.OpenStack in jersey2-connector module will cause OOM issue, I've encountered this in our environment.

This fix will create a new jersey cient every time, and close the client when invocation is done.

@jjojala
Copy link

jjojala commented Apr 7, 2014

I do not think you need this heavy means to eliminate the memory leak unless Jersey client leaks. According Jersey's documentation, re-using the same Client shouldn't be a problem. However, the re-registration of the logging filter for WebTarget in JaxRs20Request.request() will be eventually delegated to Client, causing memory leak. I made a pull request for the fix in #139. Fix have been verified with java7/Jersey2.7.

@jxiaobin jxiaobin closed this Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants