Hi. I am running ISPconfig on XEN (xen-3.0.2-2). Everything worked quite well untill now when proftpd process hangs very often and cannot be killed. Only restart of machine fix the issue. root 2731 0.0 0.8 19728 2596 ? D 10:38 0:00 /usr/sbin/proftpd Do you have any idea?
Did you try to kill it like this: kill -9 2731 where 2731 is the current process IP of the hanging proftpd process.
Use the command ps to display running processes. ps -aux will show all processes under all users. In order to kill a certain process, just type: kill -s KILL [process ID] The process ID will be listed in the pid column when you run ps -aux ps aux | grep 'processname' It will give you details about the process. Then kill -9 pid
The problem is that the process cannot be killed. I tried the procedure what you mentioned before I even wrote here. The state of the process is "D". I just don't know where I should dig to find out some solution to this.
Is there a solution, i have the same problem? I have the system up and running for a while (debian and ispconfig 2.3.1) but in the last couple of days i've notice an increase in the process number. My understanding is the following. Ispconfig monitor the proftpd daemond. At one point proftpd freeze for a reason and ispconfig tries to restart it after the script check_services.php, but it also freeze. Every haft hour the same story occures so after a while the load average is up to the roof One process for proftpd, one for check_services.php every 30 minutes.) Basically every thing is the same in regards to this tread, after running for a while proftpd feeze up and i need to restart the machine to kill the process. Any suggestions? Thanks in advance
here is the result: Restarting ProFTPD ftp daemon.. .. - warning: "ProFTPD" address/port (xxx.xxx.xxx.xxx:21) already in use by "ProFTPD" and nothing else. The consol just sit there. The number of process seems to average 170 after a couple of days instead of 80 to 110. All the ftp and webftp sites are unavaileble. The 4 process that repeats themself every 30 minutes are: root 1445 0.0 0.0 2108 736 ? S Jan01 0:00 \_ /USR/SBIN/CRON root 1446 0.0 0.0 2804 1208 ? Ss Jan01 0:00 | \_ /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.ph root 1448 0.0 0.1 10980 3948 ? S Jan01 0:00 | \_ /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php root 1485 0.0 0.0 2832 1300 ? S Jan01 0:00 | \_ /bin/sh /etc/init.d/proftpd restart root 1494 0.0 0.1 5044 2348 ? D Jan01 0:00 | \_ /usr/sbin/proftpd r This is really a pain Thanks for the reply
hostname:/# netstat -tap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:imaps *:* LISTEN 9193/couriertcpd tcp 0 0 *op3s *:* LISTEN 9214/couriertcpd tcp 0 0 ip-xxx-xxx-xxx-xxx:mysql *:* LISTEN 9271/mysqld tcp 0 0 *op3 *:* LISTEN 9201/couriertcpd tcp 0 0 *:imap2 *:* LISTEN 9180/couriertcpd tcp 0 0 *:www *:* LISTEN 15155/apache2 tcp 0 0 *:81 *:* LISTEN 9522/ispconfig_http tcp 0 0 *:ftp *:* LISTEN 4162/proftpd: (acce tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named tcp 0 0 ip-xxx-xxx-xxx-xxx:domain *:* LISTEN 9981/named tcp 0 0 ip-xxx-xxx-xxx-xxx.s:ssh *:* LISTEN 9428/sshd tcp 0 0 *:smtp *:* LISTEN 8081/master tcp 0 0 ip-xxx-xxx-xxx-xxx.s:953 *:* LISTEN 9981/named tcp 0 0 *:https *:* LISTEN 15155/apache2 tcp 0 53 ip-xxx-xxx-xxx-xxx.:smtp client-190.40.77.1:2442 ESTABLISHED5207/smtpd tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp mailgw2.mh.bbc.co:62054 TIME_WAIT - tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp 190-48-241-23.spee:8722 TIME_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:52806 CLOSE_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:44383 CLOSE_WAIT - tcp 0 0 ip-xxx-xxx-xxx-xxx.:smtp cpe-075-182-124-0:29090 ESTABLISHED4232/smtpd tcp 0 0 ip-xxx-xxx-xxx-xxx.op3 74-210-197-116.hy.:2064 TIME_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:60435 CLOSE_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:46387 CLOSE_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:60810 CLOSE_WAIT - tcp 1 0 ip-xxx-xxx-xxx-xxx.s:ftp localhost.localdo:49837 CLOSE_WAIT - hostname:/#
Here is the ps of the process after the kill -9 4162. It didn't change a thing. The process is "Ds" looks like it's waiting for sa reply or something from the kernel. nobody 4162 0.0 0.0 5044 1220 ? Ds 2007 0:00 proftpd: (accepting connections) I think my next step is to upgrade proftpd and hope this is fix in the new version. Do you think it's a good idea? ciao