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)
-   -   mysql farking up, HELP (https://gfy.com/showthread.php?t=106526)

Va2k 02-10-2003 01:46 PM

mysql farking up, HELP
 
Warning: Too many connections in /home/sites/site10/web/ads/config.inc.php on line 155

Warning: MySQL Connection Failed: Too many connections in /home/sites/site10/web/ads/config.inc.php on line 155

Error
Unable to connect to database: Too many connections

anyone know how to fix this type of damn problem../.. Please help asap

TOM

Va2k 02-10-2003 01:54 PM

come on anyone know anything about mysql???

Libertine 02-10-2003 02:01 PM

Haha... I said this would happen a few months ago.

Va2k 02-10-2003 02:02 PM

Quote:

Originally posted by punkworld
Haha... I said this would happen a few months ago.
u said what?

Libertine 02-10-2003 02:02 PM

Now go and buy yourself a real trading script.

Libertine 02-10-2003 02:02 PM

Quote:

Originally posted by va2k

u said what?

You asked about CJUltra a few months ago. I said this would happen, you wouldn't believe me.

Va2k 02-10-2003 02:03 PM

Quote:

Originally posted by punkworld


You asked about CJUltra a few months ago. I said this would happen, you wouldn't believe me.

oh hehe this isnt cjultra though,

Va2k 02-10-2003 02:04 PM

Quote:

Originally posted by punkworld
Now go and buy yourself a real trading script.
THis isnt a trading script problem thisis a ad rotation script on tomswhores.com

Libertine 02-10-2003 02:06 PM

Quote:

Originally posted by va2k

oh hehe this isnt cjultra though,

Drat :)
I love it when an "I told you so" comes true, but no such luck I see.

Is this on a dedicated or virtual host?

Bad B0y 02-10-2003 02:08 PM

Maybe closing connections after use would fix the problem. Using mysql_close().

Also make sure that you're using non-persistent connections.

Va2k 02-10-2003 02:08 PM

Quote:

Originally posted by punkworld


Drat :)
I love it when an "I told you so" comes true, but no such luck I see.

Is this on a dedicated or virtual host?

dedicated, but ya could be half right cause my tgp site is getting slamed with traffic which inturns kills the mysql for the whole box isnt there away to uip the allowed connections?

TOM

Libertine 02-10-2003 02:09 PM

If you get the error "Too many connections" when you try to connect to MySQL, this means that there is already max_connections clients connected to the mysqld server.

If you need more connections than the default (100), then you should restart mysqld with a bigger value for the max_connections variable.

The maximum number of connects MySQL is depending on how good the thread library is on a given platform. Linux or Solaris should be able to support 500-1000 simultaneous connections, depending on how much RAM you have and what your clients are doing.

Libertine 02-10-2003 02:10 PM

Quote:

Originally posted by Bad B0y
Maybe closing connections after use would fix the problem. Using mysql_close().

If the script is half-decent, it should be that way already.

Va2k 02-10-2003 02:12 PM

http://www.databasejournal.com/featu...0897_1402311_4

One of the primary errors when the system gets busy is Too many connections. It's generally no problem to increase the number. You can see how close you're running to max by comparing max_connections with the extended-status variable threads_connected. If you regularly come close, the time for some improvements is drawing near.

One improvement you can make on a code level is to use persistent connections rather than ordinary connections (e.g. using pconnect() rather than connect() in PHP), In this case, you may have a scenario with something like:

max_connections - 200
threads_connected - 155
threads_running - 1

where would I put the macconections etc?? my server has 512 megs of ram getting ready to buy a 3rd server if canidid ever writes me back,

Libertine 02-10-2003 02:13 PM

http://www.dwam.net/docs/mysqle3.23/...arameters.html

Brujah 02-10-2003 02:24 PM

If you're doing a lot of traffic like that you might consider a server dedicated just to running mysql, which will greatly ease up the load on your regular server.

Libertine 02-10-2003 02:25 PM

Quote:

Originally posted by Brujah
If you're doing a lot of traffic like that you might consider a server dedicated just to running mysql, which will greatly ease up the load on your regular server.
That's a good idea indeed, although I would also recommend having as few high-traffic apps as possible using mysql.

Va2k 02-10-2003 02:32 PM

Quote:

Originally posted by Brujah
If you're doing a lot of traffic like that you might consider a server dedicated just to running mysql, which will greatly ease up the load on your regular server.
so I can have mysql on one server and use it on another server ? :uhoh

Jeffery 02-10-2003 02:34 PM

In my experience, if you are actually topping out the default max connections on mysql, you are either using a poorly programmed script that isn't closing the connections properly, the hard drive is filled up, or you have overloaded the server. These are the most common causes for this problem.

Usually 100 connections for an ad program is plenty. As long as your load is low, the mysql daemon answers the request fast enough that a large amount of connections never builds up.

There is also the possibility that your hard drive is full, causing mysql to hang, check that.

Check your server load, log in and type:
w
The last 3 numbers at the end: above 1.00 is bad, time to get more servers or look for another script.

Check your disk space:
df
100% is bad


Get in touch with your host first, they can usually tell you where to begin troubleshooting.

Libertine 02-10-2003 02:34 PM

Quote:

Originally posted by va2k

so I can have mysql on one server and use it on another server ? :uhoh

Yes.

Brujah 02-10-2003 02:34 PM

Quote:

Originally posted by va2k

so I can have mysql on one server and use it on another server ? :uhoh

Yes, I have a mysql server and thats all it does. The load isn't too high on it, and it made a big difference removing that burden and bottleneck from my other servers.

Va2k 02-10-2003 02:35 PM

Quote:

Originally posted by va2k

so I can have mysql on one server and use it on another server ? :uhoh

this is for today on my tgp stie # of hits to /13255 8.27%
# of visits to / 9736 65.23% I can't beleive that would crash mysql farking bats hell

Babaganoosh 02-10-2003 02:35 PM

It wouldn't be phpads or phpadsnew by any chance would it? If so, the problem is the script. Switch to adcycle or oasis and the problem should fix itself.

Va2k 02-10-2003 02:38 PM

Quote:

Originally posted by XXXstorage Jeff
In my experience, if you are actually topping out the default max connections on mysql, you are either using a poorly programmed script that isn't closing the connections properly, the hard drive is filled up, or you have overloaded the server. These are the most common causes for this problem.

Usually 100 connections for an ad program is plenty. As long as your load is low, the mysql daemon answers the request fast enough that a large amount of connections never builds up.

There is also the possibility that your hard drive is full, causing mysql to hang, check that.

Check your server load, log in and type:
w
The last 3 numbers at the end: above 1.00 is bad, time to get more servers or look for another script.

Check your disk space:
df
100% is bad


Get in touch with your host first, they can usually tell you where to begin troubleshooting.

No the disk isnt near full, I have about 690k in traffic to the server it self not just to that site so that could be the probem I have 4 trade scripts running, plus this ad script damn, Guess im going to have tofig out how to do mysql from one server to another eh? Thanks for ya help peeps

TOM

Jeffery 02-10-2003 02:41 PM

Try using C trade scripts instead of php+mysql.

UCJ is the best premium script: http://www.adultwebmasterinfo.com

Try me for free C script: http://www.awgtrade.com

No mysql usage at all.

Brujah 02-10-2003 02:44 PM

Quote:

Originally posted by Armed & Hammered
It wouldn't be phpads or phpadsnew by any chance would it? If so, the problem is the script. Switch to adcycle or oasis and the problem should fix itself.
No way. phpAdsNew is a great script.
I'm pretty sure in his case it's just the mixture of a less powerful cpu, and a lot of mysql. The server load will get bottlenecked and you have all those processes waiting and adding to the load quickly after that.

Babaganoosh 02-10-2003 02:52 PM

Quote:

Originally posted by Brujah


No way. phpAdsNew is a great script.
I'm pretty sure in his case it's just the mixture of a less powerful cpu, and a lot of mysql. The server load will get bottlenecked and you have all those processes waiting and adding to the load quickly after that.

It's not a great script. It's a pig. I watched it bring a well-built and configured server to its knees with less than 250K banner impressions a day. I replaced it with Adcycle (using the daemon) and haven't had a problem since. This isn't the first time I have seen problems with phpadsnew either. The other incident, phpadsnew was replaced with oasis and the problem ended there.

http://oasis.sourceforge.net
http://www.adcycle.com

A nice admin does not make a good script. I will admit if a nice admin DID make a good script, this would be one of the best.


All times are GMT -7. The time now is 03:11 AM.

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