[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

getting error 40 % virtual memory and 90% physical memory used in Solaris

Hi Experts,

I am getting error 40 % virtual memory and 90% physical memory used in Solaris.

Please let me know how to tackle this issue.

Regards
Ashwin
0
ashwin2012
Asked:
ashwin2012
  • 3
  • 3
  • 2
  • +1
1 Solution
 
robocatCommented:
Where exactly do you see this error ?

Please specify more details about the server, the application(s), ...
0
 
Brian UtterbackPrinciple Software EngineerCommented:
Please cut and paste the actual error. And what OS rev are you using? How long have you been getting the error? Did the system ever not give you the error? If so, what changed?
0
 
ashwin2012Author Commented:
Now we are no more getting this error and seems like it is resolved?

Can you please guide me how to troubleshoot high memory usage issues in Solaris unix.

I tried prstat but that is for checking high cpu utilization not memory usage.

Thanks in advance.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
robocatCommented:
In order to help you, please answer our questions first.
0
 
skullnobrainsCommented:
use top or ps and sort by memory used

if sorting the processes does not give proper results, you may group by user or by process leader, or by processes sharing the same names and arguments, because the problem can be produced by lots of small similar processes as well as a few big ones which you would easily spot using top

a complete pstree should help as well
0
 
ashwin2012Author Commented:
i am sorry robocat as we are not getting that error message anymore.
please let me Know how can we check for that error message, may be some repository.

Server is Solaris 10.

Thank you
0
 
robocatCommented:
This is not an error Solaris would normally generate. So the question is: where exactly did you see this error in the first place ?
0
 
ashwin2012Author Commented:
i received this from one of the application team.
0
 
skullnobrainsCommented:
in order to troubleshoot, please start with the info in my previous post 38401605

then you must note that this does not necessarily mean the server is in a bad condition

example of what would be a bad condition producing this
there is a real memory shortage and the 40% swap + all the psysical memory used is actually used in production. in this case, there is no extra free ram for the buffer caches and the server probably spends more time transferring data from swap to ram and reverse than doing anything usefull. this is a thrashing condition, and the performance of the server should be degraded in such a way you definitely should notice (even if your swap space is on a SSD)

example of a not too bad condition producing the same thing
at some point in time, an application ate up lots of memory causing many programs to be swapped. the programs did not need CPU time since so they stayed swapped, but the consumed ram got back down to reasonable levels, and the system uses the free ram up to 90% usage for caches. this would indicate that many of the running programs are useless and that there is at least one transient situation in which the machine experienced ram shortage, but the services hosted on the machine should run seemlessly

in order to see which programs are swapped, ps uses flags. i'lm not actually sure about solaris but on other systems, the flag will be displayed as 'S' so something like "ps -auxww | grep S" is likely to do the trick

ps may also provide switches that will add how long the programs have been swapped to the display

seing which programs are swapped should let you distinguish between the 2 situations above. even if you do not know the program names, if the list changes, you have a trashing condition, but if it is reasonably static, your machine is likely in the 2nd case
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now