Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 10-24-2010, 11:57 AM
Poker Face Poker Face is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default caching plugin?

I am being told by my hosting provider:
  • The Max concurrent users is 15.

  • It's concurrent users and that is for database connections. If you use a caching plugin for your program, then you can have more people connected.

  • You would want to find a caching plugin for vbulletin.

What is a caching plugin and where can I find instructions here, for adding one?

--------------- Added [DATE]1287925344[/DATE] at [TIME]1287925344[/TIME] ---------------

I received 200 Database Errors, in a one minute stretch, on putting out one tweet to a new post, here is one example:

PHP Code:
Database error in vBulletin :

mysqli_real_connect() [<a href='function.mysqli-real-connect'>function.mysqli-real-connect</a>]: (42000/1203): User ptwheelr already has more than 'max_user_connections' active connections /home5/ptwheelr/public_html/brownave/forums/includes/class_core.php on line 1265

MySQL Error   

Error Number  
Request Date  SaturdayOctober 23rd 2010 04:59:58 PM
Error Date    
SaturdayOctober 23rd 2010 04:59:59 PM
Script        
http://www.brownave.com/forums/showthread.php?351-Skin-cancer-check-ups&amp;amp;amp;amp;&amp;amp;amp;&amp;amp;&amp;&
Referrer      
IP Address    211.43.152.49
Username      

Classname     vB_Database_MySQLi
MySQL Version 

--------------- Added [DATE]1287925741[/DATE] at [TIME]1287925741[/TIME] ---------------

PHP Code:
Operating system Linux 
Architecture x86_64 
MySQL version 5.1.47
-community-log 
cPanel Build 46156 
Apache version 2.2.16 
Kernel version 2.6.28
-10.48.intel.E1000E.BHsmp 
PHP version 5.2.14 
Reply With Quote
  #2  
Old 10-26-2010, 02:56 AM
Poker Face Poker Face is offline
 
Join Date: Sep 2010
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the config.php file, is this mark-up language setting the maximum users?

PHP Code:
// ****** DATASTORE CACHE CONFIGURATION *****
    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
    // vB_Datastore_APC - to use APC
    // vB_Datastore_XCache - to use XCache
    // vB_Datastore_Memcached - to use a Memcache server, more configuration below
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

    // ******** DATASTORE PREFIX ******
    // If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
    // than one set of forums installed on your host, you *may* need to use a prefix
    // so that they do not try to use the same variable within the cache.
    // This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

    // It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.1';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/ 

$config['Misc']['memcacheretry_interval'][$i] = 15;
Reply With Quote
  #3  
Old 10-26-2010, 01:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A Caching Plugin? Can you ask them to be more specific? I don't know that I have ever heard of one.

I have heard of that error. That is a server issue and you would need to contact your hosting provider and request them to increase the value for your mysql setting: max_allowed_packet. However, it sounds like they aren't will to do this for you.

You can see more about the error in the manual here - http://www.vbulletin.com/docs/html/t...t_mysql_errors

There is this article - perhaps this is what your host is thinking of - Work Around: Error SQL server exceeded max questions
Reply With Quote
  #4  
Old 10-26-2010, 05:30 PM
MoMan MoMan is offline
 
Join Date: Oct 2005
Location: USA
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's a pretty low limit- you should see if your host would be willing to increase it.

The article Lynne linked above seems like a good temporary workaround.

You can use memcached to cache stuff in vBulletin so that queries are reduced. You should also look into the vBOptimise mod, which cuts 2.5 global queries per pageload.

If you use plugins on your forum such as latest x threads on forum home, social group notifications, moderated thread notifications, or cyb's advanced new posts, using memcached like I describe here would likely be beneficial: https://vborg.vbsupport.ru/showthrea...hreadid=248543 For instance, if you were to apply thar to Cyb's advanced new posts, you'd essentially be executing one query per x (anywhere from 60-450 is reasonable) seconds per user instead of one query per pageload on your forum. On my forum, that saves about 60,000 queries per day
Reply With Quote
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04170 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete