#1  
Old 30th August 2007, 15:31
Trosan0 Trosan0 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bug in ftp_logs.php ?

I recently took a look at my server again and was shocked. 99% user CPU load. That can't be.

Top showed me, that there were dozens of php processes each consum 1.1% CPU load and a time+ with about 9000 (!) [so, many different values up to 9000]

Using "ps aux" I got this output (shortened a bit):
Quote:
root 17632 0.0 0.1 2528 892 ? S Jul11 0:00 /USR/SBIN/CRON
root 17633 0.0 0.2 2404 1040 ? Ss Jul11 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 17637 13.6 1.0 12456 5620 ? R Jul11 9734:12 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 6445 0.0 0.1 2528 892 ? S Jul13 0:00 /USR/SBIN/CRON
root 6446 0.0 0.2 2408 1044 ? Ss Jul13 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 6450 10.0 1.0 12720 5648 ? R Jul13 6887:19 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 5915 0.0 0.1 2528 892 ? S Jul14 0:00 /USR/SBIN/CRON
root 5918 0.0 0.2 2408 1040 ? Ss Jul14 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 5925 9.2 1.0 12456 5620 ? R Jul14 6175:37 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 32021 0.0 0.1 2528 892 ? S Jul15 0:00 /USR/SBIN/CRON
root 32025 0.0 0.2 2408 1044 ? Ss Jul15 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 32036 8.6 1.0 12456 5608 ? R Jul15 5701:02 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 28326 0.0 0.1 2528 892 ? S Jul17 0:00 /USR/SBIN/CRON
root 28327 0.0 0.2 2408 1044 ? Ss Jul17 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 28341 7.9 1.0 12720 5648 ? R Jul17 4989:33 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 15022 0.0 0.1 2528 892 ? S Jul23 0:00 /USR/SBIN/CRON
root 15023 0.0 0.2 2404 1040 ? Ss Jul23 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 15049 6.0 1.0 12460 5612 ? R Jul23 3284:55 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 10708 0.0 0.1 2528 892 ? S Jul24 0:00 /USR/SBIN/CRON
root 10715 0.0 0.2 2408 1040 ? Ss Jul24 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 10717 5.7 1.0 12460 5612 ? R Jul24 3048:15 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 4695 0.0 0.1 2528 892 ? S Jul25 0:00 /USR/SBIN/CRON
root 4699 0.0 0.2 2408 1044 ? Ss Jul25 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 4704 5.5 1.0 12460 5612 ? R Jul25 2845:15 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 24459 0.0 0.1 2528 892 ? S Jul27 0:00 /USR/SBIN/CRON
root 24460 0.0 0.2 2408 1044 ? Ss Jul27 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 24469 5.1 1.0 12456 5608 ? R Jul27 2489:49 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 20004 0.0 0.1 2528 892 ? S Jul28 0:00 /USR/SBIN/CRON
root 20007 0.0 0.2 2408 1040 ? Ss Jul28 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 20014 4.9 1.0 12456 5608 ? R Jul28 2330:50 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 10892 0.0 0.1 2528 892 ? S Jul30 0:00 /USR/SBIN/CRON
root 10893 0.0 0.2 2408 1044 ? Ss Jul30 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 10899 4.6 1.0 12460 5624 ? R Jul30 2045:25 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 7812 0.0 0.1 2528 892 ? S Jul31 0:00 /USR/SBIN/CRON
root 7813 0.0 0.2 2408 1040 ? Ss Jul31 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 7821 4.4 1.0 12716 5656 ? R Jul31 1915:53 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 5308 0.0 0.1 2528 892 ? S Aug01 0:00 /USR/SBIN/CRON
root 5309 0.0 0.2 2404 1040 ? Ss Aug01 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 5316 4.3 1.0 12716 5656 ? R Aug01 1797:24 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 1487 0.0 0.1 2528 892 ? S Aug02 0:00 /USR/SBIN/CRON
root 1489 0.0 0.2 2404 1040 ? Ss Aug02 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 1497 4.2 1.0 12456 5620 ? R Aug02 1688:01 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 29035 0.0 0.1 2528 892 ? S Aug03 0:00 /USR/SBIN/CRON
root 29036 0.0 0.2 2408 1040 ? Ss Aug03 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 29042 4.1 1.0 12716 5648 ? R Aug03 1586:15 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 21812 0.0 0.1 2528 892 ? S Aug04 0:00 /USR/SBIN/CRON
root 21813 0.0 0.2 2408 1044 ? Ss Aug04 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 21818 4.0 1.0 12460 5628 ? R Aug04 1490:47 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 10012 0.0 0.1 2528 892 ? S Aug06 0:00 /USR/SBIN/CRON
root 10013 0.0 0.2 2408 1044 ? Ss Aug06 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 10018 3.8 1.0 12720 5652 ? R Aug06 1312:05 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 5003 0.0 0.1 2528 892 ? S Aug07 0:00 /USR/SBIN/CRON
root 5017 0.0 0.2 2404 1040 ? Ss Aug07 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 5024 3.7 1.0 12720 5648 ? R Aug07 1228:10 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 2258 0.0 0.1 2528 892 ? S Aug08 0:00 /USR/SBIN/CRON
root 2259 0.0 0.2 2408 1044 ? Ss Aug08 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 2265 3.6 1.0 12716 5656 ? R Aug08 1149:30 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 30745 0.0 0.1 2528 892 ? S Aug09 0:00 /USR/SBIN/CRON
root 30746 0.0 0.2 2404 1040 ? Ss Aug09 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 30753 3.6 1.0 12720 5648 ? R Aug09 1074:33 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 28125 0.0 0.1 2528 892 ? S Aug10 0:00 /USR/SBIN/CRON
root 28152 0.0 0.2 2404 1036 ? Ss Aug10 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 28160 3.5 1.0 12720 5648 ? R Aug10 1003:40 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_lo
root 19972 0.0 0.1 2528 892 ? S Aug12 0:00 /USR/SBIN/CRON
root 19980 0.0 0.2 2408 1044 ? Ss Aug12 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 19981 3.4 1.0 12456 5620 ? R Aug12 868:05 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
bind 5379 0.0 0.6 30520 3144 ? Ssl Aug13 0:04 /usr/sbin/named -u bind
root 6092 0.0 0.3 4812 1620 ? Ss Aug13 0:40 /usr/lib/postfix/master
postfix 6094 0.0 0.3 4856 1736 ? S Aug13 0:16 qmgr -l -t fifo -u
postfix 6167 0.0 0.4 5252 2452 ? S Aug13 0:02 tlsmgr -l -t unix -u -c
root 17565 0.0 0.1 2528 892 ? S Aug13 0:00 /USR/SBIN/CRON
root 17566 0.0 0.2 2404 1036 ? Ss Aug13 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 17573 3.3 1.0 12720 5660 ? R Aug13 803:23 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 16197 0.0 0.1 2528 892 ? S Aug14 0:00 /USR/SBIN/CRON
root 16205 0.0 0.2 2404 1036 ? Ss Aug14 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 16206 3.3 1.0 12716 5668 ? R Aug14 741:49 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
proftpd 2724 0.0 0.2 9152 1536 ? Ss Aug15 0:00 proftpd: (accepting connections)
root 13436 0.0 0.1 2528 892 ? S Aug15 0:00 /USR/SBIN/CRON
root 13437 0.0 0.2 2408 1044 ? Ss Aug15 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 13443 3.2 1.0 12716 5636 ? R Aug15 682:35 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 9101 0.0 0.1 2528 892 ? S Aug16 0:00 /USR/SBIN/CRON
root 9102 0.0 0.2 2408 1044 ? Ss Aug16 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 9110 3.1 1.0 12716 5656 ? R Aug16 625:47 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 4679 0.0 0.1 2528 892 ? S Aug17 0:00 /USR/SBIN/CRON
root 4680 0.0 0.2 2404 1040 ? Ss Aug17 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 4688 3.1 1.0 12720 5640 ? R Aug17 571:26 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
(to be continued in next posting)
Reply With Quote
Sponsored Links
  #2  
