vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - datastore cache to XCache - boost your vBulletin (https://vborg.vbsupport.ru/showthread.php?t=141005)

Zia 08-05-2007 08:13 AM

afaik - xcache current version do not have any conflict with zend.

but why u need zend optimizer ? vbseo ?

st1905 08-07-2007 05:48 PM

Installed and working great, thank you.

Paul M 09-03-2007 11:46 PM

Quote:

Originally Posted by Loco.M (Post 1308746)
as I'm running Zend, I don't want to install xcache if it's going to crash the site.
any comment is greatly appreciated.

That's old news, the current version (1.2.1) works with zend.

We've been running xcache for a few months now without any issues.

Hoffi 09-07-2007 10:12 PM

Just installed. After some trouble with ZEND now all works fine.

Mecho 09-08-2007 01:42 PM

hi ,
i have a VPS account , xcache (1.2.1) Installed . do u suggest me to install this one too ??? (i'm newbie in these stuff)

thanks

BBF 09-15-2007 02:22 PM

works with 3.6.8?

phpxcache 09-16-2007 01:23 AM

yep, i just installed it for someone

Zia 09-16-2007 05:58 AM

Quote:

Originally Posted by Mecho (Post 1334834)
hi ,
i have a VPS account , xcache (1.2.1) Installed . do u suggest me to install this one too ??? (i'm newbie in these stuff)

thanks

:) this mod really helping out...
u can install this mod...with u vb

Mecho 09-16-2007 04:47 PM

OK Thank u for reply .. i'm going to try .

just would u plz tell me after install this i have to do something ? like run something or cleaning or ..............


thank u


EDIT > installed . i changed xcache size in php.ini ( /usr/local/lib/php.ini ) , Restarted Server and then i got this error in site :
Quote:

Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in /includes/class_datastore_xcache.php on line 85 and 124
any idea plz ?

Zia 09-20-2007 07:29 AM

Quote:

Originally Posted by Mecho (Post 1340254)
EDIT > installed . i changed xcache size in php.ini ( /usr/local/lib/php.ini ) , Restarted Server and then i got this error in site :
any idea plz ?

u need to change xcache.var.size to 4 (4MB) or whatever ur ram supported...
then restart ur server..

Mecho 09-20-2007 01:07 PM

still this error :

Quote:

Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in /includes/class_datastore_xcache.php on line 124

Unable to add cookies, header already sent.
File: /public_html/forum/includes/class_core.php
Line: 3116
any idea ?

here is my setting about Xcache in php.ini :

Quote:

; same as aboves but for variable cache
xcache.var_size = 4M
xcache.var_count = 1
xcache.var_slots = 8K
; default ttl
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300

xcache.test = Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path = "/dev/zero"


; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory = "/tmp/phpcore/"

; per request settings
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off

[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
xcache.coverager = Off

; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""

phpxcache 09-21-2007 06:05 AM

Quote:

Originally Posted by Mecho (Post 1343124)
still this error :
any idea ?
here is my setting about Xcache in php.ini :

try phpinfo() ?

Mecho 09-21-2007 09:10 AM

sorry but i dont get what u meant !

phpxcache 09-22-2007 07:36 AM

Quote:

Originally Posted by Mecho (Post 1343705)
sorry but i dont get what u meant !

why not try phpinfo() and show us what's there, just like you check your ini settings
to setup a phpinfo, see www.php.net/phpinfo example

Mecho 09-22-2007 02:26 PM

ah ok . got it >

phpinfo.php

phpxcache 09-23-2007 12:44 AM

how do you load xcache.so?
extension=xcache.so
OR
zend_extension=/path/to/xcache.so

try the other way

Hemanth 09-23-2007 03:09 PM

Installed and working smootly.. How can I check any performance improvements? :)

Btw. On first install it damaged the Zend installation.. After some investigation I simply reinstalled Zend and everything is smooth now.

Mecho 09-23-2007 07:36 PM

Quote:

Originally Posted by phpxcache (Post 1344907)
how do you load xcache.so?
extension=xcache.so
OR
zend_extension=/path/to/xcache.so

try the other way

it was Zend_extension ( correct path ) , i remarked it with ;; and them removed ;; from extension=xcache.so . server restarted . this errors showed up :
Quote:

Fatal error: XCache not installed in /includes/class_datastore_xcache.php on line 34
sry for this problem . i'm noob in these stuff .

Zia 10-06-2007 07:36 AM

Helo phpxcache..
can u say is there any way to use this varcache with particular Vb Module like Vbradio & Tv?

lazytown 10-08-2007 07:59 AM

Tried this out... Seemed to work great except some strange problems with vbjournal and photopost gallery (2.3 -- still problems with xcache datastore).

I had to disable it due to the plugin problems. If there was a guide on how to change plugins so they are compatible that might be helpful.

rwilkins108 10-09-2007 06:37 PM

Hmm, I got xCache 1.2.1 working, but for some reason the Clogs keep on going up and up, much faster than anything else, plus it is always compiling... Searching on line other people have had the same problem, but doesn't look like there is a solution. My setup win2003 - Apache v2.2.3 - php5.2.4


PHP Code:

        Slots    Size    Avail     %  Compiling  Hits  Misses  Clogs  OOMs  Protected  Cached  Deleted  GC 
php
#0  8.00 K  64.00 M  62.06 M         yes       0      10    5,111   0        no        9       0 

[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 64M
xcache.count = 1
xcache.slots = 8k
xcache.ttl = 0
xcache.gc_interval = 0

; same as aboves but for variable cache
xcache.var_size = 64M
xcache.var_count = 1
xcache.var_slots = 8K

xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300

xcache.test = Off
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"


hilfe-forum 10-12-2007 01:59 AM

Love it...
Board index Loading Time goes to 15 sec (before 22 sec)
THX for this hack!

lazytown 10-12-2007 06:21 AM

Is there any way to disable this for certain mods or modify them to work with the xcache datastore?

If the datastore won't work, is there still some benefit to the filestore? I noticed that works with all my mods and Xcache actually caches it as a php file.

-vissa

lazytown 10-12-2007 06:22 AM

Quote:

Originally Posted by hilfe-forum (Post 1357934)
Love it...
Board index Loading Time goes to 15 sec (before 22 sec)
THX for this hack!

Wow, but that's still a horrendously long load time!

hilfe-forum 10-12-2007 01:22 PM

Quote:

Originally Posted by vissa (Post 1358072)
Wow, but that's still a horrendously long load time!

Not realy
Its only a dual Xenon with 2 Gig RAM an 3 Medium Boards:

http://forum.hilfe-forum.eu/
http://www.hilfe-forum.eu/hilfe-forum/
http://musik.hilfe-forum.eu/

the biggest Board ( http://www.hilfe-forum.eu/hilfe-forum/ ) have a Million Post and ca. 80 Hacks...

So 15 sec loading Time is very god ;)

now i optimize the xcache seting now loading Time is 10 sec. ;)

Paul M 10-12-2007 04:29 PM

15 seconds is not very good, it's poor.

vb.org has over a million posts, so does Cable Forum - it either of them took that long to load up i'd be worried.

hilfe-forum 10-12-2007 04:38 PM

Quote:

Originally Posted by Paul M (Post 1358374)
15 seconds is not very good, it's poor.

vb.org has over a million posts, so does Cable Forum - it either of them took that long to load up i'd be worried.

But vb.org is 1 Board.
I have 3 Boards on 1 Dual Xenon with 2 Gig RAM
1. Board 900.000 Post 20 Hacks 600 Sub-Foren
2. Board 950.000 Post 80 Hacks 600-Sub Foren
3. Board 200.000 Post 1200 Sub-Foren (near 50.000 Post per Day per RSS Feed)

Thats not the same like vb.org
So i think for this is 15 sec. is very very good ;)

(sorry for my bad english)

But back to Topik...

lazytown 10-13-2007 04:50 AM

Are you talking 15 seconds as reported by vbMicroStats or some other method? I have 3 large VB forums (almost 3mil posts together) on 1 dual xeon and have load times of less than a second on the forum home. Plus the server runs about 10 other busy sites, an online learning center, some old UBB forums, etc.. Of course I do have 4GB and scsi raid 5. Still, your server/vb must not be optimized.

-vissa

hilfe-forum 10-13-2007 08:36 AM

vbMicroStats reported 1-8 sec...
But real loading Time (DSL 12000) = ~10 sec.
My Server has only one IDE HDD
Most Time need the Hacks and RSS-Feeds
Showtread have 132 queries...
Page generated in 1,25929 seconds with 132 queries [Server Loads: 3.20 2.87 : 3.52]

Can any mod Post 145-149 move to here:
https://vborg.vbsupport.ru/forumdisplay.php?f=197
THX

Deriel 10-13-2007 12:33 PM

132 queries? :eek: Way too much :confused: Showthread is 12 queries in my board

Anyway, this is a really good MOD =] Thanks and congratulations!

