On heavily loaded web servers with many users making many requests, the access.log file will continue to grow in size until it is removed. However, simply removing the file while Apache is running will not fix the issue. Apache will need to be restarted and this process should be set up to run on a periodic basis.
As Apache states in its Log Rotation documention, the access log file typically grows 1 MB or more per 10,000 requests. The simplest method to manage this process is to set up a script to run regularly (e.g. weekly or monthly) during off-hours. The script should contain the following lines on a Windows monitoring station:
The script should only run for a few seconds and the web interface will only be down for those few seconds before coming back online. No data will be lost since the data collector is not touched and only the web interface is temporarily interrupted. |
Unable to access up.time from a web browser | Rating | Views | |
---|---|---|---|
![]() |
By: uptime Support | Date Created: 10-25-2005 | Last Modified: 7-14-2011 | Index: 030 |
![]() ![]() ![]() ![]() ![]() |
3884 |
php error_log file growing due to deprecated messages | Rating | Views | |
---|---|---|---|
![]() |
Example log messages: [02-Jun-2010 14:29:51] PHP Deprecated: Function split() is deprecated in C:\Program Files\uptime software\uptime\GUI\classes\protocol\ProtocolParser.inc on line 30... By: uptime Support | Date Created: 6-5-2010 | Last Modified: 8-13-2011 | Index: 440 |
![]() ![]() ![]() ![]() ![]() |
3402 |
Adjusting the Java Heap Size | Rating | Views | |
---|---|---|---|
![]() |
By: uptime Support | Date Created: 2-16-2006 | Last Modified: 8-5-2013 | Index: 056 |
![]() ![]() ![]() ![]() ![]() |
23235 |
phperror.log file filled with "File does not exist" errors | Rating | Views | |
---|---|---|---|
![]() |
The default error logging level in is ALL messages. This can cause a number of messages to be registered in the phperror.log, causing it to grow to very large sizes. Some example messages are:... By: uptime Support | Date Created: 8-13-2010 | Last Modified: 8-13-2011 | Index: 478 |
![]() ![]() ![]() ![]() ![]() |
2300 |
Query to retrieve MySQL database size | Rating | Views | |
---|---|---|---|
![]() |
If you need to figure out how much data a MySQL database is consuming use the information_schema database and run the following: mysql> use information_schema; mysql> select table_schema,... By: uptime Support | Date Created: 10-7-2009 | Last Modified: 8-10-2011 | Index: 386 |
![]() ![]() ![]() ![]() ![]() |
3034 |