Originally posted by Curious Too
Have you tried turning persistent connections off in the php.ini?
cPanel.net Support Ticket Number:
I have a script that i in the background and reports excessive mysql conections based on the user or site that is opening them. Yesterday i saw this all day.
Sat Aug 2 14:41:23 PDT 2003
2:41pm up 5 days, 1:11, 1 user, load average: 0.95, 0.66, 0.48
147 processes: 144 sleeping, 3 running, 0 zombie, 0 stopped
Mem: 1031244K av, 867624K used, 163620K free, 0K shrd, 77552K buff
Swap: 1024120K av, 64012K used, 960108K free 521024K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
31093 nobody 15 0 1088 1084 816 R 5.5 0.1 0:00 top
30412 nobody 15 0 17976 17M 17240 R 0.0 1.7 0:00 httpd
Http processes currently running = 37
Mysql processes currently running = 137 <===== HERE
Netstat information summary
4 LAST_ACK
15 TIME_WAIT
40 LISTEN
41 ESTABLISHED
This morning it was the same old thing, 137. Then i turned persistent_connection to off but im not sure that this is the answer. After turning it off i see
Http processes currently running = 44
Mysql processes currently running = 13
Which is about right.
Ever since we upgraded to Apache 1.3.28 the number of open mysql connections have sky rocketed. This is not normal.
wait_timout, interactive_timout are set very low yet these connections are not dropping. Either this is a mysql bug or a cpanel issue. All i can say is that this is not happening on our 1.3.27 boxes.
cPanel.net Support Ticket Number: