-
Notifications
You must be signed in to change notification settings - Fork 269
Monitor resource usage and warn when remaining resources are low #1358
Copy link
Copy link
Open
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design
Milestone
Description
Shadow can use a lot of system resources like file descriptors, memory maps, ram, etc. We should monitor these resources while Shadow is running and log a warning message if we appear to be near the system's limits.
This should not be expensive since we only need to monitor the shadow process and not the plugins, so should only take a few syscalls to get the information we need.
It's undecided where the best place is to check the resource usage, but one option is in _manager_heartbeat() which logs every X simulated seconds.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component: MainComposing the core Shadow executableComposing the core Shadow executableType: EnhancementNew functionality or improved designNew functionality or improved design