简体   繁体   English

在Linux上使用.NET / Mono来提供高容量的Web服务,这是一个好主意吗?

[英]Using .NET/Mono on Linux to serve a high volume web service, a good idea?

We have a web service that does a fairly high volume of traffic that helps you figure out what are your preferred contacts based on the e-mails you receive. 我们有一个网络服务,可以提供相当高的流量,帮助您根据收到的电子邮件找出您首选的联系人。

This service was initially implemented in C# /.NET in order to leverage some code we already have running on Windows hosts. 此服务最初在C#/.NET中实现,以便利用我们已经在Windows主机上运行的一些代码。 This service does not uses ASP.NET but it's a simple C# service using a base HTTP Listener from .NET. 此服务不使用ASP.NET,但它是使用.NET的基本HTTP侦听器的简单C#服务。

The service is performing OK, but once in a while MONO will totally blocks and stop responding to any requests. 该服务执行正常,但偶尔MONO将完全阻止并停止响应任何请求。 The performance is OK, but not great and it seams that we spend a huge amount of time figuring the difference between the MONO CLR and the Windows CLR. 性能还可以,但不是很好,我们花了很多时间来确定MONO CLR和Windows CLR之间的区别。 I must admit, I am coming from a Java background and it seems that the ecosystem on the server side is way larger on the Java side than the MONO ecosystem on Linux. 我必须承认,我来自Java背景,似乎服务器端的生态系统在Java方面比Linux上的MONO生态系统更大。

So for now, I am looking for examples and personal experiences around using Mono on Linux to server a high traffic web service. 所以现在,我正在寻找关于在Linux上使用Mono来为高流量Web服务提供服务的示例和个人经验。

不知道它是否有助于解决您的问题,但您可以尝试在带有新垃圾收集器的 mono 2.8上运行您的Web服务。

For high volume performance tuning, you often need to consider the following pieces altogether 对于高容量性能调整,您通常需要完全考虑以下部分

  • operating system settings (TCP/IP specific) 操作系统设置(特定于TCP / IP)
  • web server level settings Web服务器级别设置
  • framework level settings (Mono specific) 框架级别设置(特定于Mono)

Like @yojimbo87 described, using the latest Mono build can help burst the performance from framework level. 就像@ yojimbo87所描述的那样,使用最新的Mono构建可以帮助从框架级别突破性能。 But you also need to learn about the OS and the web server to see if there are other tuning approaches. 但您还需要了解操作系统和Web服务器,以了解是否有其他调整方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM