Просто точка не прокатывает. Копирую базу в эксель делаю там нужную замену используя * - все работает. Тоже самое в нотепеде но вместо звездочки точка - нифига не меняет. Галочка регулярки стоит
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
4758:~# php -m
bcmath
bz2
calendar
ctype
curl
date
dba
dom
eAccelerator
exif
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mime_magic
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
posix
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
eAccelerator
4758:~# Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extentphp -m
10240
4758:~# php -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
# /etc/security/limits.conf # #Each line describes a limit for a user in the form: # #<domain> <type> <item> <value> # #Where: #<domain> can be: # - an user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #<type> can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits # #<item> can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open files # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit (KB) # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to values: [-20, 19] # - rtprio - max realtime priority # - chroot - change root to directory (Debian-specific) # #<domain> <type> <item> <value> #
#* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #ftp - chroot /ftp #@student - maxlogins 4
Просто точка не прокатывает. Копирую базу в эксель делаю там нужную замену используя * - все работает. Тоже самое в нотепеде но вместо звездочки точка - нифига не меняет. Галочка регулярки стоит
В этой менять пытаюсь NotePad++
Скорее всего не используете.
Добавьте или раскоментируйте строку skip-innodb в /etc/my.cnf
Потом перезапустите mysql.
Спасибо - памяти меньше расходоваться стало... как раз мегов на 100 где-то
Dram добавил 25.08.2010 в 15:50
Dram, и? как исправить ошибку?
Вы о чем? ...........
Нет у меня такого файла
Dram добавил 25.08.2010 в 15:39
/etc/mysql вот он где :)
Ок с лимитами закончили. Меня больше заинтересовало вот что
можно отрубить InnoDB если не используете, освободит еще 100 метров.
Как понять использую я это, нужно оно мне и как его выключить если что? :)
ТС, покажите
uname -r
ulimit -s
php -v
php -m
Если не используете , отрубите InnoDB.
Покажите полные конфиги. По вырезкам тяжело что либо советовать конкретно.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
4758:~# htop
4758:~# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting .
4758:~# htop
4758:~# uname -r
2.6.18-194.3.1.el5.028stab069.6
4758:~# ulimit -s
10240
4758:~# php -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
4758:~# php -m
limits.conf что-то все закоментировано
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
# - chroot - change root to directory (Debian-specific)
#
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#ftp - chroot /ftp
#@student - maxlogins 4
# End of file
А нет такой переменной, что бы прописать - типа мемори лимит 800мб?
Ребят - я уже начинаю пугаться. Это я не умею задавать вопросы или Вы читать/слушать?
Можно ли выставить лимит на потребление памяти или нет?
ее и настраивал специалист (на фрилансе нашел) - у меня по сути один вопрос - как выставить ограничения для памяти?