Skip to content
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 #399

Open
thedoctor2001 opened this issue Jan 15, 2025 · 1 comment
Open

Memory leak #399

thedoctor2001 opened this issue Jan 15, 2025 · 1 comment
Labels
⭕️ More info needed Data or details are missing to narrow the problem

Comments

@thedoctor2001
Copy link

Describe the bug
GAMA takes more and more RAM after running for a period of time

To Reproduce
Steps to reproduce the behavior:

  1. Extract the HongBangDevelopment - Memory Leak.zip and import the model into GAMA.
  2. Click on HongBangDevelopment.gaml
  3. Run the simulation hong_bang_development until it ends (cycle 500) and then close the experiment.
  4. Open Activity Monitor on Mac, monitor the memory usage and then do the third step again and again.

Expected behavior
The memory usage of GAMA keeps increasing in Activity Monitor, even when clicking on the "bin icon" to free up memory.

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.1.1
  • PC Model: MacBook Pro M1 Max
  • GAMA version: 2024.10.0

HongBangDevelopment - Memory Leak.zip

@lesquoyb lesquoyb added the ⭕️ More info needed Data or details are missing to narrow the problem label Jan 16, 2025
@lesquoyb
Copy link
Contributor

I investigated a bit and for now idk if it's a real memory leak or not.
Indeed when launching again and again the simulation I see in my task monitor in windows that the memory used increases, though after the first simulation it's only a few MB or 10s of MB more, which makes it difficult for me to know if it's a real leak or just some "useless" caching happening in the JVM and that will be released some time later.

Furthermore, there's a discrepancy between the memory used as shown in GAMA and the one shown by Windows, for example, right now GAMA is telling me that it uses 136MB out of 4G available, but windows tells me GAMA uses 2051MB. When I call the garbage collector from GAMA and go from 800MB used to around 100MB, the use shown by windows barely drops by 100MB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭕️ More info needed Data or details are missing to narrow the problem
Projects
None yet
Development

No branches or pull requests

2 participants