ผู้เขียน หัวข้อ: ช่วยดู my.cnf ให้หน่อยครับใช้งานอยู่ดีๆ มันก็ lost connect เฉยเลย  (อ่าน 5055 ครั้ง)

0 สมาชิก และ 2 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ security094

  • Newbie
  • *
  • กระทู้: 45
  • spec :ผมยาว ขาว สวย หมวย X ตัวเล็ก ดัดฟัน นิสัยดี
  • Respect: 0
    • ดูรายละเอียด
    • โรงพยาบาลชานุมาน
centos 5.3 mysql percona 5.1.30 ram 2 gb
เปิดค้างไว้นานๆ มันก็เป็นครับ ถ้าเป็นวันหยุดมันไม่ค่อย lost connect ครับ
สังเกตุแล้วไม่น่าจะเป็นจากไวรัส
นักวิชาการคอมพิวเตอร์ โรงพยาบาลชานุมาน 30 เตียง
Master : IBM System X3200
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
Slave   : HP ProLiant ML110
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
HOSXP3.52.7.20
Firewall : Endian 2.2,Centos 5.3+freeradius+chillispot ฯลฯ
เว็บไซต์: http://www.amno.moph.go.th/chanumanhos/

ออฟไลน์ anonymous

  • Newbie
  • *
  • กระทู้: 7
  • Respect: 0
    • ดูรายละเอียด
I 'm HOT!!!! :-*
ลองตรวจสอบ Swicth Hub
ping  IP server  -t

 

ออฟไลน์ anonymous

  • Newbie
  • *
  • กระทู้: 7
  • Respect: 0
    • ดูรายละเอียด
ไม่ทราบว่า ท่านได้ตรวจสอบ  network หรือยัง
หรือคิดว่า  mysql service  overload
 

ออฟไลน์ มดตานอย ครับ..

  • Hero Member
  • *****
  • กระทู้: 3,137
  • Respect: 0
    • ดูรายละเอียด
-ถ้าเป็น  os+software  ผมขอแนะนำ  อย่างนี้ครับ

1. centos 4.8 / 5.4   รัน text mode นะครับ  จะได้ประหยัด ram

2. mysql5.1.40 - 41

3. my.cnf   อย่างเหมาะสม 
 
key_buffer = 384M

innodb_buffer_pool_size = 384M

innodb_log_file_size = 100M

3 บรรทัดผมว่าน่าจะเหมาะสม
อันนี้เป็น config  ติดตั้ง  mysql ใหม่นะครับ   ระวังอย่าปรับกับ  server ทีใช้อยู่

4.ที่สำคัญทำ tables  ให้เป็น  InnoDB  ด้วย  โดยเฉพาะ tables หลักๆ  เช่น
Table : vn_stat is innodb !
Table : rcpt_print_detail is innodb !
Table : rcpt_print is innodb !
Table : patient is innodb !
Table : ovstdiag is innodb !
Table : ovst is innodb !
Table : opitemrece is innodb !
Table : opdscreen is innodb !
Table : onlineuser is innodb !
Table : lab_order is innodb !
Table : lab_head is innodb !
Table : iptdiag is innodb !
Table : ipt is innodb !
Table : incoth is innodb !
Table : incith is innodb !
Table : doctor_order_print is innodb !
Table : an_stat is innodb !



ถ้าทำตาม 4 ข้อแล้ว ยังไม่หาย  คงเป็นสาเหตุอื่นแล้ว  ผมตอบไม่ได้   

อ.ท่านอื่น มีความคิดเห็นอย่างไรครับ







Nakhonphanom Hospital

MR.Tanoy999 ผู้ใช้งานทั่วไป
tanoy999-at-gmail-dot-com
เริ่ม  1 ตุลาคม 2549  โดย  BMS

ออฟไลน์ skypec

  • Hero Member
  • *****
  • กระทู้: 1,469
  • Respect: +1
    • ดูรายละเอียด
    • โรงพยาบาลรือเสาะ
-ถ้าเป็น  os+software  ผมขอแนะนำ  อย่างนี้ครับ

1. centos 4.8 / 5.4   รัน text mode นะครับ  จะได้ประหยัด ram

2. mysql5.1.40 - 41

3. my.cnf   อย่างเหมาะสม 
 
key_buffer = 384M

innodb_buffer_pool_size = 384M

innodb_log_file_size = 100M

3 บรรทัดผมว่าน่าจะเหมาะสม
อันนี้เป็น config  ติดตั้ง  mysql ใหม่นะครับ   ระวังอย่าปรับกับ  server ทีใช้อยู่

4.ที่สำคัญทำ tables  ให้เป็น  InnoDB  ด้วย  โดยเฉพาะ tables หลักๆ  เช่น
Table : vn_stat is innodb !
Table : rcpt_print_detail is innodb !
Table : rcpt_print is innodb !
Table : patient is innodb !
Table : ovstdiag is innodb !
Table : ovst is innodb !
Table : opitemrece is innodb !
Table : opdscreen is innodb !
Table : onlineuser is innodb !
Table : lab_order is innodb !
Table : lab_head is innodb !
Table : iptdiag is innodb !
Table : ipt is innodb !
Table : incoth is innodb !
Table : incith is innodb !
Table : doctor_order_print is innodb !
Table : an_stat is innodb !



ถ้าทำตาม 4 ข้อแล้ว ยังไม่หาย  คงเป็นสาเหตุอื่นแล้ว  ผมตอบไม่ได้  

อ.ท่านอื่น มีความคิดเห็นอย่างไรครับ


อ. ขอ my.cnf สำหรับแรม 2 bg (32 bit) กับ 4 gb (64 bit)

ขอบคุณครับ  :)
โรงพยาบาลรือเสาะ ( www.rusohospital.com )
Version HOSxP 3.53.7.28
Machine Server
Master : IBM
Slave   : HP

ออฟไลน์ security094

  • Newbie
  • *
  • กระทู้: 45
  • spec :ผมยาว ขาว สวย หมวย X ตัวเล็ก ดัดฟัน นิสัยดี
  • Respect: 0
    • ดูรายละเอียด
    • โรงพยาบาลชานุมาน
ผมรัน centos 5.3 แบบ text mode ครับ
นักวิชาการคอมพิวเตอร์ โรงพยาบาลชานุมาน 30 เตียง
Master : IBM System X3200
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
Slave   : HP ProLiant ML110
             Ram 2 gb Centos5.3 MySQL 5.1.30 percona
HOSXP3.52.7.20
Firewall : Endian 2.2,Centos 5.3+freeradius+chillispot ฯลฯ
เว็บไซต์: http://www.amno.moph.go.th/chanumanhos/