Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Vaadin abnormal memory consumption (memoryLeak?)

for a project I’m working on (Spring Boot 2.7.9 + Vaadin 14.9.7) I’m experiencing a strange heap memory usage.
Attached to this post you can find the first objects by top memory usage in my application.
I see there is a big usage from PendingJavaScriptInvocation and UIInternals$JavaScriptInvocation.
The application is accessed by 500 users but only 30-40 concurrently, and I’ve put some ClientCallable functions to accomplish ARIA accessibility (on row grid buttons) as per the tutorial that can be found here https://cookbook.vaadin.com/aria-label-to-components.

Could you please give some advise on what to put the eye on to understand a so big heap usage ?

Heap usage

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There was a memory leak in DataCommunicator producing too many of PendingJavaScriptInvocations: https://github.com/vaadin/flow/issues/14435 . That ticket is fixed in Vaadin 14.8.18, however you’re using Vaadin 14.9.7 and thus this might be something new. Could you please report the issue at https://github.com/vaadin/flow/issues ?

It could be important to check which component produced all of those pending invocations. You can perhaps try to place a breakpoint into the PendingJavaScriptInvocations constructor; the breakpoint won’t stop the JVM but would only log the caller. Alternatively, PendingJavaScriptInvocations.owner may reference the culprit component, you could try to discover that in the heap dump.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading