Current time: 05-07-2024, 12:48 AM Hello There, Guest! (LoginRegister)


Post Reply 
Exsessive memory usage.
Author Message
bigbob85 Offline
Junior Member
*

Posts: 11
Joined: Jul 2009
Reputation: 0
Post: #1
Exsessive memory usage.
Hey, im running a debian lenny VPS. I havnt done much to it, except install isp-control and its required packages, but im having problems with it using all my 512MB ram.

NOTE: For ram values, im using the figure given by htop

My server was running at about 508/512MB, and I couldnt get to many pages, they'd complain about memory problems. I have currently got 3 domains installed, 0 of which are actualy set up properly yet, just default stuff.
I have also created 2 databases. One small one, and one that has a small phpbb3 forum.

I tried figuring out what was using all my ram, and seeing as mysqld was running with 16 threads, I did a
Quote:/etc/init.d/mysql stop
and it brought my memory down to 335MB (change of 173MB)

I also noticed several apache threads, so I did
Quote:/etc/init.d/apache2 stop
And this brought my memory down to 199 MB (change of 136MB)

htop also lists alot of php5-cgi threads, so I killed them all...
Quote:killall php5-cgi
And this brought my memory down to 37MB (change of 162MB)


My server is pretty useless without apache and mysql, any tips on why they are running so badly?

Also, I did 1 thing differently in the install, I did apache-mpm-prefork instead of apache-mpm-worker, because it wouldnt start the other way around (not enough memory).


EDIT:
I had my thoughts about apache-mpm-worker/prefork so I did
Quote:aptitude install apache-mpm-worker
After it installed, and removed apache-mpm-prefork, I started apache
Quote:/etc/init.d/apache2 start
And it bought my memory back up to 331MB (change in 294MB)


EDIT2: After a reboot and letting it sit for a while, it idles at about 432MB.
(This post was last modified: 07-12-2009 09:13 PM by bigbob85.)
07-12-2009 05:42 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Exsessive memory usage. - bigbob85 - 07-12-2009 05:42 PM
RE: Exsessive memory usage. - jim.thornton - 08-03-2009, 04:56 AM
RE: Exsessive memory usage. - joximu - 08-03-2009, 06:11 AM
RE: Exsessive memory usage. - MasterTH - 08-03-2009, 02:26 PM
RE: Exsessive memory usage. - kilburn - 08-04-2009, 06:56 AM
RE: Exsessive memory usage. - jim.thornton - 08-04-2009, 08:03 AM
RE: Exsessive memory usage. - kilburn - 08-04-2009, 03:57 PM
RE: Exsessive memory usage. - tuxStyle - 08-11-2009, 12:28 PM
RE: Exsessive memory usage. - Deadlineo3n - 08-13-2009, 01:12 AM
RE: Exsessive memory usage. - kilburn - 08-13-2009, 04:34 AM
RE: Exsessive memory usage. - jim.thornton - 09-22-2009, 11:39 PM
RE: Exsessive memory usage. - kilburn - 09-23-2009, 12:09 AM
RE: Exsessive memory usage. - jim.thornton - 09-23-2009, 12:43 AM
RE: Exsessive memory usage. - kilburn - 09-23-2009, 12:45 AM
RE: Exsessive memory usage. - joximu - 09-23-2009, 04:48 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)