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

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

ThaiSEOBoard.comHost and DomainHost & Domain (general) mysql อยู่ๆstop service เอง ใช้ vesta cp
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: mysql อยู่ๆstop service เอง ใช้ vesta cp  (อ่าน 6382 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
9mobile
Newbie
*

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

กระทู้: 90



ดูรายละเอียด
« เมื่อ: 28 ธันวาคม 2014, 11:22:34 »

เป็น vps  นะครับ

เปิดไว้สักพัก อยู่ๆ mysqld  stop service  เอง ใช้ vesta cp

มีท่านไดทราบวิธีแก้ไขบ้างไหมครับ เป็นเว็บไซต์ใช้งานไม่หนักครับ

กำหนดค่า /etc/my.cnf ผิดรึป่าวครับ
โค๊ด:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
symbolic-links=0
max_connections=7000000
max_user_connections=300
wait_timeout=1000
interactive_timeout=50
long_query_time=5
#log-queries-not-using-indexes
#log-slow-queries=/var/log/mysql/log-slow-queries.log

key_buffer = 16M
myisam_sort_buffer_size = 32M
join_buffer_size=10M
read_buffer_size=10M
sort_buffer_size=20M
table_cache=1024
thread_cache_size=286
interactive_timeout=25
connect_timeout=50
max_allowed_packet=10000M
max_connect_errors=10000000
query_cache_limit=1M
query_cache_size=8M
query_cache_type=1
tmp_table_size=16M

#innodb_use_native_aio = 0
innodb_file_per_table

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


logs
โค๊ด:
141228  8:00:54 [Note] Plugin 'FEDERATED' is disabled.
141228  8:00:54 InnoDB: The InnoDB memory heap is disabled
141228  8:00:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141228  8:00:54 InnoDB: Compressed tables use zlib 1.2.3
141228  8:00:54 InnoDB: Using Linux native AIO
141228  8:00:54 InnoDB: Initializing buffer pool, size = 128.0M
141228  8:00:54 InnoDB: Completed initialization of buffer pool
141228  8:00:54 InnoDB: highest supported file format is Barracuda.
141228  8:00:54  InnoDB: Waiting for the background threads to start
141228  8:00:55 InnoDB: 5.5.41 started; log sequence number 1683048
141228  8:00:55 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141228  8:00:55 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141228  8:00:55 [Note] Server socket created on IP: '0.0.0.0'.
141228  8:00:55 [Note] Event Scheduler: Loaded 0 events
141228  8:00:55 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi

 wanwan017
« แก้ไขครั้งสุดท้าย: 28 ธันวาคม 2014, 20:36:08 โดย 9mobile » บันทึกการเข้า
SEO [Aoom]
หัวหน้าแก๊งเสียว
*

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

กระทู้: 1,329



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 28 ธันวาคม 2014, 11:55:50 »

มาตอบไม่ทัน 555
บันทึกการเข้า

บริการทำเว็ป viral สร้างรายได้ สายเทา สายดำ ติด ads network พร้อมทำเงิน คลิ้ก!! http://on.fb.me/1eXV2ju
ebook สอนหาเงินจาก Youtube
9mobile
Newbie
*

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

กระทู้: 90



ดูรายละเอียด
« ตอบ #2 เมื่อ: 28 ธันวาคม 2014, 20:38:30 »

มาตอบไม่ทัน 555

ครับขอคุณมากคับท่าน

ขออนุญาตเปลี่ยนหัวข้อใหม่นะคับ พอดีเจออีกปัญหาคับ   wanwan017
บันทึกการเข้า
nuvatchai
หัวหน้าแก๊งเสียว
*

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

กระทู้: 1,023



ดูรายละเอียด
« ตอบ #3 เมื่อ: 29 ธันวาคม 2014, 01:24:25 »

my.cnf โหดมากครับ ลองเอา default config มาใช้แทนสิครับ
บันทึกการเข้า
9mobile
Newbie
*

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

กระทู้: 90



ดูรายละเอียด
« ตอบ #4 เมื่อ: 29 ธันวาคม 2014, 01:46:31 »

my.cnf โหดมากครับ ลองเอา default config มาใช้แทนสิครับ

เอามาแล้วครับ เหมือนกันลองปรับหลายครั้งแล้วครับ  wanwan004
บันทึกการเข้า
Nomkhonwaan
คนรักเสียว
*

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

กระทู้: 198



ดูรายละเอียด
« ตอบ #5 เมื่อ: 29 ธันวาคม 2014, 08:33:33 »

ปกติถ้ามัน load หนัก ๆ memory ไม่พอมันจะ shutdown ตัวเองครับ

ลองดู log ช่วงเวลาที่มันสั่ง shutting down ดูครับ

Tongue
บันทึกการเข้า
mostzaa
สมุนแก๊งเสียว
*

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

กระทู้: 710



ดูรายละเอียด
« ตอบ #6 เมื่อ: 29 ธันวาคม 2014, 12:54:29 »

ค่า 4GB Ram ผมใส่แบบนี้
โค๊ด:
[mysqld]
local-infile=0

#skip-innodb
innodb_buffer_pool_size=256M
#innodb_additional_mem_pool_size=4M
innodb_log_buffer_size=2M
innodb_flush_log_at_trx_commit = 1
innodb_thread_concurrency=2
#innodb_log_file_size = 256M
innodb_file_per_table

skip-character-set-client-handshake
skip-name-resolve
max_connections = 300
key_buffer = 384M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 2M
sort_buffer_size = 2M
read_rnd_buffer_size = 1M

table_cache = 1024
thread_cache = 4
thread_concurrency = 2
thread_cache_size = 256
wait_timeout = 3600
connect_timeout = 10
max_tmp_tables = 256
tmp_table_size = 128M
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
max_heap_table_size = 128M
#tmpdir=/var/mysqltmp

log_warnings=0



[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 16384
บันทึกการเข้า

Upnoc Solution Data Driven Agency Service
Upnoc
icez
Verified Seller
หัวหน้าแก๊งเสียว
*

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

กระทู้: 2,879



ดูรายละเอียด
« ตอบ #7 เมื่อ: 29 ธันวาคม 2014, 13:00:13 »

ปรับค่าเวอร์ไปนะครับ ทำให้ mysql ใช้แรมเยอะกว่าปกติ อาจทำให้เครื่องค้างได้ครับ

my.cnf เค้าให้ปรับให้พอดีกับแรมครับ อย่าเกินไปมาก อันตราย

ส่วน log ที่ให้มามีแค่ตอน start อะครับ ไม่มีสาาเหตุการดับ
« แก้ไขครั้งสุดท้าย: 29 ธันวาคม 2014, 13:00:37 โดย icez » บันทึกการเข้า

THZHost SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ
numnha
สมุนแก๊งเสียว
*

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

กระทู้: 825



ดูรายละเอียด เว็บไซต์
« ตอบ #8 เมื่อ: 29 ธันวาคม 2014, 13:14:59 »

ปรับค่าเวอร์ไปนะครับ ทำให้ mysql ใช้แรมเยอะกว่าปกติ อาจทำให้เครื่องค้างได้ครับ

my.cnf เค้าให้ปรับให้พอดีกับแรมครับ อย่าเกินไปมาก อันตราย

ส่วน log ที่ให้มามีแค่ตอน start อะครับ ไม่มีสาาเหตุการดับ
ขอความรู้ครับ
ถ้าแรม 2 g ควรปรับ mysql จากเดิมมีค่าไหนที่ต้องปรับบ้างและควรเป็นค่าเท่าไรครับ
บันทึกการเข้า

icez
Verified Seller
หัวหน้าแก๊งเสียว
*

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

กระทู้: 2,879



ดูรายละเอียด
« ตอบ #9 เมื่อ: 29 ธันวาคม 2014, 13:37:14 »

ค่ามาตรฐานของผมตามนี้ครับ

อ้างถึง
[mysqld]
local-infile=0

innodb_buffer_pool_size=128M
innodb_log_buffer_size=2M
innodb_flush_log_at_trx_commit = 1
innodb_thread_concurrency=2
innodb_file_per_table

skip-character-set-client-handshake
skip-name-resolve
max_connections = 200
key_buffer_size = 256M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
read_rnd_buffer_size = 1M

table_cache = 1536
thread_concurrency = 2
thread_cache_size = 256
wait_timeout = 3600
connect_timeout = 10
max_tmp_tables = 256
tmp_table_size = 128M
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
max_heap_table_size = 128M
#tmpdir=/var/mysqltmp

log_warnings=0


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 16384



ถ้ามีปัญหาอีก (ติด max conn / query ช้า) ต้องไปแก้ที่การใช้งานแล้วครับ
« แก้ไขครั้งสุดท้าย: 29 ธันวาคม 2014, 13:37:39 โดย icez » บันทึกการเข้า

THZHost SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ
9mobile
Newbie
*

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

กระทู้: 90



ดูรายละเอียด
« ตอบ #10 เมื่อ: 30 ธันวาคม 2014, 00:27:47 »

แรม 1 GB ครับ

ลองเปลี่ยนเป็นแบบนี้แล้วคับ

โค๊ด:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
symbolic-links=0
max_connections=1000000
max_user_connections=30
wait_timeout=30
interactive_timeout=50
long_query_time=5
#log-queries-not-using-indexes
#log-slow-queries=/var/log/mysql/log-slow-queries.log

#innodb_use_native_aio = 0
innodb_file_per_table

[mysqld_safe]
log-error=/var/log/mysqld.log

logs
โค๊ด:
141229 11:47:17 mysqld_safe Number of processes running now: 0
141229 11:47:17 mysqld_safe mysqld restarted
141229 11:47:19 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 11:47:22 [Note] Plugin 'FEDERATED' is disabled.
141229 11:47:23 InnoDB: The InnoDB memory heap is disabled
141229 11:47:23 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 11:47:23 InnoDB: Compressed tables use zlib 1.2.3
141229 11:47:23 InnoDB: Using Linux native AIO
141229 11:47:23 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
141229 11:47:23 InnoDB: Completed initialization of buffer pool
141229 11:47:23 InnoDB: Fatal error: cannot allocate memory for the buffer pool
141229 11:47:23 [ERROR] Plugin 'InnoDB' init function returned error.
141229 11:47:23 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
141229 11:47:23 [ERROR] Unknown/unsupported storage engine: InnoDB
141229 11:47:23 [ERROR] Aborting

141229 11:47:23 [Note] /usr/libexec/mysqld: Shutdown complete

141229 11:47:23 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 11:50:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 11:50:48 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 11:50:48 [Note] Plugin 'FEDERATED' is disabled.
141229 11:50:48 InnoDB: The InnoDB memory heap is disabled
141229 11:50:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 11:50:48 InnoDB: Compressed tables use zlib 1.2.3
141229 11:50:48 InnoDB: Using Linux native AIO
141229 11:50:48 InnoDB: Initializing buffer pool, size = 128.0M
141229 11:50:48 InnoDB: Completed initialization of buffer pool
141229 11:50:48 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
141229 11:50:48  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
141229 11:50:48  InnoDB: Waiting for the background threads to start
141229 11:50:49 InnoDB: 5.5.41 started; log sequence number 1856298
141229 11:50:49 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 11:50:49 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141229 11:50:49 [Note] Server socket created on IP: '0.0.0.0'.
141229 11:50:49 [Note] Event Scheduler: Loaded 0 events
141229 11:50:49 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
141229 12:04:07 [Note] /usr/libexec/mysqld: Normal shutdown

141229 12:04:07 [Note] Event Scheduler: Purging the queue. 0 events
141229 12:04:09  InnoDB: Starting shutdown...
141229 12:04:10  InnoDB: Shutdown completed; log sequence number 1856298
141229 12:04:10 [Note] /usr/libexec/mysqld: Shutdown complete

141229 12:04:10 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 12:04:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 12:04:11 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 12:04:11 [Note] Plugin 'FEDERATED' is disabled.
141229 12:04:11 InnoDB: The InnoDB memory heap is disabled
141229 12:04:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 12:04:11 InnoDB: Compressed tables use zlib 1.2.3
141229 12:04:11 InnoDB: Using Linux native AIO
141229 12:04:11 InnoDB: Initializing buffer pool, size = 128.0M
141229 12:04:11 InnoDB: Completed initialization of buffer pool
141229 12:04:11 InnoDB: highest supported file format is Barracuda.
141229 12:04:11  InnoDB: Waiting for the background threads to start
141229 12:04:12 InnoDB: 5.5.41 started; log sequence number 1856298
141229 12:04:12 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 12:04:12 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141229 12:04:12 [Note] Server socket created on IP: '0.0.0.0'.
141229 12:04:12 [Note] Event Scheduler: Loaded 0 events
141229 12:04:12 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
141229 12:08:02 mysqld_safe Number of processes running now: 0
141229 12:08:02 mysqld_safe mysqld restarted
141229 12:08:09 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 12:08:13 [Note] Plugin 'FEDERATED' is disabled.
141229 12:08:13 InnoDB: The InnoDB memory heap is disabled
141229 12:08:13 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 12:08:13 InnoDB: Compressed tables use zlib 1.2.3
141229 12:08:13 InnoDB: Using Linux native AIO
141229 12:08:13 InnoDB: Initializing buffer pool, size = 128.0M
InnoDB: mmap(137363456 bytes) failed; errno 12
141229 12:08:13 InnoDB: Completed initialization of buffer pool
141229 12:08:13 InnoDB: Fatal error: cannot allocate memory for the buffer pool
141229 12:08:13 [ERROR] Plugin 'InnoDB' init function returned error.
141229 12:08:13 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
141229 12:08:14 [ERROR] Unknown/unsupported storage engine: InnoDB
141229 12:08:14 [ERROR] Aborting

141229 12:08:14 [Note] /usr/libexec/mysqld: Shutdown complete

141229 12:08:14 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 12:15:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 12:15:38 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 12:15:38 [Note] Plugin 'FEDERATED' is disabled.
141229 12:15:38 InnoDB: The InnoDB memory heap is disabled
141229 12:15:38 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 12:15:38 InnoDB: Compressed tables use zlib 1.2.3
141229 12:15:38 InnoDB: Using Linux native AIO
141229 12:15:38 InnoDB: Initializing buffer pool, size = 128.0M
141229 12:15:38 InnoDB: Completed initialization of buffer pool
141229 12:15:38 InnoDB: highest supported file format is Barracuda.
141229 12:15:38  InnoDB: Waiting for the background threads to start
141229 12:15:39 InnoDB: 5.5.41 started; log sequence number 1856298
141229 12:15:39 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 12:15:39 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141229 12:15:39 [Note] Server socket created on IP: '0.0.0.0'.
141229 12:15:39 [Note] Event Scheduler: Loaded 0 events
141229 12:15:39 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
141229 12:16:50 [Note] /usr/libexec/mysqld: Normal shutdown

141229 12:16:50 [Note] Event Scheduler: Purging the queue. 0 events
141229 12:16:50  InnoDB: Starting shutdown...
141229 12:16:51  InnoDB: Shutdown completed; log sequence number 1856298
141229 12:16:51 [Note] /usr/libexec/mysqld: Shutdown complete

141229 12:16:51 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 12:17:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 12:17:09 [Warning] option 'max_connections': unsigned value 20000000 adjusted to 100000
141229 12:17:10 [Note] Plugin 'FEDERATED' is disabled.
141229 12:17:10 InnoDB: The InnoDB memory heap is disabled
141229 12:17:10 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 12:17:10 InnoDB: Compressed tables use zlib 1.2.3
141229 12:17:10 InnoDB: Using Linux native AIO
141229 12:17:10 InnoDB: Initializing buffer pool, size = 128.0M
141229 12:17:10 InnoDB: Completed initialization of buffer pool
141229 12:17:10 InnoDB: highest supported file format is Barracuda.
141229 12:17:10  InnoDB: Waiting for the background threads to start
141229 12:17:11 InnoDB: 5.5.41 started; log sequence number 1856298
141229 12:17:11 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 12:17:11 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141229 12:17:11 [Note] Server socket created on IP: '0.0.0.0'.
141229 12:17:11 [Note] Event Scheduler: Loaded 0 events
141229 12:17:11 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
141229 12:23:11 [Note] /usr/libexec/mysqld: Normal shutdown

141229 12:23:11 [Note] Event Scheduler: Purging the queue. 0 events
141229 12:23:13  InnoDB: Starting shutdown...
141229 12:23:14  InnoDB: Shutdown completed; log sequence number 1856298
141229 12:23:14 [Note] /usr/libexec/mysqld: Shutdown complete

141229 12:23:14 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
141229 12:23:14 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141229 12:23:14 [Warning] option 'max_connections': unsigned value 1000000 adjusted to 100000
141229 12:23:14 [Note] Plugin 'FEDERATED' is disabled.
141229 12:23:14 InnoDB: The InnoDB memory heap is disabled
141229 12:23:14 InnoDB: Mutexes and rw_locks use GCC atomic builtins
141229 12:23:14 InnoDB: Compressed tables use zlib 1.2.3
141229 12:23:14 InnoDB: Using Linux native AIO
141229 12:23:14 InnoDB: Initializing buffer pool, size = 128.0M
141229 12:23:14 InnoDB: Completed initialization of buffer pool
141229 12:23:14 InnoDB: highest supported file format is Barracuda.
141229 12:23:14  InnoDB: Waiting for the background threads to start
141229 12:23:15 InnoDB: 5.5.41 started; log sequence number 1856298
141229 12:23:15 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
141229 12:23:15 [Note]   - '0.0.0.0' resolves to '0.0.0.0';
141229 12:23:15 [Note] Server socket created on IP: '0.0.0.0'.
141229 12:23:15 [Note] Event Scheduler: Loaded 0 events
141229 12:23:15 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.41'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi

ใช้ไปสักพัก มันฟ้องแบบนี้อีกคับ Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)  Tongue

max_connections ควรปรับเท่าไรดีคับ  


เดียวลองใส่ตามคุณ icez ดูอาการก่อนครับ  wanwan017
« แก้ไขครั้งสุดท้าย: 30 ธันวาคม 2014, 00:57:04 โดย 9mobile » บันทึกการเข้า
icez
Verified Seller
หัวหน้าแก๊งเสียว
*

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

กระทู้: 2,879



ดูรายละเอียด
« ตอบ #11 เมื่อ: 30 ธันวาคม 2014, 23:30:17 »

แรมแค่นั้น max conn ใส่แค่ร้อยเดียวพอครับ



ใส่ไปเยอะเวอร์ๆ เวลา connection ค้าง mysql มันกินแรมเพิ่มจนเครื่อง crash ได้นะครับ
บันทึกการเข้า

THZHost SSD Hosting ไทย/สิงคโปร์ พร้อม firewall ป้องกันการยิงเว็บ + scan ไวรัสในเว็บ
9mobile
Newbie
*

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

กระทู้: 90



ดูรายละเอียด
« ตอบ #12 เมื่อ: 31 ธันวาคม 2014, 12:19:06 »

แรมแค่นั้น max conn ใส่แค่ร้อยเดียวพอครับ



ใส่ไปเยอะเวอร์ๆ เวลา connection ค้าง mysql มันกินแรมเพิ่มจนเครื่อง crash ได้นะครับ

ครับผม ใส่ไป 200 ตอนนี้ยังไม่ down ทีคับ คาดว่าน่าจะหายแล้วครับ

ขอบคุณทุกท่านมากคับ  wanwan017
บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์