實驗室的網頁伺服器主機
安裝的是Debian testing
有定期進行升級.
(包括安全性 deb http://security.debian.org/ testing/updates main contrib non-free)
但是apache 總有怪現象
top時 apache總是吃盡系統資源
我讓cron每天都重新啟動apache一次
重啟後會有大約一個小時左右的正常期
然後主機就又因apache滿載了
我有裝logwatch
以下是
其中一天的情形
- 代碼: 選擇全部
--------------------- Cron Begin ------------------------
Errors when running cron:
bad mailto: 1229 Time(s)
Commands Run:
User root:
/etc/init.d/apache restart: 1 Time(s)
run-parts --report /etc/cron.hourly: 21 Time(s)
[ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm: 41
+Time(s)
/usr/lib/cgi-bin/openwebmail/openwebmail-tool.pl -n -a -q: 10 Time(s)
test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily: 1 Time(s)
User www-data:
ls: 1227 Time(s)
---------------------- Cron End -------------------------
--------------------- pam_unix Begin ------------------------
cron:
Sessions Opened:
www-data: 819 Time(s)
root: 47 Time(s)
---------------------- pam_unix End -------------------------
--------------------- postfix Begin ------------------------
5545425 bytes transferred
912 messages sent
910 messages removed from queue
Top ten senders:
822 messages sent by:
www-data (uid=33):
2 messages sent by:
root (uid=0):
Unknown users:
E-mailGadrian@wshlab2.ee.kuas.edu.tw : 2 Time(s)
autow@wshlab2.ee.kuas.edu.tw : 3 Time(s)
gadrian@wshlab2.ee.kuas.edu.tw : 1 Time(s)
kne@wshlab2.ee.kuas.edu.tw : 1 Time(s)
lip@wshlab2.ee.kuas.edu.tw : 5 Time(s)
rachel@wshlab2.ee.kuas.edu.tw : 1 Time(s)
rhikit@wshlab2.ee.kuas.edu.tw : 1 Time(s)
xwflqo@wshlab2.ee.kuas.edu.tw : 1 Time(s)
yang@wshlab2.ee.kuas.edu.tw : 1 Time(s)
Unrecognized warning:
/usr/lib/postfix/local: bad command startup -- throttling : 1 Time(s)
/usr/lib/postfix/smtpd: bad command startup -- throttling : 1 Time(s)
command "/usr/sbin/postdrop -r" exited with status 9 : 1 Time(s)
premature end-of-input on /usr/sbin/postdrop -r while reading input attribute name : 1 Time(s)
premature end-of-input on private/local socket while reading input attribute name : 1 Time(s)
private/local socket: malformed response : 1 Time(s)
process /usr/lib/postfix/local pid 30436 killed by signal 9 : 1 Time(s)
process /usr/lib/postfix/smtpd pid 30496 killed by signal 9 : 1 Time(s)
smtpd_peer_init: 129.44.128.15: hostname client-128-44-135-15.netsos.com verification failed: Name or service not known :
+1 Time(s)
smtpd_peer_init: 200.121.245.169: hostname client-200.121.245.169.speedy.net.pe verification failed: Name or service not
+known : 2 Time(s)
smtpd_peer_init: 202.168.193.100: hostname points.2do.com.tw verification failed: Name or service not known : 1 Time(s)
smtpd_peer_init: 211.20.188.100: hostname pc100.epaper.com.tw verification failed: Name or service not known : 1 Time(s)
smtpd_peer_init: 61.59.104.49: hostname h49-61-59-104.seed.net.tw verification failed: Name or service not known : 1
+Time(s)
smtpd_peer_init: 63.196.241.132: hostname adsl-63-196-241-132.dsl.lsan03.pacbell.net verification failed: Temporary
+failure in name resolution : 2 Time(s)
transport local failure -- see a previous warning/fatal/panic logfile record for the problem description : 1 Time(s)
---------------------- postfix End -------------------------
覺得很奇怪的有
1.Errors when running cron:
bad mailto: 1229 Time(s)
2./var/spool/cron/crontabs/www-data 檔案內容為:
MAILTO=-C/tmp/sendmail.cf www-data
* * * * * ls
這樣的話
一天就要1440(24*60)次的ls
3.User www-data:
ls: 1227 Time(s)
4.cron:
Sessions Opened:
www-data: 819 Time(s) <===次數過多了吧!
root: 47 Time(s) <===次數也應該沒有這麼多ㄚ
5.Top ten senders:
822 messages sent by:
www-data (uid=33): <=== send to who?
2 messages sent by:
root (uid=0):
請高手指點
謝謝