apc

Python - telnet - automation APC PDU

喜夏-厌秋 提交于 2019-12-19 11:34:21
问题 I am attempting to automation turning off connected devices to an APC PDU using python's built in telnet functionality. I believe I am able to enter in the username and password, but I cannot proceed after that. My code is as follows: telnet_session = telnetlib.Telnet(host=self.apc_ip) self.logger.info("Entering APC Username") telnet_session.read_until("User Name :") telnet_session.write(self.apc_username + "\n") self.logger.info("Entering APC Password") telnet_session.read_until("Password :"

Key groups with APC cache

你说的曾经没有我的故事 提交于 2019-12-18 17:08:13
问题 APC lets you store data inside keys, but you cannot group these keys. So if i want to have a group called "articles", and inside this group I would have keys that take the form of the article ID I can't do this easily. articles -> 5 -> cached data -> 10 -> cached data -> 17 -> cached data ... I could prefix the key with the "group" name like: article_5 -> cached data article_10 -> cached data article_17 -> cached data ... But this it makes it impossible to delete the entire group if I want to

How to make APC (PHP Cache) work?

半腔热情 提交于 2019-12-18 11:09:59
问题 I've read about APC that it speeds up multiple php file sites. So I have this particular project in PHP with many files and i discover that require_once and parsing only class definitions (without executing them) takes most time. So I've installed APC on my CentOS 5 server. I moved apc.php to my webserver and it displays Hits: 1 (50.0%) Misses: 1 (50.0%) Cached Files 1 (281.1 KBytes) And I can go to website and change subpages and so on, and apc.php still shows only one cached file ?? And in

PHP with APC: Fatal errors: Cannot redeclare class

寵の児 提交于 2019-12-18 10:46:09
问题 Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx xxx changes from time to time. I could disable APC but APC improves the performance great! Is there a known bug or could I do something else to prevent these errors? I'm using Ubuntu 8.04 LTS with PHP 5.2.4. Edit/Update (from comments): I use the Zend Framework Autoloader and these error never occurred before I enabled APC. A few moments ago I get for example that error: Fatal error: require():

APC -> APCu / OPCache, performance poor

喜夏-厌秋 提交于 2019-12-18 10:24:12
问题 I have an m3.xlarge EC2 instance that I updated to PHP 5.5.11 today. With this update, it overwrote php55-pecl-apc with php55-pecl-apcu . After reading and experimenting, my understanding is that APC has been replaced with OPCache , except for a key value store which can be brought back with APCu . After tweaking my config to something that looks reasonable, using Wordpress while logged in is now terribly slow, at least 300-900ms worse (the front end is cached via varnish, and works perfect..

How do I upgrade APC on Zend Community Server (needed for Symfony2)?

白昼怎懂夜的黑 提交于 2019-12-18 04:12:28
问题 I am running latest Zend Community Server and want to learn Symfony2 but the config.php gives me an error that my APC (alternative php cache) is deprecated and I have to upgrade it. I'm running OS X Lion and already found the zend folder in: /usr/local/zend/ I also downloaded the source package (3.1.9 stable) from http://pecl.php.net but have no idea how to compile it or where to put it. 回答1: Ok, so I probably found best solution - Zend Server has build-in Zend Optimizer+, which is ~1.8 times

How do I upgrade APC on Zend Community Server (needed for Symfony2)?

﹥>﹥吖頭↗ 提交于 2019-12-18 04:12:07
问题 I am running latest Zend Community Server and want to learn Symfony2 but the config.php gives me an error that my APC (alternative php cache) is deprecated and I have to upgrade it. I'm running OS X Lion and already found the zend folder in: /usr/local/zend/ I also downloaded the source package (3.1.9 stable) from http://pecl.php.net but have no idea how to compile it or where to put it. 回答1: Ok, so I probably found best solution - Zend Server has build-in Zend Optimizer+, which is ~1.8 times

Opcode (APC/XCache), Zend, Doctrine, and Autoloaders

喜欢而已 提交于 2019-12-18 03:39:27
问题 I am trying to use either APC or XCache as an opcode to cache my php pages. I am using it with Zend and Doctrine and it's having a problem with the autoloader. If I try with APC, I get the following: Fatal error: spl_autoload() [<a href='function.spl-autoload'>function.spl-autoload</a>]: Class Doctrine_Event could not be loaded in C:\\[mydir]\\library\\doctrine\\Doctrine\\Record.php on line 777 If I try with XCache I get the following: PHP Fatal error: Cannot redeclare class Zend_Registry in

How to share APC cache between several PHP processes when running under FastCGI?

假装没事ソ 提交于 2019-12-17 21:52:44
问题 I'm currently running several copies of PHP/FastCGI, with APC enabled (under Apache+mod_fastcgi, if that matters). Can I share cache between the processes? How can I check if it's shared already? (I think the apc.mmap_file_mask ini setting might be involved, but I don't know how to use it.) (One of the reasons I think its not shared at the moment is that the apc.mmap_file_mask , as reported by the apc.php web interface flips between about 3 different values as I reload.) 回答1: APC does not

How to clear APC cache entries?

倾然丶 夕夏残阳落幕 提交于 2019-12-17 02:52:30
问题 I need to clear all APC cache entries when I deploy a new version of the site. APC.php has a button for clearing all opcode caches, but I don't see buttons for clearing all User Entries, or all System Entries, or all Per-Directory Entries. Is it possible to clear all cache entries via the command-line, or some other way? 回答1: You can use the PHP function apc_clear_cache . Calling apc_clear_cache() will clear the system cache and calling apc_clear_cache('user') will clear the user cache. 回答2: