-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[karate 1.4.1] OOM when load testing with mock for several minutes #2530
Comments
@brown-kaew I'm considering this low priority because it never has been reported by anyone else. also 1.5.0.RC3 is what we consider the latest available version. thanks a lot for the research, it would be great if you can also suggest a fix and perhaps contribute a PR |
The StringBuilder object inside StringLogAppender has never be called collect() to de-refer all the string objects. it leads memory leak on long running mock server
@ptrthomas It is the first PR I have created, if there is anything wrong please kindly advise. |
The StringBuilder object inside StringLogAppender has never be called collect() to de-refer all the string objects. it leads memory leak on long running mock server
…eak-for-mock #2530 Fix StringLogAppender leaks for MockHandler
@brown-kaew much appreciated ! the PR and fix looks good. thanks for your work on this. |
@ptrthomas Thank you. |
The StringBuilder object inside StringLogAppender has never be called collect() to de-refer all the string objects. it leads memory leak on long running mock server
The StringBuilder object inside StringLogAppender has never be called collect() to de-refer all the string objects. it leads memory leak on long running mock server
1.5.0 released |
Hello, according to : #2448
I have tried reproduce OOM on 1.4.1 and it still occurs
Versions:
java 11
karate 1.4.1
Repo to reproduce: https://github.com/brown-kaew/try-karate-mock/tree/test-leak-1.4.1
Steps:
Start mock ./local_startup.sh
Start load test ./load_test.sh
VisualVm: https://github.com/brown-kaew/try-karate-mock/blob/test-leak-1.4.1/logs/1.4.1/Screenshot%202567-03-11%20at%2014.47.24.png
OOM log: https://github.com/brown-kaew/try-karate-mock/blob/test-leak-1.4.1/logs/1.4.1/nohup.log
The text was updated successfully, but these errors were encountered: