Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorAndReduceIdleOSThreads ¶
func MonitorAndReduceIdleOSThreads(timeoutSec, rateLimit int)
The function monitors and reduces the number of idle OS threads in order to stay within a maximum limitation. This is a temporary solution to reduce the number of M idle OS threads. Open issues: - https://github.com/golang/go/issues/14592 - https://github.com/golang/go/issues/20395 possible pitfall: - https://github.com/golang/go/issues/14592#issuecomment-693186098
func MonitorWith ¶
func MonitorWith(intervalSec int)
The function check and initializes environment variables with default values and then monitors and reduces idle OS threads based on those variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.