-
Notifications
You must be signed in to change notification settings - Fork 26
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 OxalisAlgorithmSuiteLoader #120
Comments
Thanks for the thorough bug report - I will look into it. A possible solution is probably to replace the hashmap with a cache. |
Forgot to mention that during tests, we saw increasingly higher response times. To me, it looks like the assertion data from "old" transactions is not being garbage collected. Edit: However, when inspecting the logs we see that the key is actually never matched. Meaning that caching id's to avoid duplicate registrations is unnecessary (at least in our use case). |
I have now made a hotfix-4.1.10 branch with a fix for this issue. I have also bumped CXF to 3.3.6 and WSS4J 2.2.5 in case they have fixed some problems related to the assertion data. Can you try it out, before I make a release? |
Strange that you always get a new bus. When I am testing, the same bus is reused. |
Hi, this issue was fixed internally some time ago. I don't know how to link issue and PR on github, but i created a pull request here: |
Pull request added in Release candidate : https://search.maven.org/search?q=g:network.oxalis%20AND%20a:oxalis-as4 . I am closing this ticket now |
Hi,
We pulled the newest commit to potentially upgrade our solution. (commit: cf55f82)
However, during stress testing the solution eventually crashed.
The test consists of sending a large amount of equal requests.
We also tried stopping the test before the solution crashed and observing the memory usage of the application over time. Expected behavior would be that the consumed memory of the application would drop after a period of inactivity, which we are not observing.
Based on the two tests, we believe that there is a memory leak in the objects contained in the OxalisAlgorithmSuiteLoader.BUS_MAP.
We took a heap dump of the application after 12 hours of inactivity, the results of this object is as follows:
Note that we could be wrong in our assumption of the memory leak.
In any case, the application does not seem to recover from large amounts of requests - meaning we cannot introduce the newest version to production.
The text was updated successfully, but these errors were encountered: