[nzlug] Webserver performance monitoring
Robert Connolly
manytimesivewandered at gmail.com
Tue Apr 8 09:22:07 NZST 2008
Hi Guys,
I've taken the first suggestion and am trying out cacti, seems to be working
OK. The server seems to be only going at 1-2% CPU usage on average.
However memory seems to be low with only 5-6k free out of 512MB! I'm
assuming most of this is cached as the swap is only on about 1MB!
Will look into some of the other solutions that have been suggested, but
cacti is pretty easy so I think I'll leave it in place at least for the
moments.
Cheers,
Rob
On 08/04/2008, Liz Q <liz at debian.co.nz> wrote:
>
> Greg Fawcett wrote:
>
> > sa - that was the old utility I cam across on Redhat. Thanks for the
> > memory-jog, Steve, and I second this solution for low power machines -
> > it
> > gives pretty good long term monitoring with minimal resources. Also if
> > it
> > helps, I've got a python script that monitored load and dumped ps to
> > find
> > out what the culprit was. Let me know if you want me to dig it out.
> >
> >
> >
> Have you guys seen apachetop ?
>
> apachetop -f /var/log/apache/access.log
>
> Liz
>
> Cheers!
> > Greg.
> >
> > On 07/04/2008, Steve Holdoway <steve at greengecko.co.nz> wrote:
> >
> >
> > > On Mon, 7 Apr 2008 16:36:51 +1200
> > >
> > > "Robert Connolly" <manytimesivewandered at gmail.com> wrote:
> > >
> > >
> > >
> > >
> > > > Hi Everyone,
> > > >
> > > > I'm currently running a web server for a club that I'm involved
> > > > with,
> > > >
> > > >
> > > it's a
> > >
> > >
> > > > rather old machine running Ubuntu Server 7.10 with a standard lamp
> > > > setup
> > > > which I have tweaked a bit to try and get more out of it.
> > > >
> > > > I've been watching top over ssh now and then however it's very
> > > > difficult
> > > >
> > > >
> > > to
> > >
> > >
> > > > get an idea of exactly how much load the server is under this way.
> > > >
> > > > I was wondering if there is a reliable way of measuring resource
> > > > usage
> > > >
> > > >
> > > and
> > >
> > >
> > > > performance usage over a period of time. I would be particularly
> > > >
> > > >
> > > interested
> > >
> > >
> > > > in something that will give me average CPU and memory usage over a
> > > > designated period (pretty graphs would be nice too but aren't
> > > >
> > > >
> > > required!).
> > >
> > >
> > > > Something that has a web interface would be ideal.
> > > >
> > > > I've looked into a couple of webalizer type packages, but they are
> > > > understandably more concerned with traffic and don't really fir my
> > > > requirements.
> > > >
> > > > As an aside: It'd also be good to have a way to measure the response
> > > >
> > > >
> > > time of
> > >
> > >
> > > > the server, but I have no idea how to go about it!
> > > >
> > > > Thanks in advance,
> > > >
> > > > Cheers,
> > > >
> > > > Rob Connolly
> > > > _______________________________________________
> > > > NZLUG mailing list NZLUG at linux.net.nz
> > > > http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
> > > >
> > > >
> > > Given that the system is already resource-poor, I'd use the old
> > > favourite
> > > of sa. Dunno about apt packages, but the sysstat project is alive and
> > > kicking under Sebastien's wing, available at
> > > http://pagesperso-orange.fr/sebastien.godard/download.html at least
> > > from
> > > source.
> > >
> > > I use munin, rather than cacti, so can't directly comment, but I do
> > > find
> > > munin can be a bit resource hungry. If you're after something like
> > > that,
> > > then it may be better to go back to Tobi's original mrtg/rrdtool
> > > stuff. The
> > > graphs are useful for forward planning and proactive support, but it
> > > sounds
> > > like it may be a bit late for that...
> > >
> > > Steve.
> > >
> > >
> > >
> > >
> > > --
> > > Steve Holdoway <steve at greengecko.co.nz>
> > >
> > >
> > > _______________________________________________
> > > NZLUG mailing list NZLUG at linux.net.nz
> > > http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
> > >
> > >
> > >
> >
> >
> >
> >
> >
>
> _______________________________________________
> NZLUG mailing list NZLUG at linux.net.nz
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>
More information about the NZLUG
mailing list