Skip to content

Memory management issues #98

Closed
Closed
@Enchufa2

Description

@Enchufa2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions