Current time: 11-24-2024, 05:23 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Проблема с RAM
Author Message
dewnet Offline
Junior Member
*

Posts: 26
Joined: Nov 2010
Reputation: 0
Post: #1
Проблема с RAM
Проблема с RAM у меня один 1гиг озу буквально пол дня сервер работает и зависает что делать я апач уже закалебался оптимизировать .
ОС DEBIAN LENNY
12-09-2010 06:26 AM
Find all posts by this user Quote this message in a reply
beliy Offline
Junior Member
*

Posts: 125
Joined: Oct 2010
Reputation: 0
Post: #2
RE: Проблема с RAM
Сколько RAM занято? Какие характеристики сервера? Какая версия панели? какие модули устанавливались?
12-09-2010 07:08 AM
Find all posts by this user Quote this message in a reply
dewnet Offline
Junior Member
*

Posts: 26
Joined: Nov 2010
Reputation: 0
Post: #3
RE: Проблема с RAM
1герц 1024мб рам 50гигов жесткий версия панели 6 модули установленны для пхп ускаритель и апача зенд и т.д.
12-09-2010 01:10 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #4
RE: Проблема с RAM
syslog+error.log в студию!
12-09-2010 07:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
dewnet Offline
Junior Member
*

Posts: 26
Joined: Nov 2010
Reputation: 0
Post: #5
RE: Проблема с RAM
вот syslog, error не нашел

[Fri Nov 12 22:19:08 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Nov 12 22:26:40 2010] [notice] caught SIGTERM, shutting down
[Fri Nov 12 22:28:41 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Nov 12 22:28:48 2010] [notice] Graceful restart requested, doing restart
[Fri Nov 12 22:28:48 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Nov 12 22:36:33 2010] [notice] caught SIGTERM, shutting down
[Fri Nov 12 22:37:34 2010] [notice] Apache/2.2.9 (Debian) configured -- resuming normal operations
[Fri Nov 12 22:40:28 2010] [notice] caught SIGTERM, shutting down

