BMS-HOSxP Community

HOSxP => Linux => ข้อความที่เริ่มโดย: ดอกธูป ที่ ธันวาคม 19, 2006, 06:32:36 AM

หัวข้อ: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: ดอกธูป ที่ ธันวาคม 19, 2006, 06:32:36 AM
รายงานจากโรงบาลชัยนาทครับ server รวนมาก ๆ อยู่ CPU พีก ขึ้น 100% นานมากทำให้เครื่องลูก แฮงค์กันทั้งโรงบาลเลย

ที่นี่มีเครื่องลูก อยู่ 10 เครื่องครับใช้เฉพาะห้องเวชระเบียน และ เช็คสิทธิเท่านั้น ไม่น่าจะทำให้หน่วงระบบมากขนาดนี้ รบกวนผู้รู้แนะนำหน่อยครับ ว่าเกิดอะไรขึ้น ?

หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: ดอกธูป ที่ ธันวาคม 19, 2006, 06:36:29 AM
อ้อเพิ่มเติมนะคัรบ ปีญหานีมันเกิดขึ้นเป็น ระยะ ๆ นะครับ  เฉลียชั่วดมงละครั้ง ผมแก้ปัญหาด้วยการ Restart Mysql  ก็หาย ครับ

Spec เครื่อง Server นะครับ CPU P4 3.0 Gb Ram 2 Gb เคส Gview  mysql 4.1.22  ครับ
หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: ดอกธูป ที่ ธันวาคม 19, 2006, 07:06:41 AM
เริ่มทดลอง

1. พยายมสังเกตุว่า การพีกของ CPU ของ Server มันจะเกิดขึ้นตอนไหน คำตอบคือ ตอนเลือกรายการผู้ป่วยในมาทำหัตถการ และลงวินิจฉัย   เครื่องจะ พีกไปประมาณ 1 นาทีจนกว่าจะแสดงข้อมูลผู้ป่วยทั้งหมด ออกมาเสร็จ


2. ตอนเลือกผู้ป่วยมาลงหัตถการ และวินิจฉัยแต่ละ คน CPU ของ Server จะพีกตลอดและไม่ลงเลยจนกว่าจะ Restart Mysql

ตามรู้ครับ ..


หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 19, 2006, 10:00:03 AM
ไปที่เครื่อง ที่เปิดโปรแกรมส่งข้อมูลไปที่ stat
เปิดโปรแกรม logmein   ให้ด้วย
 :)
หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: doramon ที่ ธันวาคม 19, 2006, 10:02:47 AM
ส่งสัยตองลบข้อมูลจากการโอน ข้อมูลจาก stat มาในส่วนผู้ป่วยใน
หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: suchai ที่ ธันวาคม 20, 2006, 11:38:26 AM
ไม่ได้เกิด จาก fedora core 6 หรือ server ครับ เกิด จาก โอนข้มมูล ผู้ป่วยในที่ admit  อยู่ จาก stat เข้ามา hosxp ให้ ตรวจสอบ เทียบ กับ เครื่อง ip .254 การลง ipd diag ถ้าไม error แสดง ว่า สมมุติฐาน นี้ ถูกต้อง
คงต้อง ลบ ข้อมูล ผู้ป่วยใน ที่ โอนเข้ามาออกก่อน ( อย่ลืม backup ไว้ก่อนนะครับ ) แล้ว มา key admit ทีละ คน ครับ

หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: ดอกธูป ที่ ธันวาคม 21, 2006, 03:47:20 AM
ครับพี่สุชัย ตอ้นนี้ DB ทั้ง 2 เครื่องคือ DB เดียวกันครับ ฉนั้นปัญหาเกิดขึ้นเหมือนกัน ที่จุดเดียวกันเลยครับ ทางนี้ก็คิดว่าเกิดจากการโอนข้อมูลมาจาก STAT เหมือนกัน

ผมขอวิธีการลบผู้ป่วย admit ที่โอนมาจาก stat ทีครับ   ว่ามะนลบแบบไหน หรือตารางไหนบ้าง ? ที่ไม่กระทบต่อระบบอื่น ?
หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: ดอกธูป ที่ ธันวาคม 21, 2006, 04:39:03 AM
จากการเช็ครายชื่อผู้ป่วยพบว่ามี บางเคส ไม่มี An , hn หรือชื่อคนใข้เลย แต่มันไม่ขึ้นเป็นจำนวนให้ ไม่ทราบว่าตัวนี้เป็ฯปัญหาด้วยไหม ตามรูปต้องลบตรงไหนครับ

