Страница 1 из 1

FreeBSD 10 eAccelerator

Добавлено: 2014-05-14 9:33:53
bagas
Добрый день.
Возникла проблема с eAccelerator на системе Freebsd 10

Код: Выделить всё

FreeBSD 10.0-RELEASE-p2 amd64

Код: Выделить всё

# php -v
PHP 5.3.28 with Suhosin-Patch (cli) (built: May 13 2014 15:02:12)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
    with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator

Код: Выделить всё

# php -m
[PHP Modules]
Core
ctype
date
dom
eAccelerator
ereg
ffmpeg
filter
gd
hash
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqlnd
pcre
posix
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
zlib

[Zend Modules]
eAccelerator

Код: Выделить всё

Server version: Apache/2.2.27 (FreeBSD)
Server built:   May 13 2014 15:01:41
Ошибка такая.

Код: Выделить всё

[Tue May 13 21:36:45 2014] [notice] Apache/2.2.27 (FreeBSD) configured -- resuming normal operations
[Tue May 13 23:00:00 2014] [notice] Graceful restart requested, doing restart
eAccelerator: Could not allocate 130023424 bytes, the maximum size the kernel allows is 4194304 bytes. Lower the amount of memory request or increase the limit in /proc/sys/kernel/shmmax.
PHP Warning:  [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error:  Unable to start eAccelerator module in Unknown on line 0
[Wed May 14 08:35:11 2014] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Перезагружаю апач все работает, но некоторое время, после опять падает.
Нету такой системной переменной.

Код: Выделить всё

# sysctl -w kernel.shmmax
sysctl: unknown oid 'kernel.shmmax': No such file or directory
Как быть в этом случае?

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-05-14 13:54:49
FreeBSP

Код: Выделить всё

root@web:/usr/ports/net/openldap24-server # sysctl -a | grep shm
kern.ipc.shmmax: 536870912
kern.ipc.shmmin: 1
kern.ipc.shmmni: 192
kern.ipc.shmseg: 128
kern.ipc.shmall: 131072
kern.ipc.shm_use_phys: 0
kern.ipc.shm_allow_removed: 0
kern.features.sysv_shm: 1
kern.features.posix_shm: 1

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-05-14 14:07:53
bagas

Код: Выделить всё

# sysctl -a | grep shm
kern.ipc.shmmax: 134217728
kern.ipc.shmmin: 1
kern.ipc.shmmni: 192
kern.ipc.shmseg: 128
kern.ipc.shmall: 32768
kern.ipc.shm_use_phys: 0
kern.ipc.shm_allow_removed: 0
kern.features.sysv_shm: 1
kern.features.posix_shm: 1
Хмм, всеранво я устанвоил 89мегабайт кэш, а системная переменная занимает все 135мегабайт.
Почему он тогда падает?

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-05-14 14:37:53
FreeBSP
поставь гиг, авось заработает
там же не только дна твоя переменная может жить

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-05-14 14:53:43
bagas
FreeBSP писал(а):поставь гиг, авось заработает
там же не только дна твоя переменная может жить
Чуть увеличу.
Спасибо.

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-09-24 16:11:02
bagas
Опять начелась лихорорадка у апача.
Апач падает примерно после того как newsyslog начинает архивировать лог апача.

Код: Выделить всё

Sep 24 16:03:18 DE_pipe newsyslog[563]: logfile first created
[Wed Sep 24 16:03:23 2014] [notice] Apache/2.2.29 (FreeBSD) configured -- resuming normal operations
[Wed Sep 24 17:00:00 2014] [notice] Graceful restart requested, doing restart
eAccelerator: Could not allocate 88080384 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory request or increase the limit in /proc/sys/kernel/shmmax.
PHP Warning:  [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error:  Unable to start eAccelerator module in Unknown on line 0

Код: Выделить всё

extension="eaccelerator.so"
eaccelerator.shm_size="84"
;eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.cache_dir="/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.debug="0"
eaccelerator.log_file = "/var/log/eaccelerator_log"
eaccelerator.check_mtime="1"
eaccelerator.filter=""
eaccelerator.shm_max="0"
;eaccelerator.shm_ttl="1800"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="1"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

Код: Выделить всё

# php -m
[PHP Modules]
Core
ctype
curl
date
dom
eAccelerator
ereg
ffmpeg
filter
gd
hash
json
libxml
mbstring
mcrypt
memcache
mhash
mysql
mysqli
mysqlnd
pcre
posix
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
zlib

[Zend Modules]
eAccelerator

Код: Выделить всё

# sysctl -a | grep shm
kern.ipc.shmmax: 994217728
kern.ipc.shmmin: 1
kern.ipc.shmmni: 192
kern.ipc.shmseg: 128
kern.ipc.shmall: 32768
kern.ipc.shm_use_phys: 0
kern.ipc.shm_allow_removed: 0
kern.features.sysv_shm: 1
kern.features.posix_shm: 1

Код: Выделить всё

# apachectl -v
Server version: Apache/2.2.29 (FreeBSD)
Server built:   Sep 23 2014 19:30:24

Код: Выделить всё

# php -v
PHP 5.3.29 with Suhosin-Patch (cli) (built: Sep 23 2014 21:10:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies

Re: FreeBSD 10 eAccelerator

Добавлено: 2014-09-24 16:14:32
bagas
Это случилось после обновления сотфа на сервер, до этого все нормально работало.
акселиратор персобирал, удалял не помогает.
# make showconfig

Код: Выделить всё

===> The following configuration options are available for eaccelerator-0.9.7:
     DOCCOMM=off: Retain doc-comments in internal php structures
     DOCS=off: Build and/or install documentation
     EXAMPLES=on: Build and/or install examples
===> Use 'make config' to modify these settings