Please visit our sponsor, Batmud
Please help support TMC by visiting our sponsor

Member Discussions

terms


It's Not Just a Game |------[ http://www.retromud.org ]------| It's an ATTITUDE
6 Planets. 60 Races. 1,000 Skills & Spells. Infinite Possibilities.


[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. Is MONO a memory hog? Tue Oct 17, 2006 [12:47 AM]
sandog
Email not supplied
member since: Jan 20, 2002
Reply
Okay, just for the heck of it I decided to write a socket server in c# complete with protocol handlers for a lot of well known protocols. I noticed that it was taking 15MB just running the server, with no connections. Each connections would grow that by about 1k. I know there are a lot of linux enthusiasts out there and I was wonder if MONO is as much a memory hog as .Net and whether this is even a worthwhile venture.
I know what your thinking, "Why didn't I take the blue pill?". - Cypher, The Matrix


2. RE: Is MONO a memory hog? Tue Oct 17, 2006 [9:28 AM]
Kjartan
Email not supplied
member since: May 3, 2005
In Reply To
Reply
I use mono pretty extensively at work, and I have never had any memory problems with it. It is of course more of a memory hog than C, but it's not any worse than Java. (This is for large programs - it may have some significant overhead for small programs, e.g. under a few 10s of Mb, I'm not sure I would have noticed that).
Sloth MUD III: http://slothmud.org


3. RE: Is MONO a memory hog? Fri Nov 17, 2006 [8:02 PM]
Blobule
blobule@wocmud.org
member since: Nov 29, 2001
In Reply To
Reply
> I noticed that it was taking 15MB just running the
> server, with no connections. Each connections would grow
> that by about 1k

So if you had say 1000 users connected you'd be using a whole extra meg? This doesn't strike me as an issue. Mind you, my mud eats up 200 megs at boot-up. You know what they say, don't optimize too early, especially when memory prices are going to come down. FWIW it's running on a 64 bit machine with 4 gigs of memory... it's hardly a bite :) In case you're wondering WHY it eats so much memory, well all areas area pre-loaded into memory via XML descriptions, and the XML descriptions serve as templates for duplicate mobs/objects, and I just keep them in memory, since the kernal does a great job of swapping when and if it needs to.


It's Not Just a Game |------[ http://www.retromud.org ]------| It's an ATTITUDE
6 Planets. 60 Races. 1,000 Skills & Spells. Infinite Possibilities.