Is it normal for Linux to have more than 90% of the memory used?
Source: Internet
Author: User
Linux/Unix systems manage memory in a different way than windows. even if a linux system with a low load runs for a few days, the memory usage will reach more than 90%. even if no one accesses this number, the memory usage will not reach 100%. the Linux/Unix system manages the memory every night in a different way than windows.
Even for a linux with a low load, the memory usage will reach more than 90% after a few days.
Even if no one accesses
This number is completely normal.
However, the memory usage will not reach 100%
Every night, the system runs/etc/cron. daily to optimize the memory for Linux/Unix systems. Although the memory usage is more than 90%, it can still be ensured that the system does not need to be restarted for more than 365 days.
For Linux systems, the load index for the last five minutes is the main indicator for evaluating the stress.
For example, you can use the w command or top command to view numbers such as "0.70 0.35 0.01 ".
The number of processes in the queue within 5 minutes, 10 minutes, and 15 minutes.
As long as the first number indicates that the load in five minutes is no greater than 5, the system is healthy and no maintenance is required. if this number is greater than 5, the system speed will usually slow down, there are several possible causes:
1) If a program occupies a large amount of CPU, use the top command to check (to see if there is a fault such as the java program locking)
2) a program occupies a large amount of memory, making the memory really insufficient (this is the time when the memory needs to be added)
For example, because MySQL runs a database with a capacity of GB under a large load, the memory is insufficient and more physical memory needs to be inserted to the server.
3) CPU load increases due to disk system read/write failures and IO throughput errors,
The disk needs to be guided to the single-user mode to scan and repair the disk. if the disk is not repaired properly, you can only replace the new hard disk. Therefore, you do not need to worry too much about the memory usage of Linux/Unix systems.
Generally, check system load parameters.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service