Windows Task Manager cpu usage and PF resolution-[Examination System]
We have been developing, testing, and maintaining the examination system. Recently, I have been observing the test. When hundreds of students log on simultaneously, the server cpu and memory, and the database log display data become extremely important.
The following is a period of server memory.
I. cpu and memory usage during the exam:
When students start to take questions and take tests, the cpu usage increases from almost 0, and the memory usage increases from about 4G. After about 30 or 40 seconds, the maximum cpu usage can reach about 70%, and the memory usage can reach more than 6 GB. After 1 minute, the cpu and memory usage began to drop, and the cpu usage reached 15%. The memory size was about 4.3 GB.
Ii. cpu usage
Why are you staring at the ups and downs of cpu usage? This data indicates the resources currently occupied by the cpu. If the cpu usage is too high for a long time, the main reasons are as follows:
1. computer viruses.
For example, if you have encountered an ARP virus, the entire examination system is paralyzed.
2. Software or code errors
For example, if the image in the Code is not read from MongoDB, a peak occurs on the cpu and a peak value is displayed for each error.
3. You need to upgrade your computer.
Iii. PF usage
PF (PageFile) virtual memory. When the physical memory is not enough, temporarily put the data that is not used in the virtual memory of the hard disk. The best way to reduce the PF is to increase the memory.
Reasons for PF increase:
1. Physical memory is too small
2. the Startup Program is too large.
3. The virtual memory settings are unreasonable.
Modify virtual memory:
My computer -- properties -- Advanced -- Performance -- settings -- Advanced -- virtual memory -- settings -- change -- select the partition where the virtual memory is placed (we recommend that you select a partition outside the system disk) -- select Custom or system management size -- set -- OK
In addition, I checked the meanings of nouns in the corresponding four frames on the Internet.
Iv. Summary
The problem generally occurs at the beginning, and the examination system is no exception. It is also a great achievement to learn how our predecessors can discover and solve problems through system launch. Cpu and memory resolution are written here first. The following article is about SQL database optimization in the examination system. I hope to provide you with some ideas.