logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: APC: Different cache entries per fcgi process
Author
rokka



Joined: 05 Apr 2007
Posts: 5

PostPosted: Sun 24 Aug '08 22:23    Post subject: APC: Different cache entries per fcgi process Reply with quote

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

PostPosted: Mon 25 Aug '08 0:11    Post subject: Reply with quote

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

PostPosted: Mon 25 Aug '08 11:29    Post subject: Reply with quote

>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

PostPosted: Mon 25 Aug '08 11:33    Post subject: Reply with quote

I know Steffen uses eaccelerator with runs fine with fcgid.
Back to top
rokka



Joined: 05 Apr 2007
Posts: 5

PostPosted: Mon 25 Aug '08 13:35    Post subject: Reply with quote

Ok, thanks.

I´ll try this too. I can post my expriences with this combination later on...
Back to top


Reply to topic   Topic: APC: Different cache entries per fcgi process View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules