Solved Huge memory usage?

Hi, I am using FreeBSD 12.1-RELEASE-p3 on a virtual machine (2 vCPU, 2 GB RAM)

I noticed this output from vmstat command (2TB?)

Code:
# vmstat
procs  memory       page                    disks     faults         cpu
r b w  avm   fre   flt  re  pi  po    fr   sr da0 cd0   in    sy    cs us sy id
0 0 0 2.0T  710M   143   0   0   0   216  147   0   0   93   842   701  1  1 98



This is top output:
Code:
last pid: 21566;  load averages:  0.48,  0.42,  0.35                                                                     up 0+20:47:27  15:25:05

61 processes:  1 running, 60 sleeping

CPU:  1.4% user,  0.0% nice,  0.2% system,  0.0% interrupt, 98.4% idle

Mem: 209M Active, 442M Inact, 165M Laundry, 427M Wired, 200M Buf, 711M Free

Swap: 2560M Total, 23M Used, 2537M Free


  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND

  923 root         63  52    0  3555M   236M uwait    1   6:15   1.75% java

  779 nobody        1  20    0    18M  7608K select   0   7:02   0.49% openvpn

  105 root          2  20    0    19M  4664K select   1   1:08   0.08% vmtoolsd

21563 root          1  20    0    13M  3856K CPU0     0   0:00   0.04% top

System seems fine, except for a very slow network performances.
I also noticed that if I run cat somefile (large output) it takes a few seconds before showing content... this is quite unusual.
How can I investigate further?
Thank you
 
Unused memory is useless memory. Keep in mind that FreeBSD likes to cache a lot of things so after some runtime it's going to consume most, if not all, memory. That's fine, those caches are the first to get flushed as soon as there's a process that needs the memory.

As long as you don't have memory getting swapped in and out continuously then there's usually nothing to worry about.
 
Back
Top