Article ID: 3606, created on Feb 7, 2008, last review on May 10, 2014

  • Applies to:
  • Plesk for Windows


Statistics are calculated incorrectly, with gaps or incorrect values, or they are not calculated at all.

You may see the following error when trying to execute statistics.exe:

C:\Program Files\SWsoft\Plesk\admin\bin>statistics.exe --http-web-statistics --process-domains=domain.tld --verbose

Bad allocation


"bad allocation
at Execute C:\PROGRA~1\SWsoft\Plesk\ADDITI~1\Perl\bin\perl.exe"


A "bad allocation" error means that there is not enough memory for the Perl process used by AWStats.

The error appears mostly (but not only) when x86 architecture is used and memory consumption is close to 4 GB.
Most likely, there is a domain with a heavy load, and its log files are growing quickly.


These recommendations may reduce the probability of the above errors' occurrence:

1. Configure Log Rotation by log size and store no more than two log files (for domains with a heavy load).

2. Run statistics more frequently, e.g., twice per day (for domains with a heavy load).

3. Change web statistics application from AWStats to another one, e.g., Urchin (optional).

4. Change the hardware and OS architecture to x86_64.

85a92ca67f2200d36506862eaa6ed6b8 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF