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 management issues #98

Closed
Enchufa2 opened this issue May 11, 2017 · 1 comment
Closed

Memory management issues #98

Enchufa2 opened this issue May 11, 2017 · 1 comment
Labels

Comments

@Enchufa2
Copy link
Member

Minimal reprex. First, we generate a bunch of data:

library(simmer)

traj <- trajectory() %>%
  timeout(1)

env <- simmer() %>%
  add_generator("asdfasdfasdf", traj, function() rexp(100, 1)) %>%
  run(1e7)

We can see that the R session takes up now more than 1 GB. Two problems arise:

  1. Resetting the environment clears the internal objects (monitoring data, etc.), but does not deallocate the memory.
  2. rming the environment seems not to finalise the internal objects.
@Enchufa2
Copy link
Member Author

#99 fixes 1. Related to 2: tidyverse/magrittr#146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant