Да....без толку. Сайт на Joomla 1.0.15
Изменил: ошибки не пропали
Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching in /var/www/dram/data/www/сайт.ru/components/com_qcache/backends/xcache.php on line 18 Warning: xcache_get() [function.xcache-get]: xcache.var_size is either 0 or too small to enable var data caching in /var/www/dram/data/www/сайт.ru/components/com_qcache/backends/xcache.php on line 10 Warning: xcache_unset() [function.xcache-unset]: xcache.var_size is either 0 or too small to enable var data caching in /var/www/dram/data/www/сайт.ru/components/com_qcache/backends/xcache.php on line 23
Вот мой ини
# configuration for php Xcache module [xcache-common] ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" zend_extension = /usr/lib/php5/20060613+lfs/xcache.so [xcache.admin] xcache.admin.enable_auth = On # Configure this to use admin pages ; xcache.admin.user = "mOo" ; xcache.admin.pass = md5($your_password) ; xcache.admin.pass = "" [xcache] ; ini only settings, all the values here is default unless explained ; select low level shm/allocator scheme implemenation xcache.shm_scheme = "mmap" ; to disable: xcache.size=0 ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows xcache.size = 16M ; set to cpu count (cat /proc/cpuinfo |grep -c processor) xcache.count = 1 ; just a hash hints, you can always store count(items) > slots xcache.slots = 8K ; ttl of the cache item, 0=forever xcache.ttl = 0 ; interval of gc scanning expired items, 0=no scan, other values is in seconds xcache.gc_interval = 0 ; same as aboves but for variable cache xcache.var_size = 64M xcache.var_count = 1 xcache.var_slots = 8K ; default ttl xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.test = On ; N/A for /dev/zero xcache.readonly_protection = Off ; for *nix, xcache.mmap_path is a file path, not directory. ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection ; 2 group of php won't share the same /tmp/xcache ; for win32, xcache.mmap_path=anonymous map name, not file path xcache.mmap_path = "/dev/zero" ; leave it blank(disabled) or "/tmp/phpcore/" ; make sure it's writable by php (without checking open_basedir) xcache.coredump_directory = "" ; per request settings xcache.cacher = On xcache.stat = On xcache.optimizer = Off [xcache.coverager] ; per request settings ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance) xcache.coverager = Off ; ini only settings ; make sure it's readable (care open_basedir) by coverage viewer script ; requires xcache.coverager=On xcache.coveragedump_directory = ""
А вот xcache.php на который ругаются ошибки
<?php /** **/ // Check to ensure this file is within the rest of the framework defined('_VALID_MOS') or die(); class qcache_backend extends qcache_main { function fetch($id) { return xcache_get($id); } function test() { return (function_exists('xcache_set')); } function store($id, $data) { return xcache_set($id, $data, QCACHE_TTL); } function _delete($id) { return xcache_unset($id); } function _isset($id) { return xcache_isset($id); } }
В файле /joomla/cache/storage/xcache.php xcache.var_size нет. А где еще поискать и сколько там поставить?
Спасибо за советы, установил xcache, включил его в админке джумлы - в итоге куча ошибок
Warning: xcache_isset() [<a href='function.xcache-isset'>function.xcache-isset</a>]: xcache.var_size is either 0 or too small to enable var data caching in /var/www/dram/data/www/сайт..com/libraries/joomla/cache/storage/xcache.php on line 56
Warning: xcache_set() [<a href='function.xcache-set'>function.xcache-set</a>]: xcache.var_size is either 0 or too small to enable var data caching in /var/www/dram/data/www/сайт.com/libraries/joomla/cache/storage/xcache.php</b> on line76
А для простых смертных? Можно подробнее, я просто не шарю в этом особо...
# # The MySQL database server configuration file. # # You can copy this to one of: # - "/etc/mysql/my.cnf" to set global options, # - "~/.my.cnf" to set user-specific options. # # One can use all long options that the program supports. # Run program with --help to get a list of available options and with # --print-defaults to see which it would actually understand and use. # # For explanations see # http://dev.mysql.com/doc/mysql/en/server-system-variables.html # This will be passed to all mysql clients # It has been reported that passwords should be enclosed with ticks/quotes # escpecially if they contain "#" chars... # Remember to edit /etc/mysql/debian.cnf when changing the socket location. [server] init-connect="SET NAMES cp1251" [client] port = 3306 socket = /var/run/mysqld/mysqld.sock default-character-set = cp1251 # Here is entries for some specific programs # The following values assume you have at least 32M ram # This was formally known as [safe_mysqld]. Both versions are currently parsed. [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] # # * Basic Settings # user = mysql pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp language = /usr/share/mysql/english skip-external-locking # local-infile=0 default-character-set = cp1251 character-set-server = cp1251 collation-server = cp1251_general_ci init-connect = "SET NAMES cp1251" skip-character-set-client-handshake # Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. # bind-address = 127.0.0.1 # # * Fine Tuning # key_buffer = 16M max_allowed_packet = 16M thread_stack = 128K thread_cache_size = 8 # This replaces the startup script and checks MyISAM tables if needed # the first time they are touched myisam-recover = BACKUP #max_connections = 100 table_cache = 512 #thread_concurrency = 10 tmp_table_size = 64M max_heap_table_size = 64M # # * Query Cache Configuration # query_cache_limit = 1M query_cache_size = 16M # # * Logging and Replication # # Both location gets rotated by the cronjob. # Be aware that this log type is a performance killer. #log = /var/log/mysql/mysql.log # # Error logging goes to syslog. This is a Debian improvement :) # # Here you can see queries with especially long duration #log_slow_queries = /var/log/mysql/mysql-slow.log #long_query_time = 2 #log-queries-not-using-indexes # # The following can be used as easy to replay backup logs or for replication. # note: if you are setting up a replication slave, see README.Debian about # other settings you may need to change. #server-id = 1 #log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 100M #binlog_do_db = include_database_name #binlog_ignore_db = include_database_name # # * BerkeleyDB # # Using BerkeleyDB is now discouraged as its support will cease in 5.1.12. skip-bdb # # * InnoDB # # InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/. # Read the manual for more InnoDB related options. There are many! # You might want to disable InnoDB to shrink the mysqld process by circa 100MB. skip-innodb # # * Security Features # # Read the manual, too, if you want chroot! # chroot = /var/lib/mysql/ # # For generating SSL certificates I recommend the OpenSSL GUI "tinyca". # # ssl-ca=/etc/mysql/cacert.pem # ssl-cert=/etc/mysql/server-cert.pem # ssl-key=/etc/mysql/server-key.pem [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] #no-auto-rehash # faster start of mysql but no tab completition [isamchk] key_buffer = 16M # # * NDB Cluster # # See /usr/share/doc/mysql-server-*/README.Debian for more information. # # The following configuration is read by the NDB Data Nodes (ndbd processes) # not from the NDB Management Nodes (ndb_mgmd processes). # # [MYSQL_CLUSTER] # ndb-connectstring=127.0.0.1 # # * IMPORTANT: Additional settings that can override those from this file! # The files must end with '.cnf', otherwise they'll be ignored. # !includedir /etc/mysql/conf.d/ [mysql] no-auto-rehash default-character-set = cp1251
Нашел в инете статейку как включить своп, начал делать, почему swapon /SWAP
операция не позволяется?
эээ.... Вы о чем?🤪 Если это поможет как ее начать пользовать? :)
Dram добавил 27.08.2010 в 13:11
Вот что сервер ответил...если это поможет:
4758:~# swapon -s
Filename Type Size Used Priority
4758:~#
Уже посоветовали вчера - отключил. Тогда сервер вообще падал. Это чуть помогло. Но все равно мне кажется расход большой. При пике нагрузки, когда он лайн висит человек 250 - памяти жрет метров 700-900, и пару раз в неделю сервак падает
Dram добавил 27.08.2010 в 12:51
Ну вот опять память скаканула до 100% и сервер упал :(
А шоб я знал..... И судя по всему они память и жрут, так как на один такой процесс тратится по 3% от всей памяти
Dram добавил 27.08.2010 в 12:05
В админку не пускает - но сайт работает и довольно шустрее чем раньше
Dram добавил 27.08.2010 в 12:06
Вот что нашел по ошибке
Только не могу понять как и где нужно это прописать? В пхп ини или в конфиге апача?