<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
这个估计和nginx和apache关系不大,ext3文件系统在100%的时候就算清理了文件,还是要重启,或者fsck后才可以看得到回收的空间的。<br>
<br>
<br>
焦胜强 wrote:
<blockquote
 cite="mid:ee4e19230808032006r58748a97v24aa55bc05261786@mail.gmail.com"
 type="cite">
  <meta http-equiv="Context-Type" content="text/html; charset=GB2312">
  <div>check the nginx.conf :<br>
  <br>
error_log&nbsp; logs/error.log&nbsp; crit;<br>
  <br>
  <br>
  <div>2008/8/1 baalchina <span>&lt;<a moz-do-not-send="true"
 href="mailto:baalchina@gmail.com">baalchina@gmail.com</a>&gt;</span><br>
  <blockquote>Hi, everyone.<br>
    <br>
I am using an nginx 0.6.32 and apache2 in a CentOS 4.4 server, running<br>
a php web forum. Apache listening in <a moz-do-not-send="true"
 href="http://127.0.0.1:81">127.0.0.1:81</a>, and nginx proxy php<br>
requests to apache.<br>
    <br>
I made my /usr/local 10g space. But I found the space is decreasing.<br>
    <br>
for example:<br>
    <br>
    <br>
[root@bbs ~]# df<br>
Filesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1K-blocks &nbsp; &nbsp; &nbsp;Used Available Use% Mounted on<br>
/dev/sda5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317828 &nbsp; 2161500 &nbsp; 7632212 &nbsp;23% /<br>
/dev/sda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 101086 &nbsp; &nbsp; 11318 &nbsp; &nbsp; 84549 &nbsp;12% /boot<br>
/dev/sda7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;541552520 268074680 245968540 &nbsp;53% /data<br>
none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2076724 &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; 2076724 &nbsp; 0% /dev/shm<br>
/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317860 &nbsp; 9781764 &nbsp; &nbsp; 11976 100% /usr/local<br>
/dev/sda3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317860 &nbsp; &nbsp;210432 &nbsp; 9583308 &nbsp; 3% /var<br>
[root@bbs ~]#<br>
    <br>
    <br>
after 10 seconds<br>
    <br>
    <br>
[root@bbs ~]# df<br>
Filesystem &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1K-blocks &nbsp; &nbsp; &nbsp;Used Available Use% Mounted on<br>
/dev/sda5 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317828 &nbsp; 2161500 &nbsp; 7632212 &nbsp;23% /<br>
/dev/sda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 101086 &nbsp; &nbsp; 11318 &nbsp; &nbsp; 84549 &nbsp;12% /boot<br>
/dev/sda7 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;541552520 268075128 245968092 &nbsp;53% /data<br>
none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2076724 &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; 2076724 &nbsp; 0% /dev/shm<br>
/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317860 &nbsp; 9781888 &nbsp; &nbsp; 11852 100% /usr/local<br>
/dev/sda3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317860 &nbsp; &nbsp;210432 &nbsp; 9583308 &nbsp; 3% /var<br>
    <br>
    <br>
Look at the available space of /usr/local.<br>
    <br>
And after a while, available space of /usr/local is 0, my forum begin<br>
has some problem, for example, can not upload images.<br>
    <br>
It is strange that, when I using du command:<br>
    <br>
#du -ch /usr/local<br>
    <br>
219M &nbsp; &nbsp;/usr/local/<br>
219M &nbsp; &nbsp;total<br>
    <br>
All file size in my /usr/local is 219M。<br>
    <br>
    <br>
    <br>
Somebody told me to restart apache and nginx, I did, and then df , I<br>
found that....<br>
    <br>
/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10317860 &nbsp; &nbsp;262264 &nbsp; 9531476 &nbsp; 3% /usr/local<br>
    <br>
So, my space had come back.<br>
    <br>
BTW, I changed my apache and nginx temp and logs directories to<br>
another directory rather than /usr/local. so I think it's not the logs<br>
or temp cause this problem.<br>
    <br>
BTW2, I am using https in a little site, can https cause this problem?<br>
    <br>
Thanks a lot.<br>
    <br>
    <br>
    <br>
--<br>
from:baalchina<br>
  </blockquote>
  </div>
  <br>
  <br>
  <br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
焦胜强<br>
升东网络科技发展(上海)有限公司 运维中心 存储组<br>
Email: <a moz-do-not-send="true" href="mailto:jiaosq@mail.51.com">jiaosq@mail.51.com</a><br>
  </div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
------------------------------------------------------
Tony.Ho 贺子桐

上海众盟计算机技术有限公司
Zoom Consult Limited
Tel: 86 21 52410977  602
Fax: 86 21 52410978
Mobile:15821060266
Email: <a class="moz-txt-link-abbreviated" href="mailto:tony_ho@zoomconsult.com">tony_ho@zoomconsult.com</a>
------------------------------------------------------</pre>
</body>
</html>