MONO 4.6.2 High CPU Usage on Server

前端 未结 2 863
南旧
南旧 2021-01-13 04:26

I have updated my:

  • Ubuntu server to 16.04.1 LTS and
  • MONO to v4.6.2

...from offici

相关标签:
2条回答
  • 2021-01-13 04:35

    After trying all options, it seems MONO just doesn't work well with Apache2 with mod_mono. The only solution I found is to switch Apache2 from prefork to worker mode, where the MONO server needs to be started manually and Apache2 simply forwards the requests to it -- and thus Apache2 doesn't directly touch MONO at all. There is very little documentation on how to do this, but since NGINX works in that mode, you can find instructions on how to set it up for NGINX and translate the app config file for Apache2.

    These are good places to start

    http://www.mono-project.com/docs/web/fastcgi/nginx/

    http://epmjunkie.com/mono-fastcgi-startup-script/

    0 讨论(0)
  • 2021-01-13 04:47

    I have played around with various MONO versions, and typing "service apache2 reload" to reproduce the high CPU usage problem.

    In MONO 4.8, it seems to happen to happen a bit less often but the problem is still there.

    In MONO 4.2.3.4, the problem is also there.

    In MONO 4.2.1 that comes by default on Ubuntu, this problem doesn't happen.

    As for .NET Core, some have tried it and highly recommended me to avoid it until it becomes more stable.

    So for now, the only solution is to stick to MONO 4.2.1

    This also confirms that this is related to MONO and not to my code or the server configuration.

    0 讨论(0)
提交回复
热议问题