About Go "Memory Limit Exceeded" #166
Unanswered
RobinElysia
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Yes, you need a higher memory limit than 100MB. Go compiler need more memory especially on multi-core system since it starts thread for every core. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
request example:
{ "cmd": [{ "args": ["/usr/bin/go/bin/go", "run","main.go"], "env": [ "PATH=/usr/bin:/bin:/usr/bin/go/bin", "HOME=/tmp", "GOCACHE=/tmp/go-cache", "GOROOT=/usr/bin/go", "GO111MODULE=off", "GOOS=linux", "GOARCH=amd64" ], "files": [{ "content": "" }, { "name": "stdout", "max": 10240 }, { "name": "stderr", "max": 10240 }], "cpuLimit": 10000000000, "memoryLimit": 104857600, "procLimit": 50, "copyIn": { "main.go": { "content": "package main\nfunc main() {\nprintln(\"Hello, World!\")\n}\n" } }, "copyOut": ["stdout", "stderr"], "copyOutCached": ["main.go"] }] }respond:
[ { "status": "Memory Limit Exceeded", "exitStatus": 9, "time": 10109848000, "memory": 104878080, "runTime": 5706945215, "procPeak": 45, "files": { "stderr": "", "stdout": "" }, "fileIds": { "main.go": "CVBVV6M4" } } ]This happens whether the go language is compiled or run.
Do I need to modify the memory limit? Should I modify the Go compiler, the Go judge, or the container?
If you are able to answer, please add your contact information. I can provide paid technical consultation (WeChat: RobinElysia)
Beta Was this translation helpful? Give feedback.
All reactions