US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting


Reply
 
Thread Tools
Old 02-29-2012, 05:38 PM   #1
Junior Member
 
Join Date: Feb 2012
Posts: 1
psidlo is on a distinguished road
Send a message via ICQ to psidlo
Default AWStats - generation of stats makes huge load avg

Hi,

we use ISPmanager in VPS (OpenVZ) with approx. 80 web domains. AWStats are generated automatically for each domain.

Problem is generation of AWStats output every day or hour (according to settings in web management of ISPmanager). It runs huge number of awstats.pl process in parallel and load average of server goes up to 30 so server is unable serve content to visitors of web pages or e-mail accounts reliably.

Is it possible to configure ISPmanager or server to spread stats generation to whole hour or whole day so the load average would be reasonable lower?

Maybe it is possible to serialise running of awstats.pl?

Thanks in advance for any advice or solution.

Pavel
psidlo is offline   Reply With Quote
Old 02-29-2012, 07:48 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

Helo,
you can configure in crontab /usr/local/ispmgr/sbin/rotate job.
Change this in Cron to
Code:
/usr/local/ispmgr/sbin/rotate -c 2
and this will be run only 2 awstats proccesses in one time
slava is offline   Reply With Quote
Old 12-12-2012, 02:47 AM   #3
Member
 
Join Date: Jul 2004
Posts: 77
bakon
Send a message via ICQ to bakon
Default

Could it be something similar done at "pbackup" so load could be reduced?

Thank you.
bakon is offline   Reply With Quote
Old 12-12-2012, 10:10 PM   #4
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

You can reduce pbackup system load in ispmgr.conf configutation file

BackupPrior - priority for pbackup and all associated processes. You may use values 0 to 19. The larger the number, the less priority a process has. The default value is 0.
BackupIOClass - pbackup I/O priority classes. You may use values 1 to 3, where 1 is a real-time priority level (realtime), 2 is an average level (best effort is set by default), 3 - a minimum level (idle). Used only for Linux-based operating systems.
BackupIOClassData - pbackup I/O priority classes. You may use values 0 to 7. The smaller the figure, the higher the priority. The priority is set only if the priority class is set to 1 or 2. The default value is 7. Used only for Linux-based operating systems.
slava is offline   Reply With Quote
Reply

Tags
awstats load

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:32 PM.