PID USER PR NI VIRT RES SHR S CPU MEM TIME COMMAND
1 root 15 0 10304 744 620 S 0.0 0.1 0:00.67 init Kill Process
1376 root 15 0 5896 660 520 S 0.0 0.1 0:00.05 syslogd Kill Process
1414 www-data 15 0 277m 10m 1472 S 0.0 1.1 0:00.00 apache2 Kill Process
1462 bind 18 0 117m 11m 2540 S 0.0 1.2 0:00.04 named Kill Process
1502 root 15 0 10612 976 756 R 0.0 0.1 0:00.00 top Kill Process
1552 root 18 0 48856 1184 688 S 0.0 0.1 0:00.00 sshd Kill Process
1720 amavis 18 0 121m 37m 2376 S 0.0 3.6 0:00.25 amavisd-new Kill Process
1742 www-data 15 0 277m 10m 1472 S 0.0 1.1 0:00.00 apache2 Kill Process
1743 www-data 18 0 277m 10m 1472 S 0.0 1.1 0:00.00 apache2 Kill Process
1751 amavis 18 0 122m 36m 1832 S 0.0 3.6 0:00.00 amavisd-new Kill Process
1753 amavis 18 0 122m 36m 1796 S 0.0 3.6 0:00.00 amavisd-new Kill Process
1764 root 25 0 17308 1436 1148 S 0.0 0.1 0:00.00 mysqld_safe Kill Process
1803 mysql 15 0 176m 26m 5828 S 0.0 2.6 0:04.33 mysqld Kill Process
1807 root 18 0 3772 592 504 S 0.0 0.1 0:00.00 logger Kill Process
1916 polw 18 0 46480 8668 1256 S 0.0 0.8 0:00.00 policyd-weight Kill Process
1917 polw 18 0 46480 8340 928 S 0.0 0.8 0:00.03 policyd-weight Kill Process
3142 postgrey 18 0 56968 12m 2720 S 0.0 1.2 0:00.04 postgrey Kill Process
3167 root 15 0 104m 44m 2660 S 0.0 4.3 0:01.91 spamd Kill Process
3311 vu2000 17 0 207m 11m 6240 S 0.0 1.1 0:00.02 php5-cgi Kill Process
3312 vu2000 16 0 210m 17m 9196 S 0.0 1.7 0:00.28 php5-cgi Kill Process
3314 vu2000 16 0 211m 15m 8232 S 0.0 1.5 0:00.24 php5-cgi Kill Process
3344 clamav 18 0 38256 1272 648 S 0.0 0.1 0:00.00 freshclam Kill Process
3380 root 18 0 6052 456 356 S 0.0 0.0 0:00.00 courierlogger Kill Process
3382 root 18 0 21624 728 576 S 0.0 0.1 0:00.00 authdaemond Kill Process
3393 root 17 0 6052 372 284 S 0.0 0.0 0:00.00 courierlogger Kill Process
3395 root 24 0 9228 664 552 S 0.0 0.1 0:00.00 couriertcpd Kill Process
3426 root 17 0 6052 376 284 S 0.0 0.0 0:00.00 courierlogger Kill Process
3427 root 17 0 9228 664 552 S 0.0 0.1 0:00.00 couriertcpd Kill Process
3447 root 18 0 6052 372 284 S 0.0 0.0 0:00.00 courierlogger Kill Process
3448 root 25 0 9228 664 552 S 0.0 0.1 0:00.00 couriertcpd Kill Process
3514 root 15 0 128m 992 716 S 0.0 0.1 0:00.36 nscd Kill Process
3687 root 18 0 21624 276 124 S 0.0 0.0 0:00.00 authdaemond Kill Process
3688 root 18 0 21624 276 124 S 0.0 0.0 0:00.00 authdaemond Kill Process
3689 root 18 0 21624 276 124 S 0.0 0.0 0:00.00 authdaemond Kill Process
3722 root 18 0 21624 276 124 S 0.0 0.0 0:00.00 authdaemond Kill Process
3723 root 18 0 21624 276 124 S 0.0 0.0 0:00.00 authdaemond Kill Process
3893 root 18 0 104m 41m 588 S 0.0 4.1 0:00.00 spamd Kill Process
3894 root 18 0 104m 41m 588 S 0.0 4.1 0:00.00 spamd Kill Process
5268 root 15 0 34188 2292 1812 S 0.0 0.2 0:00.05 master Kill Process
5278 postfix 15 0 33092 2316 1848 S 0.0 0.2 0:00.00 qmgr Kill Process
5403 root 23 0 15720 860 684 S 0.0 0.1 0:00.00 xinetd Kill Process
5591 nobody 18 0 77468 3840 632 S 0.0 0.4 0:00.36 proftpd Kill Process
5611 root 15 0 10340 736 556 S 0.0 0.1 0:00.04 cron Kill Process
5643 root 15 0 276m 15m 6420 S 0.0 1.5 0:01.35 apache2 Kill Process
5652 root 18 0 61868 14m 2524 S 0.0 1.4 0:00.17 ispcp-apache-lo Kill Process
5657 root 18 0 62000 14m 2524 S 0.0 1.4 0:00.38 ispcp-apache-lo Kill Process
5662 www-data 15 0 147m 5388 536 S 0.0 0.5 0:00.44 apache2 Kill Process
5689 root 15 0 97952 6240 1944 S 0.0 0.6 0:07.32 fail2ban-server Kill Process
5740 root 18 0 3772 440 356 S 0.0 0.0 0:00.00 ispcp_daemon Kill Process
13487 vu2021 17 0 207m 11m 6240 S 0.0 1.1 0:00.02 php5-cgi Kill Process
13488 vu2021 16 0 210m 15m 7208 S 0.0 1.5 0:00.20 php5-cgi Kill Process
13490 vu2021 16 0 208m 12m 5796 S 0.0 1.2 0:00.11 php5-cgi Kill Process
19627 vu2008 18 0 207m 11m 6240 S 0.0 1.1 0:00.02 php5-cgi Kill Process
19640 www-data 15 0 277m 11m 1560 S 0.0 1.1 0:00.08 apache2 Kill Process
19794 vu2008 18 0 207m 8028 2540 S 0.0 0.8 0:00.00 php5-cgi Kill Process
19795 vu2008 18 0 207m 5604 352 S 0.0 0.5 0:00.00 php5-cgi Kill Process
20342 www-data 15 0 277m 10m 1472 S 0.0 1.1 0:00.01 apache2 Kill Process
21637 vu2006 17 0 207m 11m 6240 S 0.0 1.1 0:00.02 php5-cgi Kill Process
21638 vu2006 16 0 213m 23m 13m S 0.0 2.3 0:03.55 php5-cgi Kill Process
21639 vu2006 16 0 211m 24m 14m S 0.0 2.4 0:03.54 php5-cgi Kill Process
24509 vu2001 17 0 207m 11m 6240 S 0.0 1.1 0:00.02 php5-cgi Kill Process
24511 vu2001 18 0 207m 7592 2156 S 0.0 0.7 0:00.00 php5-cgi Kill Process
24512 vu2001 18 0 207m 7348 1976 S 0.0 0.7 0:00.00 php5-cgi Kill Process
28328 postfix 15 0 33044 2212 1764 S 0.0 0.2 0:00.00 pickup Kill Process
32207 root 15 0 66524 3280 2452 S 0.0 0.3 0:00.02 sshd Kill Process
32274 vu2003 17 0 207m 11m 6240 S 0.0 1.1 0:00.03 php5-cgi Kill Process
32406 vu2003 16 0 211m 10m 3908 S 0.0 1.1 0:00.63 php5-cgi Kill Process
32407 vu2003 16 0 209m 10m 3392 S 0.0 1.0 0:00.59 php5-cgi Kill Process
32536 root 15 0 37132 1928 1320 S 0.0 0.2 0:00.00 sftp-server Kill Process
Сервер на 81 процент загружен


