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? #26

Closed
brugalada opened this issue Jun 29, 2022 · 1 comment
Closed

Memory leak? #26

brugalada opened this issue Jun 29, 2022 · 1 comment

Comments

@brugalada
Copy link

Hi!

I have been using the ActionMapper method heavily and I noticed that, whenever I use it, the memory pressure only increases (and very fast). Even when it is finished, or even if I delete the ActionMapper object and create it again when I move from one set of actions to the next set in the 3D grid I am using, the allocated memory does not go down.

I am wondering if I am doing something wrong or not but a simple call like

%%timeit -n 1000
am = agama.ActionMapper(pot, np.array([240.00000066666666, 1e-01, 360.0]))

made python consume 1Gb of RAM in seconds, which I cannot get back until I restart my Jupyter kernel. Could it be this the issue? That I work with Jupyter notebooks?

Thank you in advance!

@eugvas
Copy link
Contributor

eugvas commented Jul 24, 2022

yes, there was a memory leak; fixed in the latest commit.

@eugvas eugvas closed this as completed Jul 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants