Question
TCS
IN
Last activity: 29 May 2018 11:24 EDT
Difference in HEAP Usage showing in SMA and UNIX TOP command
Application Configured with 6GB Heap Memory and 1GB Perm . Observed difference in SMA heap and unix TOP command values.
SMA showing 2 GB free but when checked in UNIX Top command usage in 7GB.
Why there is this difference ?
***Edited by Moderator Marissa to update categories***
Hi There,
Res in top command doesnot correspond to the remaining heap size for JVM.
http://mugurel.sumanariu.ro/linux/the-difference-among-virt-res-and-shr-in-top-output/
You can use JMAP or JSTAT utility to get an snapshot of memory. They would be same as the one shown in SMA.
Thanks,
Ujjwal