PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4736 mysql 20 0 332496 38484 1516 S 0.3 15.6 50:31.86 mysqld
19240 root 20 0 5088 1316 988 R 0.3 0.5 0:00.30 top
1 root 20 0 4464 740 176 S 0.0 0.3 0:01.39 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:01.80 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
7 root 20 0 0 0 0 S 0.0 0.0 0:09.09 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
9 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
10 root rt 0 0 0 0 S 0.0 0.0 0:00.35 watchdog/0
11 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
13 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 xenwatch
15 root 20 0 0 0 0 S 0.0 0.0 0:00.15 xenbus
16 root 20 0 0 0 0 S 0.0 0.0 0:01.14 kworker/0:1
17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 writeback
18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
19 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 bioset
20 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/u17:0
21 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
22 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ata_sff
23 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khubd
24 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 md
25 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 devfreq_wq
27 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd
28 root 20 0 0 0 0 S 0.0 0.0 0:17.24 kswapd0
29 root 25 5 0 0 0 S 0.0 0.0 0:00.00 ksmd
30 root 20 0 0 0 0 S 0.0 0.0 0:00.00 fsnotify_mark
31 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ecryptfs-kthrea
32 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 crypto
44 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kthrotld
46 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
47 root 20 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
68 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 deferwq
69 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 charger_manager
114 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
122 root 20 0 0 0 0 S 0.0 0.0 0:04.86 jbd2/xvda3-8
123 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver
137 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:2
257 root 0 -20 0 0 0 S 0.0 0.0 0:00.49 kworker/u17:1
268 root 20 0 3008 0 0 S 0.0 0.0 0:00.09 upstart-udev-br
273 root 20 0 12040 4 4 S 0.0 0.0 0:00.02 systemd-udevd
348 root 20 0 0 0 0 S 0.0 0.0 0:00.00 jbd2/xvda1-8
354 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-rsv-conver
390 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ttm_swap
520 message+ 20 0 4336 748 600 S 0.0 0.3 0:00.09 dbus-daemon
719 root 20 0 4212 920 792 S 0.0 0.4 0:00.03 systemd-logind
739 syslog 20 0 35748 464 60 S 0.0 0.2 0:01.42 rsyslogd
797 root 20 0 3132 0 0 S 0.0 0.0 0:00.03 upstart-socket-
804 root 20 0 3008 0 0 S 0.0 0.0 0:00.08 upstart-file-br
838 root 20 0 4168 4 0 S 0.0 0.0 0:00.00 getty
846 root 20 0 4168 4 0 S 0.0 0.0 0:00.00 getty---------- Добавлено 31.03.2015 в 04:29 ----------Tasks: 91 total, 1 running, 90 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.1 us, 0.0 sy, 0.0 ni, 98.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 247444 total, 224116 used, 23328 free, 4900 buffers
KiB Swap: 524284 total, 91404 used, 432880 free. 118296 cached Mem
256.
Но и до этого столько же было, правда я недавно переехал на другой сервер. Но если памяти не хватает, то это и на других процессах должно отразиться, а тут получается на proftpd только.
И как же он открывался?---------- Добавлено 30.03.2015 в 14:40 ----------А как это с proftpd связано? У меня и раньше ее бывало не хватало, но фтп работало, если сервер целиком не падал.---------- Добавлено 30.03.2015 в 14:40 ----------А как это с proftpd связано? У меня и раньше ее бывало не хватало, но фтп работало, если сервер целиком не падал.---------- Добавлено 30.03.2015 в 15:03 ----------Даже если дело и в памяти, можно же как-то сделать, чтобы он proftpd или 21 порт не блокировал.
Line 288719: Mar 29 20:45:13 vps-13799 kernel: [158917.361891] Out of memory: Kill process 7590 (apache2) score 8 or sacrifice child
Line 288720: Mar 29 20:45:13 vps-13799 kernel: [158917.364274] Killed process 7620 (php5-cgi) total-vm:285416kB, anon-rss:940kB, file-rss:4kB
Line 288733: Mar 29 20:45:15 vps-13799 kernel: [158919.557499] [<c1125c87>] oom_kill_process+0x167/0x2b0
Line 288799: Mar 29 20:45:15 vps-13799 kernel: [158919.557645] [22115] 0 22115 2742 17 9 347 0 proftpd
Line 288809: Mar 29 20:45:15 vps-13799 kernel: [158919.557663] [ 7469] 1004 7469 3179 1 10 464 0 proftpd
Вот такие записи еще нашел в syslog
потери пакетов нет---------- Добавлено 29.03.2015 в 21:19 ----------
Если я передерну proftpd и попробую войти то я удачно войду. Другое дело, что спустя время, доступ опять закрывается.
логи proftpd
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
# Includes DSO modules
Include /etc/proftpd/modules.conf
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 off
# If set on you can experience a longer connection delay in many cases.
IdentLookups off
ServerName "Debian"
ServerType standalone
DeferWelcome off
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayChdir .message true
ListOptions "-l"
DenyFilter \*.*/
# Use this to jail all users in their homes
DefaultRoot ~
# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
RequireValidShell off
# Port 21 is the standard FTP port.
Port 23
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts 49152 65534
# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress 1.2.3.4
# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User proftpd
Group nogroup
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd off
# This is required to use both PAM-based authentication and local passwords
# AuthOrder mod_auth_pam.c* mod_auth_unix.c
# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile off
TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log
# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on
# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime. If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime
<IfModule mod_quotatab.c>
QuotaEngine off
<IfModule mod_ratio.c>
Ratios off
# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default.
<IfModule mod_delay.c>
DelayEngine on
<IfModule mod_ctrls.c>
ControlsEngine off
ControlsMaxClients 2
ControlsLog /var/log/proftpd/controls.log
ControlsInterval 5
ControlsSocket /var/run/proftpd/proftpd.sock
<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
# Alternative authentication frameworks
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf
# This is used for FTPS connections
#Include /etc/proftpd/tls.conf
# Useful to keep VirtualHost/VirtualRoot directives separated
#Include /etc/proftpd/virtuals.conf
# A basic anonymous configuration, no upload directories.
# <Anonymous ~ftp>
# User ftp
# Group nogroup
# # We want clients to be able to login with "anonymous" as well as "ftp"
# UserAlias anonymous ftp
# # Cosmetic changes, all files belongs to ftp user
# DirFakeUser on ftp
# DirFakeGroup on ftp
# RequireValidShell off
# # Limit the maximum number of anonymous logins
# MaxClients 10
# # We want 'welcome.msg' displayed at login, and '.message' displayed
# # in each newly chdired directory.
# DisplayLogin welcome.msg
# DisplayChdir .message
# # Limit WRITE everywhere in the anonymous chroot
# <Directory *>
# <Limit WRITE>
# DenyAll
# </Limit>
# </Directory>
# # Uncomment this if you're brave.
# # <Directory incoming>
# # # Umask 022 is a good standard umask to prevent new files and dirs
# # # (second parm) from being group and world writable.
# # Umask 022 022
# # <Limit READ WRITE>
# # DenyAll
# # </Limit>
# # <Limit STOR>
# # AllowAll
# # </Directory>
# </Anonymous>
# Include other custom configuration files
Include /etc/proftpd/conf.d/---------- Добавлено 29.03.2015 в 03:59 ----------ps auxw | grep proftpd вывел
root 22447 0.0 0.3 4196 820 pts/0 S+ 19:57 0:00 grep --color=auto proftpd
iptables-save > /tmp/ipt && cat /tmp/ipt && rm -rf /tmp/ipt ничего не вывел
Спасибо. Попробую
Нужно сделать следующее преобразование
http://juristcomp.ru/index.php?id=3363&tovar_1=8495&type=3
на
http://juristcomp.ru/toindex.php?product=363
Делаю так
RewriteRule ^index.php?id=3363&tovar_1=8495&type=3$ toindex.php?product=363 [L]
Но насколько я понял, htaccess урезает все, что после знака вопроса. Пробовал экранировать знаки вопроса и добавлять флаг QSA, но все равно не вышло. Как осуществить преобразование?