mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 04:43:17 +00:00
9 lines
130 B
Go
9 lines
130 B
Go
|
package libbox
|
||
|
|
||
|
import "runtime/debug"
|
||
|
|
||
|
func SetMemoryLimit() {
|
||
|
debug.SetGCPercent(10)
|
||
|
debug.SetMemoryLimit(30 * 1024 * 1024)
|
||
|
}
|