LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-21-2008, 01:16 PM   #1
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Rep: Reputation: 30
Lighttpd?


Apache (with php and MySQL) was using too much memory, so I was told lighttpd would help. I installed lighttpd and disabled Apache. Lighttpd took over just fine.

But it's using even more mem. Apache (php+MySQL) was using around 256MB. Lighttpd (php+MySQL) is now using 315+ MB.

Did I do something wrong?
 
Old 08-21-2008, 01:31 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Doesn't sound like an apache, PHP, MySQL or Lighttpd problem but rather a code problem or you're system can't keep up with the amount of usage from users.

Describe using too much memory though? Was it constantly being used, causing the system to go down in performance or was most or some of it cached at all?
 
Old 08-21-2008, 05:39 PM   #3
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
I run phpbb+mediawiki and I don't even get 80 unique hits a day.

Too much memory means above 256MB.
 
Old 08-21-2008, 06:00 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by Zeno McDohl View Post
Too much memory means above 256MB.
How much memory does the server have? Is the site getting slow or unresponsive? Why do you think it's too much memory? Do you have any idea how memory works in Linux?
 
Old 08-21-2008, 06:08 PM   #5
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
Because past 256MB is Burst RAM, and my host says once I go above 256 I may be accessing RAM that is not available.
 
Old 08-21-2008, 06:08 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
I personally run servers that run Apache, PHP and MySQL, hosting probably a dozen different sites with around 12 databases for each, ranging from Blogs to Forums, etc.

Right now, one system is using 1.5GB of memory out of 2GB of memory, probably a good 90% of the memory being consumed currently is split between mysql and apache. 1/3 of the 1.5GB is cached. Let me also mention this is a DNS and Postfix server as well.

So telling me 256MB is too much, I fail to see without any further details and I think you're wasting your time switching to lighttpd for something that probably isn't an issue to begin with.
 
Old 08-21-2008, 06:09 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by Zeno McDohl View Post
Because past 256MB is Burst RAM, and my host says once I go above 256 I may be accessing RAM that is not available.
Okay, now were getting somewhere.

So you have a host provider? Well, if they've only given you 256MB of memory, I fail to see how they allow you to go above that. Linux will fill all available memory it is allocated if it can. Most of it ends up getting cached. Have you run any other commands to find out if this is the case?
 
Old 08-21-2008, 06:19 PM   #8
Zeno McDohl
Member
 
Registered: Apr 2005
Location: Saratoga, NY
Distribution: Slackware
Posts: 317

Original Poster
Rep: Reputation: 30
The hard limit is 512MB. Up to 256MB is guaranteed RAM, after that it's Burst RAM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing lighttpd bambam43410 Linux - Software 1 08-06-2009 12:37 PM
HOW can i optimize my lighttpd? need help! gavin2u Linux - Server 4 08-13-2008 08:00 PM
lighttpd and cgi with freepascal alankobe22 Linux - Server 1 07-29-2007 09:08 AM
LXer: Starting out with Lighttpd LXer Syndicated Linux News 0 04-11-2007 04:31 PM
stopping lighttpd viniosity Debian 2 02-28-2006 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration