[MapServer-users] IIS - FastCGI - POST requests crashing mapserv
Benedek Petrovicz
benedek.petrovicz at gmail.com
Fri Oct 4 03:42:21 PDT 2024
Hi!
I have an environment where I run MapServer as a FastCGI application in IIS.
When a single mapserv instance (process) gets more than two concurrent POST
requests, the mapserv executable crashes.
IIS returns a default HTTP 500 error.
The exact error is: 233 - ERROR_PIPE_NOT_CONNECTED (No process is on the
other end of the pipe.)
Adding debugging to the map files didn't show me any valuable details.
Seems to be crashing while still trying to write into the debug logs.
There were half complete lines in there.
No logs in the Event Viewer.
No valuable logs in IIS.
I tried process monitoring, but I couldn't find anything useful there.
To reproduce it, in the FastCGI settings just limit the max number of
instances to 1 and flood it with a couple dozen concurrent requests.
You can use any tool. K6, Bombardier, PS script and .NET code each work for
that.
I attached a K6 script which I was using for it.
Required settings:
- You need to send POST requests
- The content type needs to be application/x-www-form-urlencoded (that's
the only POST content type that works with MapServer as far as I know)
- You don't even need a mapfile to reproduce the issue. You'll get the
same result if you provide one.
If you set the max requests per instance down to 2, it won't crash.
Also, I couldn't crash it with GET requests.
Anyone have any idea about why this is happening?
Should I open a github issue for it?
Thanks
Benedek Petrovicz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20241004/57cce6c8/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: k6-script.js.rename
Type: application/octet-stream
Size: 471 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20241004/57cce6c8/attachment.obj>
More information about the MapServer-users
mailing list