Помогите настроить веб сервер

12 3
MW
На сайте с 07.09.2011
Offline
55
1107

Здравствуйте!

Помогите,пожалуйста,настроить сервер,установил тут одну cms(сразу скажу null(flynax)-для потестить)на моем сервере она работает нестабильно,т.е при добавлении объявления-долго происходит запись(или хз как это назвать) занимает около 3 минут,пробовал на хостинге от r01-там все норм. Стоит ubuntu lamp,конфиги дефолтные,на этом же серевере стоит опенкарт с несколько сотней товаров и все летатет. Не знаю,какую еще информацию приложить,если кто-то все же найдет время помочь,предоставлю инфо какую скажете...

DV
На сайте с 01.05.2010
Offline
644
#1

Что top показывает? Вывод ошибок в браузер настроили?

VDS хостинг ( http://clck.ru/0u97l ) Нет нерешаемых задач ( https://searchengines.guru/ru/forum/806725 ) | Перенос сайтов на Drupal 7 с любых CMS. ( https://searchengines.guru/ru/forum/531842/page6#comment_10504844 )
MW
На сайте с 07.09.2011
Offline
55
#2
DenisVS:
Что top показывает? Вывод ошибок в браузер настроили?

 1144 root      20   0  157m  53m  19m S    8  1.4   6:19.69 Xorg               

4136 user 20 0 1434m 486m 49m S 8 12.6 6:21.05 firefox
2770 user 20 0 1203m 129m 56m S 5 3.4 2:25.17 compiz
5355 user 20 0 575m 18m 12m S 4 0.5 0:01.37 gnome-terminal
5560 user 20 0 435m 42m 25m S 1 1.1 0:04.10 plugin-containe
4576 root 20 0 0 0 0 S 0 0.0 0:00.59 kworker/0:0
6557 user 20 0 17340 1388 980 R 0 0.0 0:00.02 top
1 root 20 0 24564 2388 1352 S 0 0.1 0:01.04 init
2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0 0.0 0:00.10 ksoftirqd/0
6 root RT 0 0 0 0 S 0 0.0 0:00.15 migration/0
7 root RT 0 0 0 0 S 0 0.0 0:00.02 watchdog/0
8 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/1
9 root 20 0 0 0 0 S 0 0.0 0:00.01 kworker/1:0
10 root 20 0 0 0 0 S 0 0.0 0:00.18 ksoftirqd/1
12 root RT 0 0 0 0 S 0 0.0 0:00.05 watchdog/1
13 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/2

ошибки в броузер отключены,если нужно,выложу логи,да,в phpmyadmin некоторые переменные выделены красным...

DV
На сайте с 01.05.2010
Offline
644
#3

У вас в топе сервера не видно. Выше данные тоже важны, может там запор полный при загрузке.

У меня на слабом процессоре firefox порой сжирал весь процессор, и апач впадал в коматоз.

MW
На сайте с 07.09.2011
Offline
55
#4
DenisVS:
У вас в топе сервера не видно. Выше данные тоже важны, может там запор полный при загрузке.
У меня на слабом процессоре firefox порой сжирал весь процессор, и апач впадал в коматоз.

в момент добавлении объявления,когда она добавляется 3 минут(я в этом не силен,хз как заставить видеть сервер...):

в этот момент зависания в phpmyadmin.в процессах показывает sleep...

DV
На сайте с 01.05.2010
Offline
644
#5

Попробуйте акслератор поставить какой-нибудь.

MW
На сайте с 07.09.2011
Offline
55
#6
DenisVS:
Попробуйте акслератор поставить какой-нибудь.

сайт пустой,бд пустая,ну не может же быть проблема в сервере(4 ядра,4гб) похоже проблемы в настройках,токо как бы выявить причину?(

K
На сайте с 07.03.2011
Offline
172
#7

Ставьте сайты на сервер без иксов, лис и прочих гимпов, тогда и проблем меньше будет.

Услуги: Сервер i7 за 66 евро! (http://blackhost.ru/dedicated-servers), VPS SSD от 6 евро (http://blackhost.ru/vps) Гарантированные канал 1 Gbps за 337 евро (https://blackhost.ru/dedicated-servers#addons). Защита от DDoS-атак. Blackhost.ru - Наша тема (/ru/forum/892885)
A
На сайте с 18.05.2008
Offline
207
#8

Есть вариант, что возможно БД тупит при записи.

Попробуйте поковырять my.cnf (Увеличить лимиты всякие.)

max_allowed_packet увеличить до 1-2мб и т д

LineHost.Org - Хостинг и VPS в Москве | VPS в США (http://linehost.org/) WebNicks.Com - Дешевая Регистрация Доменов Онлайн (http://webnicks.com/)
DV
На сайте с 01.05.2010
Offline
644
#9
MilkeyWay:
сайт пустой,бд пустая,ну не может же быть проблема в сервере(4 ядра,4гб)

Ошибаетесь. Однажды забыл xCache воткнуть и долго думал, почему все ссылки Сапы были в еррор при минимальной загрузке.

MW
На сайте с 07.09.2011
Offline
55
#10
addurl:
Есть вариант, что возможно БД тупит при записи.
Попробуйте поковырять my.cnf (Увеличить лимиты всякие.)
max_allowed_packet увеличить до 1-2мб и т д

и так больше стоит

#

# 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.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# 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]
default-storage-engine = MyISAM
#
# * 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
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# 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_size = 32M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 400
sort_buffer_size = 1M
read_buffer_size = 4M
read_rnd_buffer_size = 2M
net_buffer_length = 20K
# 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 = 128
skip-innodb
skip-networking
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 2M
query_cache_size = 32M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# 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
#
# * InnoDB
#
#innodb_buffer_pool_size = 500M
#innodb_flush_method = O_DIRECT
#innodb_log_buffer_size = 10M
#innodb_log_file_size = 64M
#innodb_additional_mem_pool_size = 8M
#innodb_flush_log_at_trx_commit = 1


# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * 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

#
# * 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/
12 3

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий