Closed ralfkahlert closed 5 years ago
Hello!
Thanks for information. I will deal with this problem in 2019.
Hello Andrey!
Thanks a lot. I wish you a healthy start into the new year!
Ralf Kahlert
Thanks!
Hello, Ralf!
Try to upgrade to version 3.0.1.
Hi! Looks good, i'll run some integration tests tomorrow watching mem usage.
Thanks Ralf
Hello, Ralf!
What results were obtained during the tests? By the way, in version 3.0.2 was made additional optimizations.
Hi,
really looks good. Stable memory utilization so far … thx!
I’ll update to 3.0.2 next week.
Ralf
Ralf Kahlert Senior Architect T +49 (231) 9742 - 973 M +49 (163) 3442270 KPS digital GmbH, Emil-Figge-Strasse 76-80, 44227 Dortmund, Germany
[www.kps.com]https://www.kps.com Pflichtangaben/Mandatory Disclosurehttps://kps.com/de/imprint.html [Travel expense management is time consuming, inconvenient,costly ... ? No longer: KPS and Qvartz implement SAP Concur]https://www.kps.com/en/news/qvartz-implements-sap-concur-expense-for-greater-transparency-and-cost-efficiency.html?utm_source=signature&utm_medium=banner&utm_campaign=jan19_qvartz_en
Von: Andrey Taritsyn notifications@github.com Antworten an: Taritsyn/JavaScriptEngineSwitcher reply@reply.github.com Datum: Freitag, 25. Januar 2019 um 09:39 An: Taritsyn/JavaScriptEngineSwitcher JavaScriptEngineSwitcher@noreply.github.com Cc: "Kahlert, Ralf" Ralf.Kahlert@kps.com, Author author@noreply.github.com Betreff: Re: [Taritsyn/JavaScriptEngineSwitcher] Memory leak using EmbedHostObject (#65)
Hello, Ralf!
What results were obtained during the tests? By the way, in version 3.0.2https://github.com/Taritsyn/JavaScriptEngineSwitcher/releases/tag/v3.0.2 was made additional optimizations.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Taritsyn/JavaScriptEngineSwitcher/issues/65#issuecomment-457497224, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ae1DtosMvAO8P_rF6kmxo1ymq1DrgJ8iks5vGsLGgaJpZM4ZkcT7.
OK, then I close this issue.
Accessing properties of registered host objects leak memory
The following examples registers a tiny host object with one property and one basic method within. Using a docker runtime with 128MB, memory will grow quickly and process will die after about 100000 calls reaching its memory limit. If the method doSomething is moved up to the class Native, everything works fine and the process stays at stable 27MB memory usage.
In this simple example we can work around the leak pre-evaluating the property.