Exit signal File size limit exceeded ใครเคยเจอบ้างครับ

[Sun Nov 21 05:41:39 2010] [notice] child pid 7988 exit signal File size limit exceeded (25)

[Sun Nov 21 05:41:39 2010] [notice] child pid 10230 exit signal File size limit exceeded (25)

[Sun Nov 21 05:41:40 2010] [notice] child pid 7815 exit signal File size limit exceeded (25)

[Sun Nov 21 05:41:42 2010] [notice] child pid 11322 exit signal File size limit exceeded (25)

[Sun Nov 21 05:41:42 2010] [notice] child pid 11967 exit signal File size limit exceeded (25)

log แบบนี้เต็มไปหมด

Centos +DA

เท่าที่หาๆในเน็ตคือ log มันใหญ่ แต่ผมหาlog ที่ว่าไม่เจอ var log httpd ก็แค่ ไม่กี่ร้อยเมก

ลอง df -h แล้วดูพาร์ทิชั่นต่างๆ โดยเฉพาะ /var ว่าใช้พื้นที่เกินที่กำหนดไว้หรือเปล่า

ถ้าเกินก็ดูลึกลงไปที่โฟลเดอร์ย่อย du -h ว่าไฟล์ไหนใช้พื้นที่เยอะ

VPS ครับลูกพี่ df -h ไม่มี var

[root@serverinter3 var]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/simfs 35G 16G 20G 45% /

none 1.0G 4.0K 1.0G 1% /dev

มี log file ใหญ่กว่า 2G หรือเปล่า

find / -size +2000000k -printf "Size: %kK	Path: %p

ลองมั่วดูครับ

With 32 Bit system apache support max filesize upto 2GB.

  1. You can check for the file under “/usr/local/apache/domlogs“. To sort all files under this directory by size use command ls -lSh | more. Once you get the file with size 2 GB simply recreate and assign appropriate ownership to the same.

  2. You are getting above error when any file get exceeded the limit of 2GB so to get it resolved you need to emptied that file. check the files from /var/log or /usr/local/apache/logs/

  3. # find / -size +2G

หาไฟล์ที่เกิน 2\G ตามข้างบนครับ หรือ

find / -size +2000000k -ls

หายแว้วๆๆๆๆๆๆๆๆๆๆ

เจอ /tmp/db-connect.txt ลบออกหายทันที

ผมถามกลับได้ไหม จะทํายังไงให้มันไม่มีทางเต็ม

ไม่ต้องให้มันเขียนไฟล์นั้นก็จบแล้ว

ไม่ก็ตั้งให้มันลบไฟล์นั้นทุกคืน