Optionallimits: ResourceLimitsCheck if operation is safe to proceed
OptionalestimatedMemory: numberCheck if worker can be restarted after crash
Clear worker tracking data (called when worker is terminated)
Get resource limits
Get total worker memory usage
Get current resource usage
Get per-worker memory statistics
Record worker crash for restart strategy
Request garbage collection hint
Check if worker should be recycled due to memory pressure
Check if throttling is needed
Track worker memory usage
Update queue size
Update worker counts
Resource manager that monitors memory, CPU and worker pool usage to prevent system overload, with automatic throttling when resources are constrained.