Re: [nyphp-talk] Using APC to improve performance.

2009-07-19 Thread Konstantin Rozinov
apc_compile_file() seems to only work if you run it via the webserver. If you try to run it via the command line, it will fail. In other words, I have a script that apc_compile_file() a file that changes often. Calling that script from the command line fails to update the cached version. Calling

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Eddie Drapkin
On Fri, Jul 17, 2009 at 6:21 PM, Ajai Khattri wrote: > On Fri, 17 Jul 2009, Eddie Drapkin wrote: > >> No problem, took me a while to figure out why that function existed a > few weeks back ;) > > How does APC compare to eaccelerator? > > > -- > Aj. > > __

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Ajai Khattri
On Fri, 17 Jul 2009, Eddie Drapkin wrote: > No problem, took me a while to figure out why that function existed a few weeks back ;) How does APC compare to eaccelerator? -- Aj. ___ New York PHP User Group Community Talk Mailing List http://lists.nyp

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Eddie Drapkin
No problem, took me a while to figure out why that function existed a few weeks back ;) On Fri, Jul 17, 2009 at 3:37 PM, Konstantin Rozinov wrote: > Ah yes!  I should've been more careful reading the documentation. > > Thanks for the tip! > > Konstantin > > On Fri, Jul 17, 2009 at 2:23 PM, Eddie D

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Konstantin Rozinov
Ah yes! I should've been more careful reading the documentation. Thanks for the tip! Konstantin On Fri, Jul 17, 2009 at 2:23 PM, Eddie Drapkin wrote: > On Fri, Jul 17, 2009 at 1:47 PM, Konstantin Rozinov wrote: >> Hey guys, >> >> Just a follow-up question about APC. >> >> In production, I have

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Eddie Drapkin
On Fri, Jul 17, 2009 at 1:47 PM, Konstantin Rozinov wrote: > Hey guys, > > Just a follow-up question about APC. > > In production, I have apc.stat set to 0, so files aren't stat()ed > everytime they're accessed for improved performance. > Is it possible to have APC just re-stat() a single configura

Re: [nyphp-talk] Using APC to improve performance.

2009-07-17 Thread Konstantin Rozinov
Hey guys, Just a follow-up question about APC. In production, I have apc.stat set to 0, so files aren't stat()ed everytime they're accessed for improved performance. Is it possible to have APC just re-stat() a single configuration file if I made some changes to it (without setting apc.stat to 0

Re: [nyphp-talk] Using APC to improve performance.

2009-03-31 Thread Konstantin Rozinov
In one of the slides, it says Facebook uses around 640,000 user objects/variables to and from their APC cache. Anyone have any ideas why so many variables? With over 200 million users I would think 640k would be too few if the objects pertained to individual users... Konstantin On 3/31/09, Kon

Re: [nyphp-talk] Using APC to improve performance.

2009-03-31 Thread Jesse Callaway
On Tue, Mar 31, 2009 at 3:02 AM, Konstantin Rozinov wrote: > Thanks for the tips Che and Tom.  I will try the debugging tools to > see where the bottlenecks are.  I've got apc.stat set to 0, but the > largest # of includes in the application is only about 8 in some > files, so I wouldn't expect it

Re: [nyphp-talk] Using APC to improve performance.

2009-03-31 Thread Konstantin Rozinov
Thanks for the tips Che and Tom. I will try the debugging tools to see where the bottlenecks are. I've got apc.stat set to 0, but the largest # of includes in the application is only about 8 in some files, so I wouldn't expect it to make that much of difference, but every little bit counts :) I

Re: [nyphp-talk] Using APC to improve performance.

2009-03-30 Thread Tom Melendez
> 4. Any links to really good APC howtos or tutorials would be greatly > appreciated! > Not at all what you asked, but If you're using absolute paths in your require/include files and you turn this off you should see gains: http://us.php.net/manual/en/apc.configuration.php#ini.apc.stat In s

Re: [nyphp-talk] Using APC to improve performance.

2009-03-30 Thread Che Hodgins
Hi Konstantin, On Mon, Mar 30, 2009 at 8:03 PM, Konstantin Rozinov wrote: > > Hi folks, > > I recently installed APC (http://pecl.php.net/package/APC) to see how > it works.  Currently, I'm just using the opcode (file) caching and > already the response time is about 4x faster.  No code changes w

[nyphp-talk] Using APC to improve performance.

2009-03-30 Thread Konstantin Rozinov
Hi folks, I recently installed APC (http://pecl.php.net/package/APC) to see how it works. Currently, I'm just using the opcode (file) caching and already the response time is about 4x faster. No code changes were required and it was as easy as just enabling APC in php.ini. Now I'm interested in