ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comHost and DomainHost & Domain (general)สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: สอบถาม :: มีอีเมลจาก Hostgator กับฐานข้อมูล  (อ่าน 710 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
Railway
สมุนแก๊งเสียว
*

พลังน้ำใจ: 47
ออฟไลน์ ออฟไลน์

กระทู้: 605



ดูรายละเอียด
« เมื่อ: 14 กุมภาพันธ์ 2013, 16:11:39 »

โค๊ด:
This message is to advise you of a temporary block placed on your database. The database was found to be consuming an inordinate amount of processor time, to the point of degrading overall system performance. While we do limit each account to no more than 25% of a system's CPU in our terms of service, we do not actively disable accounts until they greatly exceed that number, which is what happened in this case. Requests to this database may become degraded by limiting the maximum number of queries or connections for a limited amount of time, or if there are sustained issues, ultimately we may be forced to block access to this database until the issue has been resolved.

Resolving this situation may be as simple as adding additional indexes to your database, optimizing the queries used, or something equally easy. If not, it may simply be a matter of moving this database to dedicated services, as it may have outgrown a shared environment.

If you believe you have a solution to this overuse, we are happy to discuss the situation with you and possibly reinstate the database on the server. Otherwise, we will be happy to assist you with the upgrade process if a dedicated server is the most appropriate solution. Thank you, and we look forward to hearing from you shortly.

~~~
Excessive MySQL activity is caused by (a) a long-running process that locks a table, causing other queries to back up, (b) a query that is not optimized ][example: select all from ... and involving a large or complex query], (c) huge table copies/maintenance during peak hours.

NOTE:, the following are just possible fixes or suggestions, and are not endorsed or supported by HostGator. They are included in the hope that they may apply to your situation, and/or help you reduce the amount of resources your SQL queries consume. As always, it's best to backup any data before making any changes or adjustments.

First and foremost, you may need to optimize your tables. The frequency depends on the size and usage of the database, but most databases would benefit from doing something like this on a yearly basis: a) Enter your phpMyAdmin/MySQL control panel. Click on the database (not the table, the database name), and on the right hand column your tables should be listed. Scroll down till you see the .Check all. link. Click on that link, make sure all database tables are checked and then from the drop-down next to it, and carefully select .Optimize table..

จับใจความได้ว่าผมใช้การคิวรี่ฐานข้อมูลเยอะเกินไป

ผมทำเว็บปั่น โดยใช้วิธีดึงข้อมูลมาเก็บไว้ในฐานข้อมูลครับ แล้วเรียกไปแสดง ผมไม่ทราบว่าปัญหามันเกิดจากอะไร เกิดจากการที่บอทเข้ามาบ่อยเกินไปหรือไม่ เพราะผมจะ ping ทุกซับโดเมนครับ เพราะถ้าเป็นคนเข้า 1 โดเมน คนเข้าไม่เกิน 40คน/วัน ตอนนี้ทำอยู่ 2 โดเมน ปัญหานี้ไม่น่าจะเกิดรบกวนท่านที่เคยโดนแนะนำด้วยครับ

ตอนนี้เว็บเข้าได้ แต่คิวรี่ข้อมูลมาแสดงไม่ได้เลยครับ
บันทึกการเข้า

tdelphi
Global Moderator
หัวหน้าแก๊งเสียว
*****

พลังน้ำใจ: 308
ออฟไลน์ ออฟไลน์

กระทู้: 1,602



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 14 กุมภาพันธ์ 2013, 16:24:19 »

อ่านคราวๆ เขาหมายถึง ใช้คำสั่ง query ดึงข้อมูลที่ทำงาน "นานเกินไป" จนเกินปัญหา table locking เยอะๆ จนมีผลต่อ performance รวมของเครื่อง
ทางแก้คือ

1. ตรวจสอบ code ว่าดึงช้อมูลทีละเยอะๆ เกินไปหรือเปล่า แต่ใช้แค่ 1 record อะไรแบบนี้
2. ลองปรับ table type เป็น innodb จะช่วยเรื่อง table locking ได้
3. หาสาเหตให้พบว่า เกิดจากคำสั่งอะไร และมาจาก code ส่วนไหน
บันทึกการเข้า

Railway
สมุนแก๊งเสียว
*

พลังน้ำใจ: 47
ออฟไลน์ ออฟไลน์

กระทู้: 605



ดูรายละเอียด
« ตอบ #2 เมื่อ: 14 กุมภาพันธ์ 2013, 16:28:44 »

เว็บคนเข้าไม่เยอะนะครับ เกี่ยวกับบอทเข้าด้วยรึป่าว เดี๋ยวจะตรวจสอบ code ใหม่อีกครั้งครับ เพราะเพิ่ง run เว็บใหม่ไป ไม่รู้เขียนโค้ด loop อยู่รึป่าว
บันทึกการเข้า

Railway
สมุนแก๊งเสียว
*

พลังน้ำใจ: 47
ออฟไลน์ ออฟไลน์

กระทู้: 605



ดูรายละเอียด
« ตอบ #3 เมื่อ: 14 กุมภาพันธ์ 2013, 17:14:25 »

ตอนนี้เข้าเว็บไม่ได้แย้ว T_TT

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
บันทึกการเข้า

zidit
Verified Seller
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 314
ออฟไลน์ ออฟไลน์

กระทู้: 7,546



ดูรายละเอียด
« ตอบ #4 เมื่อ: 14 กุมภาพันธ์ 2013, 18:23:04 »

ตอนนี้เข้าเว็บไม่ได้แย้ว T_TT

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

น่าจะโดนระงับแล้วครับผม ระงับเฉพาะเว็บที่มีปัญหา ไม่ใช่ทั้ง acc

ปัญหาหลักๆ คือ mysql ทำงานหนักครับ ทำให้กระทบต่อคนอื่น ลองเช็คสคิป เช็คปลั๊กอินว่ามีตัวไหน ทำงานหนักบ้าง
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์