Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-10-2003, 01:46 PM   #1
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 01:54 PM   #2
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
come on anyone know anything about mysql???
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:01 PM   #3
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Haha... I said this would happen a few months ago.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:02 PM   #4
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
Quote:
Originally posted by punkworld
Haha... I said this would happen a few months ago.
u said what?
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:02 PM   #5
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Now go and buy yourself a real trading script.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:02 PM   #6
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:03 PM   #7
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:04 PM   #8
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:06 PM   #9
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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?
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:08 PM   #10
Bad B0y
Confirmed User
 
Join Date: Aug 2002
Posts: 160
Maybe closing connections after use would fix the problem. Using mysql_close().

Also make sure that you're using non-persistent connections.
Bad B0y is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:08 PM   #11
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:09 PM   #12
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:10 PM   #13
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:12 PM   #14
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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,
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:13 PM   #15
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
http://www.dwam.net/docs/mysqle3.23/...arameters.html
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:24 PM   #16
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:25 PM   #17
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
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.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:32 PM   #18
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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 ?
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:34 PM   #19
Jeffery
Confirmed User
 
Join Date: Nov 2002
Location: Awgtrade
Posts: 485
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.
__________________
icq: 20427689
AWGTrade - Free C-coded traffic management system
Jeffery is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:34 PM   #20
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Quote:
Originally posted by va2k

so I can have mysql on one server and use it on another server ?
Yes.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:34 PM   #21
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally posted by va2k

so I can have mysql on one server and use it on another server ?
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:35 PM   #22
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
Quote:
Originally posted by va2k

so I can have mysql on one server and use it on another server ?
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
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:35 PM   #23
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
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.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:38 PM   #24
Va2k
I知 still alive barley.
 
Va2k's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Va
Posts: 10,060
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
__________________
Va2k is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:41 PM   #25
Jeffery
Confirmed User
 
Join Date: Nov 2002
Location: Awgtrade
Posts: 485
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.
__________________
icq: 20427689
AWGTrade - Free C-coded traffic management system
Jeffery is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:44 PM   #26
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-10-2003, 02:52 PM   #27
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
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.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright ゥ 2000- Jelsoft Enterprises Limited.