![]() |
AWStats logfile analyzer 6.5 Documentation |
| Your Web site traffic | Perl distrib | Values for parameters | Recommended update frequency (Rotate log delay) | Memory required** | Update process duration*** | ||
| DNSLookup* | URLWithQuery | URLReferrerWithQuery | |||||
| 0 - 1,000 visits/month | Your choice | 0 (or 2) | 0 or 1 | 0 or 1 | Once a day Log files are 0-1 MB 2000 lines to process | 4 MB free | 1s |
| 1 | 0 or 1 | 0 or 1 | Once a day Log files are 0-1 MB 2000 lines to process | 4 MB free | 2mn | ||
| 1,000 - 10,000 visits/month | Your choice | 0 (or 2) | 0 or 1 | 0 or 1 | Once a day Log files are 1-10 MB 2000-20000 lines | 4-8 MB free | 1s-10s |
| 1 | 0 or 1 | 0 or 1 | Once a day Log files are 1-10 MB 2000-20000 lines | 4-8 MB free | 2mn-10mn | ||
| 10,000 - 100,000 visits/month | Your choice | 0 (or 2) | 0 or 1 | 0 or 1 | One a day Log Files are 10-100 MB 20000-200000 lines | 8-32 MB free | 10s-120s |
| 1 | 0 or 1 | 0 or 1 | Once a day Log files are 10-100 MB 20000-200000 lines | 8-32 MB free | 10mn-50mn | ||
| 100,000 - 500,000 visits/month | Your choice | 0 (or 2) | 0 | 0 or 1 | Every 6 hours Log Files are 24-96 MB 50000-300000 lines | 16-92 MB free | 30s-3mn |
| 1 | 0 | 0 or 1 | Every 6 hours Log Files are 24-96 MB 50000-300000 lines | 16-92 MB free | 15mn-60mn | ||
| 500,000 - 2,000,000 visits/month | See next section on pb with ActiveState | 0 (or 2) | 0 | 0 | Every 6 hours Log Files are 96-384 MB 300000-1200000 lines | 64-256 MB free | 3mn-12mn |
| 2,000,000 - 4,000,000 visits/month | See next section on pb with ActiveState | 0 (or 2) | 0 | 0 | Every 6 hours Log Files are 384-768 MB 1200000-2400000 lines | 256-512 MB free | 12mn-24mn |
| +4,000,000 visits/month | See next section on pb with ActiveState | AWStats is not a good choice for such web sites. Try a tool with less features but faster like "row counter log analyzers" like Analog (Can try also Webalizer) | |||||



- Check that DNSLookup is disabled in AWStats (DNSLookup should not
be set to 1). If you need a 'Country' report, you should prefer using the 'geoip' or 'geoipfree' plugin
instead of DNS lookup. Those plugins allow you to have more accurate results, faster with no network queries (With
DNSLookup enabled, log analyze speed is decreased by 40 to 100 times, so use it only if required).
Note that without DNS lookup and without the 'geoip' plugins, 'Country' report might work but results will be
less accurate than the 'geoip' usage and it works only if hosts addresses in your log file are already resolved
(need to setup your web server to do so, your web server will be slowed).


- Use carefully parameters URLWithQuery, URLReferrerWithQuery and URLWithAnchor
(Let them set to 0 if you don't know what they means) and check your web site URLs' syntax to know if you don't need to complete the parameter URLQuerySeparators.
If you really need to use URLWithQuery=1, check that
URLWithQueryWithOnlyFollowingParameters or
URLWithQueryWithoutFollowingParameters
are set properly.


- Use last Perl version (For example Perl 5.8 is 5% faster than 5.6) and, more important, for large log files,
use standard Perl distribution instead of ActiveState. This is because ActiveState 5.006 (and may be also
other versions), has very important memory hole problem making speed of analysis slower and slower
reaching 0 lines/seconds and using all your memory. You can see the decrease by adding the -showsteps option
on command line. The speed should be constant to value given in top of this page, even for
several Gigabytes log files !

- Rotate your log (See FAQ-SET500) and launch AWStats more often (from crontab or a scheduler, See FAQ-SET550).
The more often you launch AWStats, the less AWStats has new lines in log to process.
This can also solve the ActiveState memory problem (see next advice).
- Be sure that your HostAliases parameter list is complete.
- Use last AWStats version (For example AWStats 6.0 is 15% faster than 5.9).
- For geeks users, you can also recompile your Perl with differents options.
For example, it seems that the "use64bitint=define usemymalloc=y" can increase speed by 10%.