My server is not crashing. My group chat app is running while I execute the Gatling script and it indicates the expected 1 additional user in the chat room which means the connection from Gatling is established.
What is the diagnostic basis for my server not responding as expected?
The very first response from my Node.js app running in a DigitalOcean droplet is:
res.writeHead(200, {
'Content-Type': 'text/event-stream',
'Connection': 'keep-alive',
'Cache-Control': 'no-cache'
});
My app also begins with:
const require('cors')
When loading the url directly in the Chrome browser:
I see the stream of messages and other event data, and in the Network tab the 200 response.
The Gatling script at first was ending properly and I got about a dozen html reports out of it, but at some point for unknown reason it decided to keep running indefinitely and not closing.
I previously had it set to atOnceUsers(500) which surprisingly overloaded my server (about 150 failed connections and a few 500 errors). I'm not sure if that was the point when the scenario stopped closing properly, but I changed it to atOnceUsers(1) for troubleshooting purposes. Still no joy.
I restarted my Node.js app but the Gatling scenario continues indefinitely.
The only other change before this started happening was that I upgraded from Java 8 to 11.
Any other ideas?