wait_timeout versus interactive_timeout
Wed, 12/01/2010 - 10:25 — sandip"wait_timeout" is the amount of seconds during inactivity that MySQL will wait before it will close a connection on a non-interactive connection.
"interactive_timeout" is the same, but for interactive mysql shell sessions.
Setting a value too low may cause connections to drop unexpectedly, specifically if you are using persistent connections. Setting a value too high may cause stale connections to remain open, preventing new access to the database.
For wait_timeout, this value should be set as low as possible without affecting availability and performance.
For interactive_timeout, changing this value won't really increase or decrease performance of your application.
- sandip's blog
- Login or register to post comments
mysql if using too much CPU of my VPS.
Wed, 05/06/2009 - 10:49 — jonitasCan anybody help me?
Basically my app is for an email marketing, so using a while statement its reads from a db (mysam) and make updates
Thank in advance!!
This is the info about my VPS (when typing )
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Mem: 1206272 kB
OS: CentOS release 5.3 (Final)
Mysql: 5.0.45-log
This is my my.cnf:
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
###The MySQL server
[mysqld]
set-variable=local-infile=0