In the Linux environment, memory footprint is higher, use pmap - pid command to view memory allocation found
Address Kbytes RSS Dirty Mode Mapping
4 4 0 r - 0000000000400000 - x Java
4 4 4 r - 0000000000601000 Java
4 4 4 rw - 0000000000602000 Java
Ea000 00000000009 485176 471512 471512 rw - [anon]
0000000080000000 1656832 1653024 1653024 rw - [anon]
00000000 e5200000 440320 0 0 -- -- -- -- -- (anon)
There are two great anon, after using the/proc/pid/smaps - pid to view occupy, found
VmFlags: rd wr Mr Mw me dw ac sd
01904000-3 cbee000 rw -p 00000000 00:00 0 [heap]
Size: 969640 kB
Rss: 951464 kB
Pss: 951464 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 951464 kB
Referenced: 948700 kB
Anonymous: 951464 kB
AnonHugePages: 0 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
ProtectionKey: 0
VmFlags: rd wr Mr Mw me ac sd
80000000 - fcd00000 rw - p 00000000 00:00 0
Size: 2044928 kB
Rss: 2043064 kB
Pss: 2043064 kB
Shared_Clean: 0 kB
Shared_Dirty: 0 kB
Private_Clean: 0 kB
Private_Dirty: 2043064 kB
Referenced: 2038076 kB
Anonymous: 2043064 kB
AnonHugePages: 0 kB
Swap: 0 kB
KernelPageSize: 4 kB
MMUPageSize: 4 kB
Locked: 0 kB
ProtectionKey: 0
Could you tell me what do you use these two, why take up so much, what can be achieved by means of optimization,