เจอปัญหา ในฐาน Joomla Out of resources when opening file '/tmp/#sql_7059_0.MAD' (Errcode: 24 "Too many open files")

กฎการใช้บอร์ด
คำถามหมวดนี้ ควรระบุ รายละเอียดของ Server OS, เวอร์ชั่น ของ PHP, CMS ที่ท่านใช้
รวมถึง Hosting หรือ Control Panel Hosting

ตอบกระทู้

รูปแสดงอารมณ์
:icon_plusone: :like: :plusone: :gfb: :-D :) :( :-o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angry: :baa: :biggrin:
รูปแสดงอารมณ์อื่นๆ

BBCode เปิด
[img] เปิด
[url] เปิด
[Smile icon] เปิด

กระทู้แนะนำ
   

มุมมองที่ขยายได้ กระทู้แนะนำ: เจอปัญหา ในฐาน Joomla Out of resources when opening file '/tmp/#sql_7059_0.MAD' (Errcode: 24 "Too many open files")

Re: เจอปัญหา ในฐาน Joomla Out of resources when opening file '/tmp/#sql_7059_0.MAD' (Errcode: 24 "Too many open files")

โดย mindphp » 18/10/2020 5:41 pm

สาเหตุปัญหา มาจาก Database Server บน Ubuntu กำหนด

open_files_limit ไว้น้อยเกินไป Default คือ 5000 ซึ่งอาจจะน้อยไป สำหรับ MySQL Server ที่มีฐานข้อมูลเยอะๆ
ทางแก้
เปิดไฟล์ /etc/my.cnf แก้ไข

โค้ด: เลือกทั้งหมด

nano /etc/my.cnf
เพิ่ม

โค้ด: เลือกทั้งหมด

open_files_limit=16384
แล้ว restart mysql ด้วยคำสั่ง

โค้ด: เลือกทั้งหมด

/etc/init.d/mysqld restart

เจอปัญหา ในฐาน Joomla Out of resources when opening file '/tmp/#sql_7059_0.MAD' (Errcode: 24 "Too many open files")

โดย mindphp » 18/10/2020 5:34 pm

Out of resources when opening file '/tmp/#sql_7059_0.MAD' (Errcode: 24 "Too many open files")

ข้างบน