what can this be ?

This is a discussion on what can this be ? within the MySQL Database forums, part of the Database Forums category; what can this be ? Warning: mysql_pconnect() [function.mysql-pconnect]: Too many connections in conn.php on line 28 Fatal error: ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2007
Hemanth
 
Posts: n/a
Default what can this be ?

what can this be ?
Warning: mysql_pconnect() [function.mysql-pconnect]: Too many
connections in conn.php on line 28

Fatal error: Too many connections in conn.php on line 28

and the other day my table had crashed

and i dont have flush rights
the server tech support at manashosting is pathetic

finally i did a repair table which solved the problem
and the data was intact

what could have caused these problems

i am freeying the recordset appropriately
so that cant be the problem

Reply With Quote
  #2 (permalink)  
Old 09-07-2007
Captain Paralytic
 
Posts: n/a
Default Re: what can this be ?

On 7 Sep, 12:34, Hemanth <mvhema...@gmail.com> wrote:
> what can this be ?
> Warning: mysql_pconnect() [function.mysql-pconnect]: Too many
> connections in conn.php on line 28
>
> Fatal error: Too many connections in conn.php on line 28
>
> and the other day my table had crashed
>
> and i dont have flush rights
> the server tech support at manashosting is pathetic
>
> finally i did a repair table which solved the problem
> and the data was intact
>
> what could have caused these problems
>
> i am freeying the recordset appropriately
> so that cant be the problem


Do you really have a need to use permanent connections?

Reply With Quote
  #3 (permalink)  
Old 09-07-2007
Captain Paralytic
 
Posts: n/a
Default Re: what can this be ?

By the way:

Do not multi-post. Cross-post if you must but don't multi post
It wastes people's time.
http://www.blakjak.demon.co.uk/mul_crss.htm

Reply With Quote
  #4 (permalink)  
Old 09-07-2007
Jerry Stuckle
 
Posts: n/a
Default Re: what can this be ?

Hemanth wrote:
> what can this be ?
> Warning: mysql_pconnect() [function.mysql-pconnect]: Too many
> connections in conn.php on line 28
>
> Fatal error: Too many connections in conn.php on line 28
>
> and the other day my table had crashed
>
> and i dont have flush rights
> the server tech support at manashosting is pathetic
>
> finally i did a repair table which solved the problem
> and the data was intact
>
> what could have caused these problems
>
> i am freeying the recordset appropriately
> so that cant be the problem
>


Why are you using pconnect()? Unless you're getting 100K hits/minute or
more, you'll be much better off with non-persistent connections.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #5 (permalink)  
Old 09-10-2007
Hemanth
 
Posts: n/a
Default Re: what can this be ?

>
> Why are you using pconnect()? Unless you're getting 100K hits/minute or
> more, you'll be much better off with non-persistent connections.
>



hi
does pconnect cause any problem if the traffic is not very high ?

Reply With Quote
  #6 (permalink)  
Old 09-10-2007
Geoff
 
Posts: n/a
Default Re: what can this be ?


"Hemanth" <mvhemanth@gmail.com> wrote in message
news:1189407137.390922.66050@19g2000hsx.googlegrou ps.com...
> >
>> Why are you using pconnect()? Unless you're getting 100K hits/minute or
>> more, you'll be much better off with non-persistent connections.
>>

>
>
> hi
> does pconnect cause any problem if the traffic is not very high ?
>

not that i know much
but every time you run the page it's adding another connection

try

SHOW PROCESSLIST

it should show 1 connection, they one you are using currently


Reply With Quote
  #7 (permalink)  
Old 09-10-2007
Hemanth
 
Posts: n/a
Default Re: what can this be ?

i thought normal connect created a connection every time its called
and pconnect only made a new connection if there wasnt an existing
connection...

am i mistaken here

Reply With Quote
  #8 (permalink)  
Old 09-10-2007
Jerry Stuckle
 
Posts: n/a
Default Re: what can this be ?

Hemanth wrote:
>> Why are you using pconnect()? Unless you're getting 100K hits/minute or
>> more, you'll be much better off with non-persistent connections.
>>

>
>
> hi
> does pconnect cause any problem if the traffic is not very high ?
>


You're wasting system resources, among other things. When using
persistent connections, you must always have the maximum number of
connections ever needed allocated. So if you peak at 100 simultaneous
connections even once in the next year, you need at least 100
connections allocated all the time.

Non-persistent connections just have whatever is needed at the time. If
you need 100 connections, you will have 100 connections. But if you
only need 1 connection, you'll only have one connection.

Unless you're doing hundreds of thousands of connections per minute, you
shouldn't be using persistent connections. You're wasting system resources.

You're trying to optimize something which isn't a problem. Such
"optimizations" almost always lead to trouble.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0