PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Tue May 08, 2007 6:00 pm Reply with quote Back to top

Hello guys,

I just got the below note from my new host and wanted to see if anything could be done in Nuke to change this. Has anybody heard this before? Can anything be done?

Quote:
System administration has noted that your account appears to be using persistent connections in some of the software used on your site. Persistent connections are by and large not necessary for most software to function, and they can cause issues with your account.

To explain a bit further, persistent connections are one method PHP scripts may use to open a connection to a MySql database. Using persistent connecting is only useful in an environment with a high overhead in connecting to the MySql database itself - in your case the connection (and 'cost' in resources) is negligible compared to using persistent connections as all of your queries are executed immediately.

The persistent connections in this case are simply sitting idle consuming memory and may bring your site close to the predefined limits set for accounts in the shared hosting environment. If you have a database intensive site, this could make the site appear sluggish or appear to be down while the initial queries time out (this can take up to 300 seconds, depending on several factors).

You will need to review your code and see where these persistent connections are coming from, as spikes in traffic could cause your site to appear to be unavailable to your visitors.


Any ideas or opinions? Running Nuke 7.6.
View user's profile Send private message Visit poster's website
persona_non_grata



Joined:
Posts: 0

PostPosted: Tue May 08, 2007 6:09 pm Reply with quote Back to top

..huh...they can check that..
why dont they ?
in some cases it can help but but it does take up extra resources...
maybe thats what they dont like.
View user's profile Send private message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Tue May 08, 2007 6:57 pm Reply with quote Back to top

That's why I wanted to post and find out more. If this is the case, then wouldn't changing a few lines of connection code make Nuke run more efficient?
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue May 08, 2007 7:15 pm Reply with quote Back to top

Nuke does not use persistent connections. See db/db.php. It is passing in false for the persistent flag to the sql_db constructor. This causes Nuke to call mysql_connect() (non-persistent connect) instead of the persistent mysql_pconnect() call.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Tue May 08, 2007 7:18 pm Reply with quote Back to top

And even for the legacy $dbi variable it is using the non-persistent connect call.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15227
Location: Kansas

PostPosted: Tue May 08, 2007 7:25 pm Reply with quote Back to top

Many hosts, including Raven Web Hosting, disable the persistent connections so it matters not what the application does.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Tue May 08, 2007 7:32 pm Reply with quote Back to top

Hmmm ok. Thanks everybody. I asked them for a sample query or something where I can determine what in the software is causing it.
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun May 13, 2007 10:58 am Reply with quote Back to top

I was just looking at NukeTreasury and noticed it was calling mysql_pconnect(). Are you running that module?

I have version 1.0 and this is in the ipnppd.php file that is used for IPN callbacks.
View user's profile Send private message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Sun May 13, 2007 11:27 am Reply with quote Back to top

Nope, not running that. The only big things that aren't standard Nuke is the Gallery module and that abandoned Amazon module from PrecioGasolina.com.

Thanks anyway. Smile
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Sun May 13, 2007 12:34 pm Reply with quote Back to top

You can always do a find/grep and look for mysql_pconnect(). Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum