The portal of our school is made by using the Asp+access database. The website has been running for a long time, it will be slow and slow to open. Sometimes basically do not open, multi-looking for reasons, always no breakthrough. Inadvertently found the following method can solve the problem, first posted out to communicate with the guys.
(1) Set up a standalone web site "application pool", not to use which default.
(2) Set the application pool property.
Do a scheduled task to let the system automatically recycle the worker process. For example:
00:00
08:00
12:30
Recycle system processes at these three point-in-time. Every morning at 8, recycling at noon, I believe that the speed of access to the site has improved.
(3) Set the number of Web garden processes
Theoretically, the maximum number of working processes can be set in a Web park. The maximum can be set to 4000000.
But there's no need to set that big, for example, I'm setting 4.
The setting is large, and the percentage of CPU resources is very large.
This is a leisure time, the operation of the situation. CPU usage is not very large.
After the above steps, the speed of opening the website has become significantly faster.
(4) Access database optimization
The ACCESS database runs for a long time and the volume increases. This can affect the speed of website access. Therefore, the following approach can be taken to optimize. Download the MDB database file to this machine and use ACCESS2000 to compress ha.
After compression, the size of the database becomes smaller, which can be helpful to speed up site access.
However, the best way is to upgrade the Access database to a large database such as Ms SQL2000 or Oracle, MySQL, and so on.
(5) Delete unnecessary "log" data from the database
For example, our website records some access records for back-end users and visitors, and it takes a long time for the logs to occupy a large part of the space.
Note: Once you have deleted the log data, remember to perform a "Compress database operation"
(6) Server anti-virus software will also have a certain impact on the speed of website access (May ... )
I use NOD32 antivirus software, do not know why as long as the use of Web Access protection, the speed will be slow. Maybe it's about checking the data for time-consuming relationships.
So far. Done.
In addition to using the above method, you can also use squid to do the direction of agent to do website acceleration. Many websites now use this technology and have time to try again.