M
M
Mr_Sinister2014-12-06 23:23:49
linux
Mr_Sinister, 2014-12-06 23:23:49

Why do console applications run via mono consume a lot of RAM?

I am writing a server for a mobile game in C#. Application, naturally, console. When it came time to test on a virtual server, a jamb got out. Ran through mono. It turned out that the application consumes 5+ times more RAM than on Windows. By the way, the VDS is running Ubuntu 14.04.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eddy_Em, 2014-12-07
@Eddy_Em

Logically. There is no need to shove mastday nasty things into Linux.

T
tsul, 2014-12-16
@tsul

It would be nice to have details of the type of the .NET version, Mono, and what type of memory you are measuring / comparing.
I just checked on my UDP receiver (Windows7 x64 .NET 3.5 vs. Fedora Linux 12 x86-64 Mono 2.10.2)
- the same.

E
Evgeny, 2016-01-04
Batkovich @quickhabr

Because you are most likely loading a bunch of libs, and you probably do large inserts into the database without flush. links are cyclic. debug and debug again

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question