mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-25 18:11:28 +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)
|
|
}
|