workerd crashed in load test #1328
-
I am using ab and wrk command to do load test on workerd and it crashed, I copied the config file of the hello world sample from this repo. The output shows:
The wrk command:
The OS is Ubuntu 22.04, uname -a shows:
It seems that the exception on sockets is not handled correctly, does anyone has ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is because workerd hit the limit on total open file descriptors (which includes network connections). This is a common system configuration issue that applies to all servers -- it's not specific to |
Beta Was this translation helpful? Give feedback.
This is because workerd hit the limit on total open file descriptors (which includes network connections). This is a common system configuration issue that applies to all servers -- it's not specific to
workerd
. If you're runningworkerd
in a shell, you can usually use the shell'sulimit
command to increase the limit, although you may need to be root to increase the limit beyond a certain point. If you're running workerd under some sort of server runner like systemd, you'll need to configure it to provide a higher ulimit.