mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-29 03:51:31 +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)
|
|
}
|