A normal use of the site, LAMP architecture, suddenly could not open, but the other two domain sites on the same server can open, static documents can be opened because the failure for some time before the program is not updated, the program error is unlikely.
telnet to port 80 web site, you can also open, very strange phenomenon.
Restart the apache, useless, mysql command line can also be used, no problem, sometimes not the right direction.
Then tail the apache's log, a is a normal web log, a is the error_log.
Observation, and found the anomaly, apache's error_log has output an error message as follows:
[Thu May 24 23:11:27 2007] [notice] child pid 23406 exit signal File size limit exceeded (25)
[Thu May 24 23:12:01 2007] [notice] child pid 23544 exit signal File size limit exceeded (25)
[Thu May 24 23:12:47 2007] [notice] child pid 23633 exit signal File size limit exceeded (25)
[Thu May 24 23:12:53 2007] [notice] child pid 22799 exit signal File size limit exceeded (25)
That there are file size exceeds the limit.
google a bit, saying that more than apache 2G file limit, find the command in the system try to find large files inside
Find two files, one is
/ Xxx / xxx / page_parse_time.log
/ Xxx / yyy / support-popbytes_log
The first file page_parse_time.log about the size of the 2G, compressed backup,
> / Xxx / xxx / page_parse_time.log
To solve the problem.
page_parse_time.log contents of the file is sql query in the log record program and the execution time of the log, will be written on every page request some data, so no wonder that more than 2G.
Last mysql data also encountered a few too many articles, the problem error message as follows:
LOGSQL Insert insert Failed: insert into adodb_logsql , sql0 , sql1 , params , tracer , timer ) (Created, sql0, sql1, params, tracer, timer) values ( ,?,?,?,?,? ) NOW () ,?,?,?,?,?) The table ' 'Adodb_logsql' is full
By Charles
select mysql> select * ) count (*) from adodb_logsql;
+----------+
( * ) | | Count (*) |
+----------+
| | 33127244 |
+----------+
3 million,,, may be a bit bigger, and finally truncate this table, problem solving, but the final document search mysql, Scalability and Limits on the part of mysql did not say how many records kept up to the estimated type is also associated with the table. Text that is
Handles large databases. We use MySQL Server with databases that contain 50 million records. We also know of users who use MySQL Server with 60,000 tables and about 5,000,000,000 rows.
Just do not know it says 50 million which is a database of all records or records of all the tables together. Behind the table should be combined for all 60,000 data.
--------
Conclusion, the necessary logs are needed, but to control the size, there are circulation mechanism, or a monitoring mechanism, remember, remember.
Popularity: 31%