LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-25-2014, 09:23 AM   #1
karll
LQ Newbie
 
Registered: Sep 2009
Location: United Kingdom
Distribution: RHEL, Fedora, FreeBSD
Posts: 21

Rep: Reputation: 0
Question awstats ate all my memory!


I've just installed awstats on my ubuntu 12.04 LTS VPS.

So I configured everything and ran:
Code:
/usr/lib/cgi-bin/awstats.pl -config=[my domain name here] -update

This resulted in this output:
Quote:
Create/Update database for config "/etc/awstats/awstats.[my domain name here].conf" by AWStats version 7.0 (build 1.971)
From data in log file "[...redacted...]/log/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Reverse DNS lookup for ::1 not available without ipv6 plugin enabled.
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
Flush history file on disk (unique url reach flush limit of 5000)
(That last line repeated many more times ...)

I noticed the process spawned many child processes and the server load went trough the roof after a while. Eventually the mysql server died. At that point I decided I had been more than reasonable, so I did killall on the awstats.pl processes.

I had been following the instructions here:
https://help.ubuntu.com/community/AWStats

What could have gone wrong? Is there a way to make it work without consuming all my memory? (A whooping 1GB.)

Last edited by karll; 05-25-2014 at 09:25 AM.
 
Old 05-25-2014, 09:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by karll View Post
What could have gone wrong?
You configured Awstats to do all sorts of lookups and it just did that.


Quote:
Originally Posted by karll View Post
Is there a way to make it work without consuming all my memory? (A whooping 1GB.)
Disable unnecessary lookups and see http://www.ducea.com/2006/06/14/spee...f-dns-lookups/ .
 
1 members found this post helpful.
Old 05-25-2014, 02:12 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
awstates will do a ip address look up ( a who-is / dns ) on EVERY address
that can eat up ram and CPU cycles

also Apache can do the same thing , so check that
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Script(s) ate my OS zensunni Linux - Newbie 4 11-24-2010 09:27 AM
Gaim ate memory, couldn't kill processes. Oxagast Linux - Software 1 09-06-2005 03:55 PM
Windows ate my bootloader MediGuy Linux - Newbie 4 10-10-2003 06:10 AM
GNOME ate my Desktop bandit12 Linux - Software 3 02-27-2003 05:51 PM
Linux ate half of my memory... StamfordRob Linux - Newbie 12 01-29-2002 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration