【问题标题】:Issues with check free memory in centos servercentos服务器中检查空闲内存的问题
【发布时间】:2019-01-11 10:09:55
【问题描述】:

我有一个 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

【问题讨论】:

  • 您在抱怨应用程序的速度,这与运行应用程序的机器的可用内存量无关。
  • @Dominique 抱歉,但是“您在抱怨应用程序的速度,这与应用程序正在运行的机器的可用内存量无关。” ?我的服务器无法运行我的应用程序?
  • 请将vmstat 1 5 的输出添加到问题中

标签: linux server


【解决方案1】:

在我看来CPU和内存没有问题,尝试检查top output(top是命令),然后按“1”查看CPU负载,也许你会看到一些问题(例如hight io usage )

【讨论】:

    猜你喜欢
    • 2017-12-06
    • 1970-01-01
    • 1970-01-01
    • 2017-12-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-05
    相关资源
    最近更新 更多