[GH-ISSUE #1991] Looks like a memory leak #587

Closed
opened 2026-03-07 20:51:40 +03:00 by kerem · 0 comments
Owner

Originally created by @chrisleell on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/1991

Describe the bug
After the system is up and running and in use for some time. I found the memory usage is high. Take the heap dump and analyze, One instance of "java.util.HashMap" occupies 80% which is referenced by "io.cloudbeaver.service.session.WebSessionManager".
/
To Reproduce
Steps to reproduce the behavior:
/

  1. Repeat the following steps several times: 1. Clear cookies. 2. Login. 3. Logout. Or refresh the browser several times without logging in.
  2. Memory usage increases.
  3. The log contains only the information about creating web sessions.
  4. Take the heap dump. There are many objects (io.cloudbeaver.model.session.WebSession) that are not cleared.

Screenshots
image
image
image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 23.1.0

Additional context
Add any other context about the problem here, e.g. error log.

Originally created by @chrisleell on GitHub (Sep 8, 2023). Original GitHub issue: https://github.com/dbeaver/cloudbeaver/issues/1991 **Describe the bug** After the system is up and running and in use for some time. I found the memory usage is high. Take the heap dump and analyze, One instance of "java.util.HashMap" occupies 80% which is referenced by "io.cloudbeaver.service.session.WebSessionManager". / **To Reproduce** Steps to reproduce the behavior: / 1. Repeat the following steps several times: 1. Clear cookies. 2. Login. 3. Logout. Or refresh the browser several times without logging in. 2. Memory usage increases. 3. The log contains only the information about creating web sessions. 4. Take the heap dump. There are many objects (io.cloudbeaver.model.session.WebSession) that are not cleared. **Screenshots** ![image](https://github.com/dbeaver/cloudbeaver/assets/37203635/220bf17c-0172-4009-aa66-d90dc38449ee) ![image](https://github.com/dbeaver/cloudbeaver/assets/37203635/94b726dc-14c8-4878-a944-2a4fd1c27bf6) ![image](https://github.com/dbeaver/cloudbeaver/assets/37203635/a6a117f8-d9e3-41cc-98a0-ff497c7682aa) **Desktop (please complete the following information):** - OS: Windows 11 - Browser Chrome - Version 23.1.0 **Additional context** Add any other context about the problem here, e.g. error log.
kerem 2026-03-07 20:51:40 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudbeaver#587
No description provided.