mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-01 19:06:43 +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)
|
|
}
|