Hi RAM of my system is 24 GB however when i checked the processes pids and counted the memory usage by pmap i found out that the total memory usage is 36 GB
It s obvious that my system might be using some of virtual memory or swap space . How can i check which memory it is using and how ..
Also what can be impact of this high RAM usage of the system ?
one impact i have noticed that it has become slow .
Thanks for the Reply ... Can you please explain the meaning of all these and Usage of mamory as well as what is the meanng when u said "you might have computed shared memory segments more than once by using pmap output."
---------- Post updated at 08:04 PM ---------- Previous update was at 07:58 PM ----------
I guess I have not computed the shared memory ... Below is the script which i created to check the Memory usage ... Kindly let me know if i need to refine this or if you want to give me some suggeston on these ... Thanks
pids=`ps -fu a | grep -v grep | grep -v PID | grep -v memory_total_usage | awk '{print $2}'`
count=0
for i in $pids
do
memory=`pmap -x $i | grep -i total | awk '{ print $3 }'`
echo "Memory usage for this process PID $i is $memory"
if [ "$memory" -gt 0 ] ; then
count=`expr $count + $memory`
fi
done
echo "$memory"
MemoryinMB=`expr $count / 1024 `
MemoryinGB=`expr $MemoryinMB / 1024 `
echo "memory in Gb is $MemoryinGB"
Well, you missed again to post something readable. You need to cut/paste the command output from your terminal emulator to the web editor to keep its correct formatting. Adding code tags to something that has lost its formatting is pretty useless.
Anyway, go buy some RAM to your server, it will be grateful to you.
You are using 29 GB of virtual memory on a server with 24 GB of RAM. Although it isn't currently starving, performance will be impacted sooner or later.
Alternatively, you can randomly kill one of these java processes, that's the Gnu/Linux way to save memory
Any ways I will be so thankful to you if you can please explain me How can i find that from where the Server is using virtual memory i.e. which command will tell that which slice of disk is associated to be used as a virtual memory .
Also why is it using 29GB of virtual memory , it does have 24 GB RAM , then can t it use 24 GB RAM and 5 GB Virtual memory i.e. disk memory or swap space or input /output ....
I havn t worked in memory manegement etc at all . Will appreciate your answers on this