Closed
Description
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:
- Resetting the environment clears the internal objects (monitoring data, etc.), but does not deallocate the memory.
rm
ing the environment seems not to finalise the internal objects.