apc

PHP APC problem on Mac XAMPP development server

I have just set up PHP APC module on a Mac running OSX 10.6 using XAMPP. After a lot of fiddling around I thought I have it working but now when I load a URL the first site that is loaded is the site that displays for every site hosted on the server. These are the steps I followed to get it installed: cd /tmp wget http://pecl.php.ne...

Session problems when APC is turned on

We have a problem with PHP session when APC is enabled on our server. The app works great without APC. However, since we enabled APC, the sessions seems to be getting mixed up when the server experiences heavy load, i.e. users are randomly logging on as another. Everything reverts back to normal once we disabled APC. We can't seem to fi...

Optimize APC Caching

Hello, here is a link to how my APC is running : http://www.animefushigi.com/apc.php As you can see, it fills up pretty quickly and my Cache Full Count goes over 1000 sometimes My website uses Wordpress. I notice that every time I make a new post or edit a post, 2 things happen. 1) APC Memory "USED" resets 2) I get a whole lot of Fr...

Is it advisable to use the latest PHP 5.3 compatible APC beta in a production environment?

It's been over a year since APC's last stable build. Has anyone got the latest APC beta running with PHP 5.3 on a high traffic production server? Thanks ...

PHP performance: accelerators and HTTP servers

First, which is the fastest accelerator: XCache or APC? And should I have nginx, lighttpd, Apache or Apache with nginx as a reverse proxy for static contents. What's better? Thank you. ...

How to run multiple PHP sites using same APC cache?

Ok, the situation is I have multiple php sites all running on the same server using the same CMS. There is no change in the core code or modules for the CMS between sites so would like to have all sites use the same code repository to make it easier to keep all the sites running the same version. This part is easy enough to do using sym...

Tuning APC to use less RAM

I have a virtual private server that only allows me to use 128MB of RAM. I recently installed APC for PHP and it consumes more than 128MB. My provider wants me to upgrade my account if I don't get that number down. Is there a config option that I can use to set a maximum on APC? ...

Difference between Memcache, APC, XCache and other alternatives I've not heard of....

Hi there. At work, we've recently started designing an application to me "large scale" (we're engineering for the potential to serve up many millions of hits a day). One of the senior devs and the sysadmin have set up memcache on the server. As I understand it, Memcache will hold query results and certain tables in memory for X am...

mod_fcgi + APC + Shared Memory

One of my sites is growing and I'm having scalability issues. My knowledge with this new software is rather small, my hosting company doesn't have a clue either. Shared Memory is not working since variables are not cached between requests, is there a way to make this work? At the moment the script is relying on Memcached but there is th...

PHP Apc causing kernel panic

Hey Guys, We are running APC as an opcode level cache , and have been getting kernel panic's (Shared memory segment related). I thought that anything running in the user space (PHP , APC , Apache) could not cause a kernel panic. I have managed to replicate this issue on different hardware and environments. My questions are 1, Why woul...

What the php caches that suport tagging?

I need a cache system for PHP that suport tags. It's will be used caching a lot of queries results, from many users, and every time I will need to clear some user cache, or some module cache... I thinked, and conclude that tagging are the best way to do that. Like ('messages_unread_user_300','messages','user_300','unread') it easy to ...

How to share APC cache between apache and php_cli?

I've readed in some blogs that apache and php_cli don't share APC data because are running in different processes... But, I need use the same data cached in Apache (user in browser) and cron processes (php_cli). How to do it? I've tried to access some keys from php_cli and it really can't get it. Some idea? ...

PHP APC failing in unit tests

We use the APC user cache in our application, but I've started noticing various problems in our unit tests specifically related to the APC tests. It seems that eventually APC starts failing to store and retrieve results; while most of the tests continue to run correctly (as they just rebuild data if it's not recovered from the cache) ...

Where is the default max locked memory value coming from?

So on one system, I have values that are pretty wide open: $ ulimit -a | grep mem max locked memory (kbytes, -l) 40000 max memory size (kbytes, -m) unlimited virtual memory (kbytes, -v) unlimited Another system has much more limiting values, but I can't for the life of me find out where the 32MB upper limit (it ...

APC + Multi-Site Install of Single Application

I have a dedicated server currently hosting more than a dozen sites running the same application. The application is installed once on the server outside of all sites' document root, and each document root has symlinks to this central install. By the nature of the application, there is nearly 25M of common files included for every reque...

Does smarty works fine when APC is installed ?

Hi everybody. I'm developing my website using Php and Smarty. Now , i'd like to caching the bytecode of the php script using APC, but i'm worry that APC will cache also the complied smarty's templates, loosing the possible dynamic content. Is it possible? Tanks ...

Are APC and ionCube fully compatible?

I've spent the better part of an hour looking for a definitive answer to this question. A script I need to use requires the IonCube loader be enabled and I've grown quite fond of APC. Should I expect any problems if both are enabled on the same server? ...

APC cache fragmentation problem

I'm running APC (php cache) on a medium website (13 000 visits a day) on a CentOS server 5 running php 5.3.3 with APC 3.1.4 with 4Gb of RAM. In the last weeks I'm experiencing many "unable to allocate memory for pool" errors in logs, and often the site goes down. I think the problem is in APC. From the stats I see that the cache is full...

apc.filter in APC

I'm trying to use such function as apc.filtes in APC.But all, that i have done, didnt work There are 2 task that I should done. 1)Need to include 1 catalog for caching.My code in apc.ini apc.cache by default Off apc.filter = "+/path1/.*" Such option doesnt work.It's still caching 2)Need to exlude 3 catalogs on the server that should...

APC: opcode cache vs. user cache - set separate limits

Hey, I am trying to move from the typical combination of APC (for opcode) and Memcache (for my userdata) to a purely apc based cache. Given my usage structure it makes sense and performance is higher. But unlike before, where the apc cache was limited to a reasonable size and did not affect my data cache, I am now worried that the op...