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

Memory Leak in 0.4.2 #25

Closed
twispt opened this issue Sep 11, 2019 · 4 comments
Closed

Memory Leak in 0.4.2 #25

twispt opened this issue Sep 11, 2019 · 4 comments

Comments

@twispt
Copy link

twispt commented Sep 11, 2019

In our QA environment, over the course of two hours the proxy process rose to over 2GB of memory consumed before crashing.

0.4.0 does not seem to exhibit the issue. 0.4.1 does not work with my application, so I'm not able to confirm that the leak was introduced there or not.

Steps to reproduce:

  1. Produce messages on a loop through amqproxy v0.4.2 using the produce.php file in the attached tar.
    while : ; do php producer.php proxy ; done
  2. View the process in top, noting that the amount of memory consumed always increases over time, and memory is never released.

I performed the above steps simultaneously to both 0.4.0 and 0.4.2 for 30 minutes or so, resulting in the below screenshot of top, note the VIRT column.
image

This screenshot is a consumer host that has been running the proxy for about 2 hours.
image

bernard_test.tar.gz

@carlhoerberg
Copy link
Member

Thanks! Will look into it later today

@carlhoerberg
Copy link
Member

Please try 0.4.3

@carlhoerberg
Copy link
Member

you're welcome to open the issue again if you don't find 0.4.3 satisfactory.

@twispt
Copy link
Author

twispt commented Sep 14, 2019

Looks to be fixed! Thanks, Carl!

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

No branches or pull requests

2 participants