Author |
|
rokka
Joined: 05 Apr 2007 Posts: 5
|
Posted: Sun 24 Aug '08 22:23 Post subject: APC: Different cache entries per fcgi process |
|
|
Hi,
we are running the following configuration on a high load webserver:
Apache2.2.4
PHP 5.2.6
APC 3.0.17-dev
But it seems that apc uses different caches for every php process.
When I store a value in the user cache it isn´t available on the next page access. After some page refreshes (F5) you probably get the cache entry.
Another strange thing is the output of the apc.php. You get a different results on every page refresh.
We didn´t get this behavior during the development. Maybe because there was only one php process.
Does anyone have an idea how to get this working.
Maybe other opcode caches don´t have this problem.
Thanks for your help
Andre |
|
Back to top |
|
Brian White
Joined: 24 Aug 2008 Posts: 21
|
Posted: Mon 25 Aug '08 0:11 Post subject: |
|
|
Every fast-cgi process has its own independent cache. So, what you are seeing is "expected". Can you use mod_php? Or just a single fcgi process? Do you have a back end database that you can use? I know that this would not be preferred but I don't think that any of the opcode caches use a shared memory pool. |
|
Back to top |
|
rokka
Joined: 05 Apr 2007 Posts: 5
|
Posted: Mon 25 Aug '08 11:29 Post subject: |
|
|
>Every fast-cgi process has its own independent cache. So, what you are seeing is "expected".
Ok, but this makes the combination fcgi + apc nearly useless.
>Can you use mod_php?
I switch to fcgi because I had got the same problem as described in post http://www.apachelounge.com/viewtopic.php?t=1472&highlight=memory |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 25 Aug '08 11:33 Post subject: |
|
|
I know Steffen uses eaccelerator with runs fine with fcgid. |
|
Back to top |
|
rokka
Joined: 05 Apr 2007 Posts: 5
|
Posted: Mon 25 Aug '08 13:35 Post subject: |
|
|
Ok, thanks.
I´ll try this too. I can post my expriences with this combination later on... |
|
Back to top |
|