linux - centos服务器中检查空闲内存的问题
问题描述
我有一个 VM centos 服务器。我收到很多用户的投诉,服务器运行缓慢(它是一个 java 应用程序)
我执行这个命令来检查可用内存
[root@server ~]# free -g
total used free shared buff/cache available
Mem: 11 3 6 0 1 7
Swap: 9 0 9
我们有很多可用内存(7Gb 可用,6Gb 可用)
我检查了 CPU Consomation:它是 0%
[root@server ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 3
On-line CPU(s) list: 0-2
Thread(s) per core: 1
Core(s) per socket: 3
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 94
Model name: Intel(R) Xeon(R) CPU E3-1220 v5 @ 3.00GHz
Stepping: 3
CPU MHz: 2999.999
BogoMIPS: 5999.99
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-2
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase bmi1 hle avx2 smep bmi2 erms rtm xsaveopt
任何想法 ?
编辑 :
[root@server ~]# vmstat 1 5
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 6359520 2108 1381056 0 0 42 11 21 292 1 0 99 0 0
0 0 0 6359504 2108 1381060 0 0 0 0 35 801 0 0 100 0 0
0 0 0 6359504 2108 1381060 0 0 0 0 31 762 0 0 100 0 0
0 0 0 6359504 2108 1381060 0 0 0 0 32 763 0 0 100 0 0
0 0 0 6359504 2108 1381060 0 0 0 12 28 761 0 0 100 0 0
解决方案
在我看来CPU和内存没有问题,尝试检查top output(top是命令),然后按“1”查看CPU负载,也许你会看到一些问题(例如hight io使用)
推荐阅读
- python - 如何写正确的条件?(分棋)
- java - 如何将静态对象发送到 Thymaf 视图?
- python - 带有管道的 termios 中的“设备的 ioctl 不合适”
- vba - Workbook.Unprotect 在 ACCESS VBA 中不起作用
- dynamic-linking - 可执行文件未链接到我想要的动态库
- javascript - Typescript 在某些函数中将 var 读取为空数组,但在其他函数中则不然
- ios - 带有 Swift 的 HealthKit 中用于 HKBloodGlucose 的 HKUnit
- ios - SwiftUI - 在禁用的 SecureField 中检测水龙头?
- java - JavaFX 控制器未检测到对象(Intelij IDE)
- html - 使用 jQuery 删除字符串的多个部分