lauxanh 10-14-2007 10:12 PM

Can you give me alittle guide. I did the same thing as instruction but get error:

XCache variable data cache is not enabled, please set xcache.var_size in php.ini.....

my xcache.ini
Quote:

[xcache-common]
zend_extension = /usr/lib/20020429/xcache.so

; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off

[xcache.admin]
xcache.admin.user = "admin"
; paste the output of md5("password") below
xcache.admin.pass = ""

[xcache]
xcache.size = 32M
xcache.count = 2
xcache.slots = 8K


xcache.var_size = 32M
xcache.var_count = 2
xcache.var_slots = 8K

xcache.mmap_path = "/dev/zero"
xcache.cacher = On

CBrown 10-14-2007 11:20 PM

xcache.ini ??

If it is installed correctly, those fields should be found in your php.ini file. /etc/php.ini

Hence, what the error message is telling you to look into.

Not sure what else is going on with your setup unless you can give some more information. I've got xcache and this mod running on two dedicated servers now.

lauxanh 10-15-2007 07:53 PM

well, some how for my setup php4.4.7 when i include
those config to the php.ini it does not work. httpd wont start. The i make an xcache.ini in the extension_dir with all the config info. Xcache works.

But it does not work with Var-cache

Zia 10-18-2007 02:21 AM

