make gomemlimits 500mb
This commit is contained in:
parent
bcaa5d434d
commit
7983598b17
@ -26,7 +26,7 @@ var profileCounter = 0
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
defer profile.Start(profile.MemProfile).Stop()
|
defer profile.Start(profile.MemProfile).Stop()
|
||||||
debug.SetMemoryLimit(1 * 1024 * 1024 * 1024)
|
debug.SetMemoryLimit(0.5 * 1024 * 1024 * 1024)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user