My initial (homepage) loads very slowly for a new user. But once the page is loaded, the rest of the website loads fast. I don't have this problem with a website that doesn't utilize xcache? I think xcache is not working properly? Even with a new website that I just built: My phpinfo is here: Old website: http://www.thedomz.com/phpinfo.php or New website: http://www.ipadment.com I have a dedicated server (i7 920, 8 gigs). Here are my xcache XCache XCache Support enabled Version 1.3.0 Modules Built cacher Readonly Protection N/A Cache Init Time 2010-01-30 02:03:30 Cache Instance Id 26155 Opcode Cache enabled, 79,691,776 bytes, 8 split(s), with 8192 slots each Variable Cache enabled, 268,435,456 bytes, 1 split(s), with 8192 slots each Shared Memory Schemes mmap Directive Local Value Master Value xcache.admin.enable_auth On On xcache.cacher On On xcache.coredump_directory no value no value xcache.count 8 8 xcache.gc_interval 0 0 xcache.mmap_path /dev/zero /dev/zero xcache.readonly_protection no value no value xcache.shm_scheme mmap mmap xcache.size 76M 76M xcache.slots 8K 8K xcache.stat On On xcache.test no value no value xcache.ttl 0 0 xcache.var_count 1 1 xcache.var_gc_interval 300 300 xcache.var_maxttl 0 0 xcache.var_size 256M 256M xcache.var_slots 8K 8K xcache.var_ttl 0 0 php -v output: PHP 5.2.6 (cli) (built: May 26 2009 22:33:42) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with XCache v1.3.0, Copyright (c) 2005-2009, by mOo with the ionCube PHP Loader v3.3.1, Copyright (c) 2002-2009, by ionCube Ltd. here is my php.ini info: [xcache] ; ini only settings, all the values here is default unless explained ; select low level shm/allocator scheme implemenation xcache.shm_scheme = "mmap" ; to disable: xcache.size=0 ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows xcache.size = 256M ; set to cpu count (cat /proc/cpuinfo |grep -c processor) xcache.count = 8 ; just a hash hints, you can always store count(items) > slots xcache.slots = 8K ; ttl of the cache item, 0=forever xcache.ttl = 0 ; interval of gc scanning expired items, 0=no scan, other values is in seconds xcache.gc_interval = 0 ; same as aboves but for variable cache xcache.var_size = 256M xcache.var_count = 8 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 = "" ; per request settings xcache.cacher = On xcache.stat = On xcache.optimizer = On [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 = ""
I would suggest you turn on gzip to make the transfer smaller. Are both on the sites listed on the same server? The page took about 3 second to load when I first visited it (the second link).
did a ping on the site, bout 100ms response. thats not too bad,.also are you running Drupal or somthing? Ive used Drupal and pages would load just as slow as your's
Hello Go to google webmaster tools. Add your site their. Then you can find which code of website it taking time to load. They by doing some modification you can minimize the load time. Do not use excessive flash in any website. Keep javascript in one folder css in other folder and include it in the page. Validate your website by W3C validation service for html and CSS Thanks
Monitor microtime during script execution and you'll know more. Possible problems: external firewall settings, iptables settings, database, DNS not working properly, htaccess configured wrongly, ... And that's why I prefer coding myself instead of using software created by someone else.