[ale] dumb apache/memory question

Stephen VanDyke mail at stephenvandyke.com
Tue Sep 4 16:55:41 EDT 2001


Ok, since I really can't tell what the problem would be aside from code that
is inefficient and needs to be streamlined, I can only suggest the following
ideas:

if the server is a virthost, bring things down 1 domain at a time and see
where the load drops.
if it's just one big site, try to narrow down what script is causing
problems
add more RAM, yes it really could be time to upgrade to 1GB -> 2GB -> Load
Balancing

Stephen VanDyke

> -----Original Message-----
> From: owner-ale at ale.org [mailto:owner-ale at ale.org]On Behalf Of djinn
> Sent: Tuesday, September 04, 2001 4:30 PM
> To: Stephen VanDyke
> Cc: ale at ale.org
> Subject: Re: [ale] dumb apache/memory question
>
>
> MySQL lives on a separate server with lots of memory and no lag
> problems, and talking to it is very, very fast.  The only thing that
> would slow it down is the encryption via stunnel, which doesn't seem to
> be making too much of a dent. Thanks tho.
>
> Stephen VanDyke wrote:
> >
> > MySQL is known to be a big memory hog when hit hard and with a
> lot of data.
> > You may want to look at caching or tuning your
> scripts/connections. You can
> > also test the lag from your MySQL server as well with a script timer. I
> > would also suggest running apache bench (included with the apache source
> > distribution) against your site and determine your slowest
> loading pages and
> > see how you can tweak them (run ab from localhost to get an idea of long
> > script times instead of long network times).
> >
> > Stephen VanDyke
> > phpAtlanta.org
> >
> > > -----Original Message-----
> > > From: owner-ale at ale.org [mailto:owner-ale at ale.org]On Behalf Of djinn
> > > Sent: Tuesday, September 04, 2001 3:16 PM
> > > To: ale at ale.org
> > > Subject: [ale] dumb apache/memory question
> > >
> > >
> > > Background on dumb question:  sar -r is consistantly showing
> me at 95 -
> > > 98% memory usage, top is showing httpd and stunnel at..uh..the top but
> > > I'm running at 85 - 95% idle on CPU utilization.  Obviously, I'm doing
> > > something that's way RAM intensive...
> > >
> > > This machine is running apache 1.3.20 + modssl + php 4.0.6 and all the
> > > database connections go over stunnel.  That's all it's doing.  But the
> > > most heavily hit pages are not static...most of our stuff
> relies on PHP
> > > which is, I'm assuming, the cause of the memory hoggage (I
> know stunnel
> > > is contributing as well).
> > >
> > > So here's my dumb question: do I need to throw RAM at this (I've got
> > > 512MB) or do I need to tune my setup?  Or both?  I'm beginning to
> > > believe that my web page lag is due to my web server and not
> so much my
> > > firewalls...firewalls are just idling away with tons of processor and
> > > RAM free even at peak traffic time.  Even if it's not the direct cause
> > > of the slowness, it would seem that 98% RAM utilization would
> be a thing
> > > to worry about.
> > >
> > > TIA, as always
> > > jenn
> > > --
> > > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in
> > > message body.
> > >
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in
> message body.
>

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list