This is a discussion on need help with memory usage - Redhat ; Hi, I'm looking for a bit of help. I'm working with a FC4 virtual dedicated server with a hosting company, and looking into the benefits of upgrading it to a full dedicated server. The server is a fairly high traffic ...
Hi, I'm looking for a bit of help. I'm working with a FC4 virtual
dedicated server with a hosting company, and looking into the benefits
of upgrading it to a full dedicated server.
The server is a fairly high traffic web server (apache).
With it's current setup, the virtual server has 512meg of ram, but is
supposed to be burstable to 2gig.
The dedicated server we're looking at, is 2gig of ram.
So, what we need to figure out, is how much of a benifit it will be
(memory wise), if any, to move to the dedicated server.
We're having trouble however, calculating exactly the memory our web
server is using.
The total memory & whatnot provided by top, comes out like this:
Tasks: 63 total, 1 running, 61 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.4% us, 0.4% sy, 0.0% ni, 98.7% id, 0.5% wa, 0.0% hi,
Mem: 8145112k total, 8092312k used, 52800k free, 126904k
Swap: 12586916k total, 685484k used, 11901432k free, 1581928k
which is obviously the total for the whole box, including the other
virtual servers, making it hard to use.
Our http processes, through top, look like this:
29867 root 16 0 17740 3692 1280 S 0.0 0.0 0:00.00
29868 root 15 0 17740 3700 1288 S 0.0 0.0 0:00.00
29869 root 15 0 17740 3692 1280 S 0.0 0.0 0:00.00
29871 root 15 0 17740 3696 1280 S 0.0 0.0 0:00.00 httpd
and using 'ps aux', something like
501 9298 0.0 0.0 17740 3716 ? S 06:13 0:00 /usr/
501 9299 0.0 0.0 17740 3696 ? S 06:13 0:00 /usr/
501 9312 0.0 0.0 18280 5132 ? S 06:13 0:00 /usr/
501 9314 0.0 0.0 17740 3716 ? S 06:13 0:00 /usr/
501 9317 0.0 0.0 18200 4884 ? S 06:13 0:00 /usr/
The problem comes down to, I guess, lack of understanding of what the
memory numbers actually mean, and how to calculate total memory
So I guess what I need to be able to do, would be a) to be able to
calculate how much we're already going into our 2gig of burstable
memory, and also, given what we know about the average http processes,
how would I calculate how many of these processes could run on the
dedicated server with 2gig of ram.
Any help would be appreciated. If more details are needed, of course
I will post.