แล้วบางครั้ง เวลาเรียนข้อมูลคนไข้ในบางทีก็ขึ้น Error แบบนี้

โค๊ด: [Select]
EurekaLog 5.1.11

Application:
-------------------------------------------------------
  1.1 Start Date      : Wed, 20 Dec 2006 15:32:29 +0700
  1.2 Name/Description: HOSMy.exe
  1.3 Version Number  : 2.49.12.17
  1.4 Parameters      :
  1.5 Compilation Date: Sun, 17 Dec 2006 14:45:58 +0700

Exception:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2.1 Date   : Wed, 20 Dec 2006 15:56:53 +0700
  2.2 Address: 00569DA0
  2.3 Module : HOSMy.exe
  2.4 Type   : EOleException
  2.5 Message: SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and ipt.pttype = '23'       ( ipt.an in ('490022002','490022011','490022012','49' at line 1.

Active Controls:
----------------------------------
  3.1 Form Class   : VNCMDI_Window
  3.2 Form Text    : LibVNCServer
  3.3 Control Class: TdxDBGrid
  3.4 Control Text :

Computer:
---------------------------------------------------------------------
  4.1 Name          : HOSINFO
  4.2 User          : Administrator
  4.3 Total Memory  : 247 Mb
  4.4 Free Memory   : 65 Mb
  4.5 Total Disk    : 18.64 Gb
  4.6 Free Disk     : 4.24 Gb
  4.7 System Up Time: 54 minutes, 23 seconds
  4.8 Processor     : Intel(R) Celeron(R) M processor         1.50GHz
  4.9 Display Mode  : 1280 x 800, 16 bit

Operating System:
------------------------------------
  5.1 Type    : Microsoft Windows XP
  5.2 Build # : 2600
  5.3 Update  : Service Pack 2
  5.4 Language: Thai

Network:
---------------------------------------------------------------------
  6.1 IP Address: 000.000.000.000 - 192.168.001.234 - 000.000.000.000
  6.2 Submask   : 000.000.000.000 - 255.255.255.000 - 000.000.000.000
  6.3 Gateway   : 000.000.000.000 - 192.168.001.001 - 000.000.000.000
  6.4 DNS 1     : 000.000.000.000 - 192.168.001.001 - 000.000.000.000
  6.5 DNS 2     : 000.000.000.000 - 000.000.000.000 - 000.000.000.000
  6.6 DHCP      : ON              - OFF             - ON             

Other Information:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7.1 : Hospital Code = 10694 [โรงพยาบาล ชัยนาท]
        Database Type = MySQL
        Database Protocol = mysql-4.1
        Last 3 SQL Statement
        .
        No 1 = select ipt.*,concat(spclty.name,' - ',w.name) as sname,iptadm.bedno,iptadm.bedtype,roomno.name as roomname,iptadm.roomno,iptdiag.icd10,concat(iptdiag.icd10,' - ',i1.name) as icdname,concat(patient.pname,patient.fname,' ',patient.lname) as pname,aa.income as income,ptt.pcode as rtcode,ptt.name as rtname  from ipt  left outer join spclty on spclty.spclty=ipt.spclty  left outer join iptadm on iptadm.an=ipt.an  left outer join patient on patient.hn=ipt.hn  left outer join roomno on roomno.roomno=iptadm.roomno  left outer join iptdiag on iptdiag.an=ipt.an and iptdiag.diagtype='1'  left outer join icd101 i1 on i1.code=substring(iptdiag.icd10,1,3)  left outer join an_stat aa on aa.an=ipt.an  left outer join ward w on w.ward = ipt.ward  left outer join pttype ptt on ptt.pttype=ipt.pttype  where    and ipt.pttype = '23'       ( ipt.an in ('490022002','490022011','490022012','490022015','490022026','490022031','490022032')   or  ipt.an in ('490021855','490021862','490021864','490021886','490021891','490021914','490021919','490021927','490021928','490021934','490021935','490021946','490021953','490021955','490021965','490021970','490021973','490021993')) and ( ipt.dchdate > '2006-12-20'  or ipt.dchstts is null    )    order by ipt.regdate,ipt.regtime
        .
        No 2 = select count(ward) as cc from ward where ward='10'
        .
        No 3 = select an from ipt where  ipt.ward = '10'  and regdate<'2006-12-20'
        .
        Server variable
หัวข้อ: Re: fedora code 6 ทำพิษหรือว่า คอนฟิก Server ไม่ดี
เริ่มหัวข้อโดย: suchai ที่ ธันวาคม 21, 2006, 06:28:31 AM
กำลังตรวจสอบ ให้ ครับ