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

Comments

Projects
None yet
1 participant
@Enchufa2
Member

Enchufa2 commented May 11, 2017

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

This comment has been minimized.

Member

Enchufa2 commented May 12, 2017

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

@Enchufa2 Enchufa2 closed this in 25d012d May 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment