เปิด apache error log เจอ (105)No buffer space available คืออะไรเหรอครับ

เปิด top ดูค่าอื่นๆก็ปกติ แต่รู้สึกว่าโฮสช้ามาก

top - 15:42:28 up 10 days, 8:03, 1 user, load average: 0.45, 0.52, 0.60
Tasks: 64 total, 1 running, 63 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.3%us, 0.4%sy, 0.0%ni, 94.9%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3000000k total, 1760652k used, 1239348k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 1102964k cached

เลยลอง ping ดู ปรากฎว่าเจอ timeout ทุกๆ 4-7แถว บางทีมาติดๆกัน

เลยลองเปิด apache error log ดู เจอตัวนี้ครับ
(105)No buffer space available: connect to listener on [::]:443

ตอนเช้าเจอแบบนี้ก่อนครับ ตอนเช้าไม่ได้ดูว่ามีปัญหาไหมครับ เพิ่งได้ดูตอนบ่าย

[Sun Mar 27 09:56:01 2016] [error] (12)Cannot allocate memory: fork: Unable to fork new process
Out of memory (Needed 24480 bytes)
Out of memory (Needed 16320 bytes)
Out of memory (Needed 16320 bytes)
Out of memory (Needed 16320 bytes)
Out of memory (Needed 16320 bytes)
[Sun Mar 27 09:57:11 2016] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Sun Mar 27 09:57:21 2016] [error] (12)Cannot allocate memory: fork: Unable to fork new process
Out of memory (Needed 57120 bytes)
Out of memory (Needed 294920 bytes)
Out of memory (Needed 176136 bytes)
Out of memory (Needed 294920 bytes)
Out of memory (Needed 176136 bytes)
Out of memory (Needed 294920 bytes)
Out of memory (Needed 176136 bytes)
Out of memory (Needed 294920 bytes)
Out of memory (Needed 176136 bytes)
Out of memory (Needed 294920 bytes)
Out of memory (Needed 176136 bytes)
Out of memory (Needed 28112 bytes)
Out of memory (Needed 28112 bytes)
Out of memory (Needed 28112 bytes)
[Sun Mar 27 09:57:31 2016] [notice] child pid 29534 exit signal Segmentation fault (11)
[Sun Mar 27 09:57:31 2016] [notice] child pid 29543 exit signal Segmentation fault (11)
[Sun Mar 27 09:57:31 2016] [notice] child pid 29544 exit signal Segmentation fault (11)
[Sun Mar 27 10:15:30 2016] [error] [client 209.236.123.16] File does not exist: /var/www/html/CHANGELOG.txt
[Sun Mar 27 10:15:30 2016] [error] [client 209.236.123.16] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 10:49:30 2016] [error] [client 115.84.116.239] File does not exist: /var/www/html/data2
[Sun Mar 27 10:49:30 2016] [error] [client 115.84.116.239] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 11:00:04 2016] [error] [client 111.13.102.7] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 11:00:04 2016] [error] [client 111.13.102.7] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 11:06:34 2016] [error] [client 171.7.248.165] File does not exist: /var/www/html/wp-content
[Sun Mar 27 11:06:34 2016] [error] [client 171.7.248.165] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 11:31:01 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 11:31:01 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 11:31:01 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/sitemap.xml
[Sun Mar 27 11:31:01 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 11:31:02 2016] [error] [client 207.241.226.94] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 11:31:02 2016] [error] [client 207.241.226.94] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 12:11:20 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/_json
[Sun Mar 27 12:11:20 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 12:11:50 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/pagead
[Sun Mar 27 12:11:50 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 12:11:55 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/image_article, referer: http://www.siamupdate.com/news-181932
[Sun Mar 27 12:11:55 2016] [error] [client 115.84.119.178] File does not exist: /var/www/html/404.shtml, referer: http://www.siamupdate.com/news-181932
[Sun Mar 27 12:40:39 2016] [error] [client 115.84.119.181] File does not exist: /var/www/html/playmag, referer: http://www.iamplaymag.com/playmag/bookshop?lang=th
[Sun Mar 27 12:40:39 2016] [error] [client 115.84.119.181] File does not exist: /var/www/html/404.shtml, referer: http://www.iamplaymag.com/playmag/bookshop?lang=th
[Sun Mar 27 12:40:59 2016] [error] [client 115.84.119.181] File does not exist: /var/www/html/w
[Sun Mar 27 12:40:59 2016] [error] [client 115.84.119.181] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 12:43:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 12:43:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml

อันนี้คือตอนนี้เลยครับ ช่วงนี้โฮสช้าๆ timeout เป็นระยะทุก 4-6 วินาที

[Sun Mar 27 15:46:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 15:46:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:46:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/sitemap.xml
[Sun Mar 27 15:46:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:46:40 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 15:46:40 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:46:40 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/sitemap.xml
[Sun Mar 27 15:46:40 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:48:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 15:48:27 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:48:51 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:49:27 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:49:33 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:50:04 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:50:27 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:51:09 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 15:51:09 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:51:09 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/sitemap.xml
[Sun Mar 27 15:51:09 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:51:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/sitemap.xml
[Sun Mar 27 15:51:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:51:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/robots.txt
[Sun Mar 27 15:51:10 2016] [error] [client 124.112.118.89] File does not exist: /var/www/html/404.shtml
[Sun Mar 27 15:51:29 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:52:19 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:53:06 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:53:25 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:54:46 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:54:47 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
[Sun Mar 27 15:56:38 2016] [warn] (105)No buffer space available: connect to listener on [::]:443
  • แรมหมดครับ
  • ถ้าเป็น vps แบบ container (openvz/lxc) คงทำอะไรลำบากหน่อย อาจต้องเช็คเรื่องโดนโจมตีด้วยว่ามีรึเปล่า

ขอบคุณครับคุณ icez ตอนนี้ลอง ping เข้าโฮสเจอ timeout เรื่อยๆ ครับ
แจ้งโฮสไป โฮสบอกว่า block traffic การเข้าผ่าน facebook ให้ชั่วคราวอีกแล้ว
timeout เกิดจากบางช่วง traffic ผ่าน facebook เข้ามาโหลดข้อมูลสูงจนทำให้ port 100Mbps ที่ shared กันอยู่ของ VPS เต็มครับ

กำเลยครับ หา traffic มากว่าจะได้ โฮสบล็อคให้เสร็จสรรพอีกแล้วครับ T-T
เขาบอกว่าต้องให้เปลี่ยนไปใช้ Dedicated Server แทน ไม่รู้ว่าปีละเท่าไหร่ และตั้งค่าไม่เป็นด้วย

(ปัญหาคือมันไม่ได้ออนไลน์เยอะแบบนี้ตลอด มีแค่บางช่วงซึ่งมีน้อยมาก ตอนนี้ต้องทนตามโฮสว่าเพราะทำอะไรไม่ได้เหมือนกันครับ)

edit: traffic หายไปเกือบเยอะมาก สงสัยต้องลองหา Dedicated Server ที่อื่นดูแล้วครับ

ทางเลือกอาจไม่ถึงขั้น dedicated ก็ได้ครับ vps/cloud server ที่ตัวแม่เป็น link gigabit ก็ช่วยได้เยอะ

ปัญหามาจาก ram หมด
ส่วนเรื่อง bw ถ้าเน้น traffic จาก facebook ลองหาเช่า hosting/vps เมืองนอกดูน่าจะดีกว่า