on-internet
← Community

How to reduce default C++ memory consumption?

Stack Overflow ·

I have a server application written in C++. After startup, it uses about 480 KB of memory on x86 Linux (Ubuntu 8.04, GCC 4.2.4). I think 480 KB is an excessive amount of memory: the server isn't even doing anything yet, no clients have been connected to the server. (See also my comment below in which I explain why I think 480 KB is a lot of memory.) The only things the server does during initialization is spawning one or two threads, setting up a few sockets, and other simple things that aren't very memory-intensive. Note that I'm talking about real memory usage, not VM size. I measured it by

Comments

Sign in or sign up to comment and upvote.

No comments yet.