Attached File(s)
.txt  syslog.txt (Size: 139.2 KB / Downloads: 4)
(This post was last modified: 12-09-2010 08:14 PM by dewnet.)
12-09-2010 07:56 PM
Find all posts by this user Quote this message in a reply
DragonZX Offline
Moderator
*****
Moderators

Posts: 441
Joined: Aug 2010
Reputation: 5
Post: #6
RE: Проблема с RAM
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ilovecs/cms_online' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ilovecs/cms_online'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ispcp/domain' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ispcp/domain'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ispcp/domain_traffic' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ispcp/domain_traffic'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ispcp/login' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ispcp/login'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ispcp/quotatallies' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ispcp/quotatallies'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './ispcp/server_traffic' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './ispcp/server_traffic'
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [ERROR] /usr/sbin/mysqld: Table './k0004261_ftp/ftp_info' is marked as crashed and should be repaired
Dec 9 10:41:33 server mysqld[1807]: 101209 10:41:33 [Warning] Checking table: './k0004261_ftp/ftp_info'
Тут скорей всего либо железо, либо что... У меня такое было, когда трещина на оперативе возникла
Кстати, на минимальные требования посмотри)
12-09-2010 08:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
beliy Offline
Junior Member
*

Posts: 125
Joined: Oct 2010
Reputation: 0
Post: #7
RE: Проблема с RAM
Ты не указал тип сервера: VDS или выделенный сервер. Также не указал сколько занято RAM.
Если виртуальный сервер, то как вариант решение попробуй урезать количество виртуальной памяти, которое выделяется под стек. По умолчанию в в debian lenny он занимает 10240 кб (10Мб), но изучив в свое время этот вопрос для себя уяснил что достаточно 1024 кб (1Мб). у меня после этого нагрузка на RAM уменьшилась в 2 раза...
Делается это так:
1. в шелле пишем ulimit -s <значение в килобайтах> (я писал 1024)
2. ребутим сервер

или же в файле /etc/init.d/rc повыше прописываем ulimit -s <значение в килобайтах>
и также ребутим сервер


О, пока я по мере появления свободного времени писал ответ - появились логи, тогда как и говорит DragonZX скорее всего проблема с сервером
(This post was last modified: 12-09-2010 08:35 PM by beliy.)
12-09-2010 08:27 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)