A few days ago, I do not know why the server ventilation serious ...
The server is very slow, the WINDOWS2003 is restarted, the result is not connected to the server. As a result, the tragedy went to the computer room.
Find out what the problem is, ghost recovery system.
A few days later went back to install a new stand up. Two days later, the problem appeared again.
Check the process checking Web server, virus, Trojan? Have you been invaded? Check the database server, CPU, memory, network all normal, the corresponding port also made IP restrictions, only to allow Web server access, view log files and no abnormalities check the rest of the. Net website, the speed is normal, no problem checking the rest of the PHP site, the architecture approach, There is no problem (the rest of the PHP site is relatively small compared to the forum) to create a new application pool and Web application, single access speed is not a problem, that the PHP program does not have problems checking PHP settings, found no exception
By synthesizing the above factors, it is generally possible to determine that the problem arises primarily from a small problem, which is then reflected when the number of visitors is too high.
So what's the problem?
At this time thought to look at PHP log file, open c:\windows\temp php log file, suddenly ... The card's dead!
The original document has reached more than 800 MB, is this the problem?
Remember that all Web sites under IIS had a slow access problem, and then found that IIS log files reached several G, and the IIS log was disabled and returned to normal.
Is that the problem? Decisively disabled PHP error log, and deleted this file, slightly improved, but the feeling is still unresolved ...
Is wandering, suddenly found in the Temp folder has a lot of sess_ the beginning of the file! (especially slow when you opened the Temp folder before) The number unexpectedly reached 10W! Although the total capacity is only 300MB, but the space is up to 3G
It looks like the problem is here!
About the number of files under NTFS
The advantage of NTFS is needless to say, it has long been the mainstream ...
The maximum number of files under NTFS is 4,294,967,295 (2^32–1)
But why is it that only 10W files allow the system to slow down? All right, it's a theoretical value ... I don't know if anyone has tested it, but the 10W is really a lot ...
Solving Method
Deleting these files is necessary, and the process is painful ... Because the system is jammed.
After the use of Del *.*/q/s after the successful deletion of the light
But the light deletion is not the way, one day it will still be full ...
These files are actually PHP to save the session file, one of the sessions corresponding to a file, but should not be deleted at the end of sessions?
In fact, PHP will be deleted, but due to the permissions of the problem, and cause it can not be deleted in time, the above is the Iis_users group's default permissions.
It does not have permission to delete! No wonder no way to delete!
Know this after simple, to Iis_users plus delete permission on the OK!
After the modification, the number of files under the Temp folder has been maintained at an order of magnitude without significant change.