The log input to nosql database can ensure the log output speed and unified management log, log4mongo-net project http://log42.16.org/display/pub/log4###for#.netuse log4netto Save the log to mongodb. Generally, it can be used to replace log4net + MS ssql logging. Compared with SQL Server, it can save 40% of storage space. In terms of memory usage, MongoDB is designed with no restrictions, there is one way to limit Windows Server 2008 and 2008 R2 through the wsrm of the Service Manager. The windows system Resource Manager enables the Administrator to allocate CPU and storage resources to the application, manage services and processes. Managing resources in this way can improve system performance and reduce the possibility of interfaces between applications, services, or processes and other parts of the system. It also improves a more consistent and predictable experience for applications running on computers and users of services. Log4mongo-net can also support mono, tested by mono 2.8.
Windows system resource manager lets you create policies for processor and memory usage to control how applications divvy up limited resources.