lauxanh ..
there s/b something wrong at ur installation..

lauxanh 10-26-2007 01:51 AM

I have no i dea why.

I tried to move those config to php.ini but when ever i put it in then add:
$config['Datastore']['class'] = 'vB_Datastore_XCache';
to config.php
restart webserver.

I see blank page

see attachment

Zia 10-28-2007 07:00 AM

never had any problem around it..using it from the day it released....

booktoweb 11-10-2007 02:19 AM

i have this issue

Code:

Fatal error: Class vb_datastore_xcache: Cannot inherit from undefined class vb_datastore in /home/****/public_html/includes/class_datastore_xcache.php on line 14

wdwms 11-27-2007 10:38 PM

Does this mod work when you have more than one VB installation on a server? I've got two installs but the variables are clashing with each other if i enable the mod on both vb installs at the same time.. :(

Paul M 11-28-2007 12:05 AM

Yep, I think that two installations may possibly clash.

phpxcache 11-28-2007 01:40 AM

Quote:

Originally Posted by Wings900 (Post 1390659)
Does this mod work when you have more than one VB installation on a server? I've got two installs but the variables are clashing with each other if i enable the mod on both vb installs at the same time.. :(

this applies to apc too, if you wanna fix it, try
open class_core.php, look for:
$this->prefix =& $this->registry->config['Datastore']['prefix'];
and modify to:
$this->prefix = $this->registry->config['Datastore']['prefix'] . $_SERVER['SERVER_NAME']; // or HTTP_HOST


All times are GMT. The time now is 11:31 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01553 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete