Simple MVC4 / Mono 3.2.1 application is running in Debian with Nginx and mono-fastcgi-4 server.

In browser F5 key is hold down for 30 seconds.
After that there is long delay, browser shows page load icon.
After delay message

504 Gateway Time-out
nginx/0.7.67

appears

and top command (output below) shows that mono fastcgi server takes 200% cpu forever (2 cores). Only way to stop this is to kill mono fastcgi server manually and manually to restart it

How to make mono fastcgi to return pages immediately and not use so much cpu ?

If same application is hosted with Apache and mod_mono , holding and releasing F5 key in browser returns page immediately and cpu usage goes to 0 immediately after F5 is released in browser.



top - 00:40:38 up  1:43,  3 users,  load average: 16.49, 15.92, 15.35
Tasks:  59 total,   1 running,  58 sleeping,   0 stopped,   0 zombie
Cpu(s): 34.5%us, 65.5%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem:   2097152k total,   744828k used,  1352324k free,        0k buffers
Swap:        0k total,        0k used,        0k free,   120120k cached

 PID  VIRT  RES  SHR %CPU %MEM    TIME+  COMMAND
4366 500m 121m 21m 198 5.9 6:24.45 /opt/mono-3.2/bin/mono /opt/mono-3.2/lib/mono/4.5/fastcgi- ....

_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

Reply via email to