Skip to content
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

Fix the memory leak of jvm and jwsgi plugins #97

Merged
merged 5 commits into from
Dec 24, 2012
Merged

Fix the memory leak of jvm and jwsgi plugins #97

merged 5 commits into from
Dec 24, 2012

Conversation

mountain
Copy link
Contributor

Hi, folks,

This is my fix for the memory leak of jvm and jwsgi plugins by using the ways:

  • all jobjects returned by jvm should be a local ref
  • use push/pop to manage local frame
  • release string after using them

I had tested this code on Ubuntu 12.04 and Oracle JDK 7 with uwsgi head.

I use ab under 100 concurrent level to check the memory leak, after half an hour, the memory usage are stable.

Hope this fix is helpful.

unbit added a commit that referenced this pull request Dec 24, 2012
Fix the memory leak of jvm and jwsgi plugins
@unbit unbit merged commit c02a936 into unbit:master Dec 24, 2012
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