Old 30th August 2007, 15:32
Trosan0 Trosan0 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

(continuing...)

Quote:
root 26590 0.0 0.1 2528 892 ? S Aug19 0:00 /USR/SBIN/CRON
root 26603 0.0 0.2 2408 1044 ? Ss Aug19 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 26608 3.0 1.0 12720 5660 ? R Aug19 466:14 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 24517 0.0 0.1 2528 892 ? S Aug20 0:00 /USR/SBIN/CRON
root 24518 0.0 0.2 2404 1036 ? Ss Aug20 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 24528 3.0 1.0 12720 5672 ? R Aug20 415:28 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 21296 0.0 0.1 2528 892 ? S Aug21 0:00 /USR/SBIN/CRON
root 21297 0.0 0.2 2408 1044 ? Ss Aug21 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 21306 2.9 1.0 12720 5660 ? R Aug21 366:36 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 18033 0.0 0.1 2528 892 ? S Aug22 0:00 /USR/SBIN/CRON
root 18034 0.0 0.2 2408 1040 ? Ss Aug22 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 18040 2.9 1.0 12720 5672 ? R Aug22 319:18 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 14870 0.0 0.1 2528 892 ? S Aug23 0:00 /USR/SBIN/CRON
root 14871 0.0 0.2 2404 1036 ? Ss Aug23 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 14874 2.8 1.0 12716 5656 ? R Aug23 273:46 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 10786 0.0 0.1 2528 892 ? S Aug24 0:00 /USR/SBIN/CRON
root 10806 0.0 0.2 2404 1040 ? Ss Aug24 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 10811 2.8 1.0 12716 5672 ? R Aug24 229:27 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 6190 0.0 0.1 2528 892 ? S Aug25 0:00 /USR/SBIN/CRON
root 6200 0.0 0.2 2404 1040 ? Ss Aug25 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 6201 2.8 1.0 12716 5636 ? R Aug25 186:16 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 29021 0.0 0.1 2528 892 ? S Aug27 0:00 /USR/SBIN/CRON
root 29023 0.0 0.2 2408 1044 ? Ss Aug27 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 29031 2.7 1.0 12716 5636 ? R Aug27 102:44 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 24697 0.0 0.1 2528 892 ? S Aug28 0:00 /USR/SBIN/CRON
root 24714 0.0 0.2 2408 1044 ? Ss Aug28 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 24715 2.7 1.0 12720 5640 ? R Aug28 62:17 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
root 20760 0.0 0.1 2528 892 ? S Aug29 0:00 /USR/SBIN/CRON
root 20761 0.0 0.2 2408 1044 ? Ss Aug29 0:00 /bin/sh -c /root/ispconfig/php/php /root/ispconfig/scripts/sh
root 20766 2.6 1.0 12716 5636 ? R Aug29 22:54 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_log
That makes me feel it's ISPConfig's fault.



This is my crontab line:
Quote:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
30 00 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * root /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
#
8

Interestingly enough, I can find daily updated "vsftpd.log" files in my /var/log directory (each 0 bytes in size), but my proftpd.log in /var/log/proftpd hasn't been copied over to proftpd.log.0 for 30 days (which is perhaps right?)


Now, after using "killall php", the problems is gone. Question is just: for how long?


PS: I am using ispconfig 2.2.14
Reply With Quote
  #3  
Old 30th August 2007, 16:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Do you use proftpd or vsftpd?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 30th August 2007, 23:13
Trosan0 Trosan0 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for forgetting this - proftpd
Reply With Quote
  #5  
Old 31st August 2007, 09:36
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Did you select the correct ftp application in ISPConfig under management > server > settings ?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 31st August 2007, 16:09
Trosan0 Trosan0 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I did!
Reply With Quote
  #7  
Old 31st August 2007, 18:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

Please run
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php
on the shell. Do you get any errors then?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 31st August 2007, 21:38
Trosan0 Trosan0 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

No, this one doesn't hang... strange..

By the way, as mentioned, I did a killall php yesterday. Now there's again this process:
Quote:
root 15239 99.0 1.0 12720 5640 ? R Aug30 1223:57 /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_l
(truncated due to console width)

Can't find the one I just started, so there seems to be a problem when run from a crontab...

Perhaps it's due to an overload. I just changed the crontab so that the start time for the ftp_logs.php differs from the other two php jobs which were previously at the same time.. Dunno if it'll help though (will see)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BUG in ISPConfig 2.2.15 ? PierreR32 Installation/Configuration 3 25th July 2007 17:12
BUG: Forward email? edge General 3 1st June 2007 17:49
I have a bug with mysql lionnet Installation/Configuration 1 20th December 2006 11:33
I think I found a (update) bug (ISPconfig 2.2.0) edge General 1 14th March 2006 19:18
Bug in legacy Redhat setup AaronNGray Installation/Configuration 0 12th March 2006 20:15


All times are GMT +2. The time now is 06:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.