New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out of memory #11
Comments
@treeform Do you think this could be a Mem leak? |
I have managed to get a stack trace DEBUG GET /ws
Traceback (most recent call last)
/home/sokil/Desktop/Lab/nim_spa_server/src/server.nim(11) server
/home/sokil/.nimble/pkgs/jester-0.4.3/jester.nim(482) serve
/home/sokil/.nimble/pkgs/httpbeast-0.2.2/httpbeast.nim(423) run
/home/sokil/.nimble/pkgs/httpbeast-0.2.2/httpbeast.nim(287) eventLoop
/home/sokil/.nimble/pkgs/httpbeast-0.2.2/httpbeast.nim(219) processEvents
/home/sokil/.nimble/pkgs/jester-0.4.3/jester.nim(485) :anonymous
/home/sokil/.nimble/pkgs/jester-0.4.3/jester.nim(386) handleRequest
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(313) dispatch
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(34) dispatchNimAsyncContinue
/home/sokil/.nimble/pkgs/jester-0.4.3/jester.nim(285) dispatchIter
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(313) match
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(34) matchNimAsyncContinue
/home/sokil/Desktop/Lab/nim_spa_server/src/server.nim(18) matchIter
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(313) newWebSocket
/home/sokil/.choosenim/toolchains/nim-#devel/lib/pure/asyncmacro.nim(34) newWebSocketNimAsyncContinue
/home/sokil/.nimble/pkgs/ws-0.3.3/ws/jester_extra.nim(8) newWebSocketIter
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(111) genericAssign
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(100) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(24) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(20) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(100) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(24) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(20) genericAssignAux
/home/sokil/.choosenim/toolchains/nim-#devel/lib/system/assign.nim(51) genericAssignAux
SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
Same with me. Do you have a workaround on this? |
The issue is coming from https://github.com/treeform/ws/blob/master/src/ws/jester_extra.nim#L8 |
Ok, that's mean something wrong when casting jester.Request to Future[Websocket] ? |
Hi @s0kil I've got work around for this issue. You should compile program with -d:useStdLib e.g. The problem is when using linux jester will run using httpBeast but ws fail to detect it. it's help fix the problem but when using using asynchttpserver will slower than using httpbeast. In my simple benchmark request/second drop from 80k to 50k |
@me7 Huh, I thought Jester uses stdlib server by default, I guess not. |
Server Crashes with message:
Server
Client
The text was updated successfully, but these errors were encountered: