On Monday, February 8, 2021 at 6:00:29 PM UTC+2 [email protected] wrote: > Hi, > > On Wednesday, February 3, 2021 at 11:47:13 AM UTC-5 Matthew Kenigsberg > wrote: > >> >> Hi, >> >> I'm trying to benchmark nginx with weighttp, but it appears to crash >> after too many requests are sent. As soon as requests start failing, it >> seems all following requests will fail. Any ideas why? >> > Not really but I think I may have seen similar behavior with nginx. > I have recently tried a very similar scenario: nginx on OSv, stressed with vegeta on the host. While I didn't face the same issue, there was a problem when using NFS for the underlying files (the benchmark target was the fs, so I was using some static files, not the default nginx response page). I didn't get to the root of it at the time, but is seemed like a deadlock, in OSv.
Out of curiosity: - Have you tried to e.g. use lighttpd instead of nginx? - What file system are you running (might be irrelevant)? - Does OSv seem to "hang"? Is it accepting connections or not? > >> > >> $ curl ip >> <!DOCTYPE html> >> <html> >> <head> >> <title>Welcome to nginx!</title> >> ... >> $ weighttp -t 1 -n 1000 -c 1 http://ip >> ... >> requests: 1000 total, 1000 started, 1000 done, 1000 succeeded, 0 failed, >> 0 errored >> ... >> >> $ weighttp -t 1 -n 1000 -c 1 http://ip >> ... >> requests: 1000 total, 1000 started, 1000 done, 22 succeeded, 978 failed, >> 0 errored >> ... >> >> $ curl 129.114.109.194 >> curl: (52) Empty reply from server >> $ sleep 60 >> $ curl 129.114.109.194 >> curl: (52) Empty reply from server >> >> Not sure if this is related to either of: >> https://groups.google.com/u/1/g/osv-dev/c/jclM9NhO7eg/m/BXV20hJUAQAJ >> https://github.com/cloudius-systems/osv/issues/889 >> > Maybe. > It would be best if you could connect with gdb to OSv when it > crashes/hangs and send us a thread list and ideally stack traces of > interesting threads (most likely those part of TCP stack). I suggest you > build and run ROFS image as it will have fewer threads. See > https://github.com/cloudius-systems/osv/wiki/Debugging-OSv. > +1 The ability to debug with GDB has proved invaluable! > > Does this crash happen with single cpu or with many? > > >> >> >> Thanks, >> Matthew >> > -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/c77e4960-7c9f-4ddf-83e7-e5390d4817d3n%40googlegroups.com.
