GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Anyone recommend a Mysql guru? (https://gfy.com/showthread.php?t=604465)

CS-Jay 05-01-2006 03:35 PM

Anyone recommend a Mysql guru?
 
I am in need of a highly recommended mysql guru, if you know anyone hook a brotha up!

thanks,
J

CS-Jay 05-01-2006 06:27 PM

bump-skis

E Guru 05-01-2006 06:30 PM

dang, im an e guru. sorry

bump for ya

Brujah 05-01-2006 06:40 PM

What do you need help with? configuration, or usage?

BlueWire 05-01-2006 06:45 PM

:smilie_we :smilie_we :smilie_we

www.bluewirestudio.com :thumbsup

CS-Jay 05-01-2006 06:53 PM

Quote:

Originally Posted by Brujah
What do you need help with? configuration, or usage?

I have all persistent connections off, I mean, at the php file level the php.ini level and yet I am getting like 120-200 sleeping processes.

And my over head is just huge, here's a sample:
Code:

last pid: 43788;  load averages: 22.36, 25.12, 28.76                                                        up 0+04:11:13  21:52:15
235 processes: 26 running, 208 sleeping, 1 zombie
CPU states:  0.0% user, 61.7% nice, 37.1% system,  1.2% interrupt,  0.0% idle
Mem: 93M Active, 37M Inact, 128M Wired, 112M Buf, 3379M Free
Swap: 4069M Total, 4069M Free

I am just not sure where it the super huge load is coming from. I don't have slow logs on yet. But the error logs says nothing. And I have caching on.

Babaganoosh 05-01-2006 07:03 PM

How do you know the load is from MySQL?

CS-Jay 05-01-2006 07:06 PM

mysql is the only thing running on this box.

Babaganoosh 05-01-2006 07:12 PM

Quote:

Originally Posted by CS-Jay
mysql is the only thing running on this box.

Ahh, that's a pretty good clue. :1orglaugh

CS-Jay 05-01-2006 07:17 PM

Quote:

Originally Posted by Babaganoosh
Ahh, that's a pretty good clue. :1orglaugh


:1orglaugh ohh man, that was a good one. I wish it was something else :Oh crap

RawAlex 05-01-2006 07:29 PM

Are the connection coming internally frm this box, or from a seperate box?

Alex

Babaganoosh 05-01-2006 07:34 PM

You can try

SHOW PROCESSLIST;

to see if there are any queries taking an unreasonably long time to execute. That's a decent place to start.

CS-Jay 05-01-2006 07:35 PM

Quote:

Originally Posted by RawAlex
Are the connection coming internally frm this box, or from a seperate box?

Alex

from an outside webserver.

CS-Jay 05-01-2006 07:36 PM

Quote:

Originally Posted by Babaganoosh
You can try

SHOW PROCESSLIST;

to see if there are any queries taking an unreasonably long time to execute. That's a decent place to start.

I am actually running mytop and I see some that are taking awhile. Put I'd really like to kill those sleeping processes.

Brujah 05-01-2006 07:37 PM

maybe lower the connection time to wait, damn.. what's that setting..

CS-Jay 05-01-2006 07:38 PM

and as I'm looking at mytop, I'm seeing the sleep threads ares sitting around for a long time.

Brujah 05-01-2006 07:39 PM

Here's a link.. this is what I'm talking about.
http://mysqldatabaseadministration.b...ing-guide.html

Decrease the value of connect_timeout: By default, the wait_timeout value is 28800. Unless you want MySQL to keep waiting for 28800 seconds (480 minutes or 8 hours), please decrease its value according to your application needs.

CS-Jay 05-01-2006 07:45 PM

Quote:

Originally Posted by Brujah
Here's a link.. this is what I'm talking about.
http://mysqldatabaseadministration.b...ing-guide.html

Decrease the value of connect_timeout: By default, the wait_timeout value is 28800. Unless you want MySQL to keep waiting for 28800 seconds (480 minutes or 8 hours), please decrease its value according to your application needs.

shit, running 4.2! I don't have some of those in my.cnf

CS-Jay 05-01-2006 07:48 PM

nevermind, I believe this will work on 4.1x

Brujah 05-01-2006 07:49 PM

Quote:

Originally Posted by CS-Jay
shit, running 4.2! I don't have some of those in my.cnf

Same theory, just need to find the 4.x settings that apply.. you may need to ADD them, to change the default settings.

Like.. find your my.cnf file and add these in the [mysqld] section.

set-variable = wait_timeout=60
set-variable = connect_timeout=10

Then restart mysql and see.

CS-Jay 05-01-2006 08:01 PM

Brujah, you da man! I dropped the wait timeout to 15, wait_timeout=15 and I dropped from 3xx processors to 80! And the load is dropping too.


All times are GMT -7. The time now is 06:56 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123