jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
146 stars 11 forks source link

actix web too many incoming messages error #114

Open naturallymitchell opened 5 years ago

naturallymitchell commented 5 years ago

thread 'arbiter:958ce9ab-d45c-4a5f-992b-f000d803e32e:actor' panicked at 'Use Self::Context::notify() instead of direct use of address', /home/mitchell/.cargo/registry/src/github.com-1ecc6299db9ec823/actix-0.7.5/src/mailbox.rs:103:17

this doesn't happen with 0.4.x and I think 0.5.x, but it definitely happens in 0.6.x wrk -t12 -c400 -d30s http://localhost:3000

dariusc93 commented 5 years ago

I tested it with both lighttouch and the simple-web-server and didnt get that error at all. On the simple web server, it was error free but on lighttouch the only error I got was

lighttouch-base/content/read_document.lua:10: Document 56d2cd3e-5357-455d-9cd4-94aa0191db8e not found in index
stack traceback:
    [C]: in function 'error'
    lighttouch-base/content/read_document.lua:10: in function 'content.init.read_document'
    [string "packages/homepage-package/actions/send_homepa..."]:9: in function 'packages.homepage-package.actions.send_homepage.action'
    lighttouch-base/loaders/actions.lua:90: in field 'callable'
    lighttouch-base/third-party/Luvent.lua:315: in upvalue 'invokeAction'
    lighttouch-base/third-party/Luvent.lua:338: in local 'call'
    lighttouch-base/third-party/Luvent.lua:353: in function 'third-party.Luvent.trigger'
    [string "packages/homepage-package/rules/homepage_requ..."]:23: in function 'packages.homepage-package.rules.homepage_requested.rule'
    lighttouch-base/init.lua:96: in field 'handler'
    [string "handle"]:10: in function <[string "handle"]:7>
    [C]: in function 'xpcall'
    [string "handle"]:7: in main chunk

Could you provide more clarification on what youre doing to get this error?

naturallymitchell commented 5 years ago

I think this'll get fixed by https://github.com/foundpatterns/lighttouch-base/issues/96 and #74

dariusc93 commented 5 years ago

Is this still an issue?

naturallymitchell commented 5 years ago

don't think so

I got like much >500 req/s using lighttouch-hello-world, using wrk -t4 -c11 -d11s http://localhost:3000

idk what happened, but I think things are somehow working significantly better