Jump to content

Any APC experts?

Featured Replies

Posted


# cat /etc/php5/conf.d/apc.ini

extension=apc.so

apc.shm_size=256

apc.num_files_hint=10000

apc.user_entries_hint=10000

apc.max_file_size=5M

apc.ttl=7200

apc.user_ttl=7200

apc.shm_segments=3

apc.shm_size=256



Good/bad?

You want a judgment based on 6 minutes of sample data?

  • Author
post-154454-0-45388500-1326253601_thumb.

Though, imo minimum of 24hr data is required to be called sufficient... but 99.8% hit is pretty good.

  • Author

:)

post-154454-0-44403500-1326530909_thumb.

How do you get the APC stats? My host installed APC a couple of days ago. I have no idea where to view the stats.

Thanks
3DKiwi

  • Author

http://fplanque.com/dev/linux/install-apc-php-cache-debian-lenny


APC comes with a control panel script, that allows you to check cache usage. Here’s how to make it available on your web root (for example):


Code: gunzip /usr/share/doc/php-apc/apc.php.gz ln -s /usr/share/doc/php-apc/apc.php /var/www/apc.php


Thanks

3DKiwi

looks purrrrfect. ^^

Looks like you haven't configured IP.Board to use APC as a cache. If you had, user variables would not be empty.

conf_global.php includes:

$INFO['use_apc'] = '0';



APC:

post-97893-0-98691600-1326769131_thumb.p


Looks like you haven't configured IP.Board to use APC as a cache. If you had, user variables would not be empty.



conf_global.php includes:

$INFO['use_apc'] = '0';



APC:

post-97893-0-98691600-1326769131_thumb.p


I'm guessing he setup apc + memcache or similar combo. Quite a few ppl seem to be doing that.
  • Author

Looks like you haven't configured IP.Board to use APC as a cache.



It doesnt make board any faster for me.

If you had, user variables would not be empty.


It doesnt get that high as yours, wonder why?


conf_global.php includes: [code]$INFO['use_apc'] = '0';




Should it be No, APC is only one
 $INFO['use_apc'] = '1'; ?

I'm guessing he setup apc + memcache or similar combo. Quite a few ppl seem to be doing that.




> It doesnt get that high as yours, wonder why?
Because his forum is more popular than yours. Mine gets around 4~5k/second during peak.

> It doesnt make board any faster for me.
It should...

> Should it be Yes, it should be 1. > No, APC is only one Then you should try letting IPB talk to apc directly. It will be faster as it'll cache lot of stuff so that it doesn't need to make the same requests over and over. But caches are more useful to some than others. It depends on your traffic profile. For something like mine, if I take off memcache (ie user cache), my server wouldn't be able to support that many people.

 $INFO['use_apc'] = '1'; ?




> Should it be

 $INFO['use_apc'] = '1';[/code]

? Yes, it should be 1.





Sorry, Invision Support made that change while hunting down a problem with Nexus and I didn't catch it before posting.

dumb question.
what are we talking about? :) :)

is ACP a sort of cache program ?

Yes, ACP caches PHP opcodes.

thank you.

  • Author

Looks like you haven't configured IP.Board to use APC as a cache. If you had, user variables would not be empty.


post-154454-0-58717200-1326833541_thumb.

You should keep an eye on apc since you're now using user cache. Make sure your ram does not get 100% full. It has a history of going complete crash once the ram gets full... It also has a history of problems with encrypted code like nexus. My sys admin suggests that xcache is lot more stable than apc. Though performance wise, apc, ea, and xcache are pretty much all dead same relative to no-cache.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.