LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 05-29-2012, 05:30 AM   #1
noob189
LQ Newbie
 
Registered: May 2012
Posts: 6

Rep: Reputation: Disabled
Unexplained high memory usage


Hai guy,

i have a problem unexplained high memory usage on my server.

i'm looking which application use the most memory but i didn't find it.

i've done many command for looking at it.
can you guys help me how to solve this problem.

server info solaris 10

1. using top command.
Code:
op - 15:12:13 up 38 days, 19:06,  2 users,  load average: 0.07, 0.08, 0.08
Tasks: 334 total,   1 running, 330 sleeping,   0 stopped,   3 zombie
Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.7%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   6102288k total,  6033612k used,    68676k free,   132008k buffers
Swap:  8385920k total,      708k used,  8385212k free,  5234836k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                              
25042 root      18   0  811m  28m 6984 S  1.0  0.5  17:43.98 NB_dbsrv                                                                                                             
25222 root      18   0  530m  56m  24m S  0.7  0.9   6:09.30 nbemm                                                                                                                
 6936 root      15   0 12768 1288  792 S  0.3  0.0   2:47.78 cmasm2d                                                                                                              
 8311 zz73070   15   0 11012 1252  784 R  0.3  0.0   0:01.37 top                                                                                                                  
    1 root      15   0 10368  724  612 S  0.0  0.0   0:07.52 init                                                                                                                 
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:18.89 migration/0                                                                                                          
    3 root      34  19     0    0    0 S  0.0  0.0   0:05.59 ksoftirqd/0                                                                                                          
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                                                                           
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:08.98 migration/1                                                                                                          
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.10 ksoftirqd/1                                                                                                          
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                                                                           
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:28.11 migration/2                                                                                                          
    9 root      34  19     0    0    0 S  0.0  0.0   0:02.30 ksoftirqd/2                                                                                                          
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                                                                           
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:26.26 migration/3                                                                                                          
   12 root      34  19     0    0    0 S  0.0  0.0   0:01.30 ksoftirqd/3                                                                                                          
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3                                                                                                           
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:10.87 migration/4                                                                                                          
   15 root      34  19     0    0    0 S  0.0  0.0   0:03.01 ksoftirqd/4                                                                                                          
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/4                                                                                                           
   17 root      RT  -5     0    0    0 S  0.0  0.0   0:11.79 migration/5                                                                                                          
   18 root      34  19     0    0    0 S  0.0  0.0   0:00.16 ksoftirqd/5                                                                                                          
   19 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/5                                                                                                           
   20 root      RT  -5     0    0    0 S  0.0  0.0   0:11.15 migration/6                                                                                                          
   21 root      34  19     0    0    0 S  0.0  0.0   0:00.87 ksoftirqd/6                                                                                                          
   22 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/6
2. use top with M
Code:
op - 15:12:13 up 38 days, 19:06,  2 users,  load average: 0.07, 0.08, 0.08
Tasks: 334 total,   1 running, 330 sleeping,   0 stopped,   3 zombie
Cpu(s):  0.1%us,  0.1%sy,  0.0%ni, 99.7%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   6102288k total,  6033612k used,    68676k free,   132008k buffers
Swap:  8385920k total,      708k used,  8385212k free,  5234836k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                              
25042 root      18   0  811m  28m 6984 S  1.0  0.5  17:43.98 NB_dbsrv                                                                                                             
25222 root      18   0  530m  56m  24m S  0.7  0.9   6:09.30 nbemm                                                                                                                
 6936 root      15   0 12768 1288  792 S  0.3  0.0   2:47.78 cmasm2d                                                                                                              
 8311 zz73070   15   0 11012 1252  784 R  0.3  0.0   0:01.37 top                                                                                                                  
    1 root      15   0 10368  724  612 S  0.0  0.0   0:07.52 init                                                                                                                 
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:18.89 migration/0                                                                                                          
    3 root      34  19     0    0    0 S  0.0  0.0   0:05.59 ksoftirqd/0                                                                                                          
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                                                                           
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:08.98 migration/1                                                                                                          
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.10 ksoftirqd/1                                                                                                          
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                                                                           
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:28.11 migration/2                                                                                                          
    9 root      34  19     0    0    0 S  0.0  0.0   0:02.30 ksoftirqd/2                                                                                                          
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                                                                           
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:26.26 migration/3                                                                                                          
   12 root      34  19     0    0    0 S  0.0  0.0   0:01.30 ksoftirqd/3                                                                                                          
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3                                                                                                           
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:10.87 migration/4                                                                                                          
   15 root      34  19     0    0    0 S  0.0  0.0   0:03.01 ksoftirqd/4                                                                                                          
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/4                                                                                                           
   17 root      RT  -5     0    0    0 S  0.0  0.0   0:11.79 migration/5                                                                                                          
   18 root      34  19     0    0    0 S  0.0  0.0   0:00.16 ksoftirqd/5                                                                                                          
   19 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/5                                                                                                           
   20 root      RT  -5     0    0    0 S  0.0  0.0   0:11.15 migration/6                                                                                                          
   21 root      34  19     0    0    0 S  0.0  0.0   0:00.87 ksoftirqd/6                                                                                                          
   22 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/6
3. use cat /proc/meminfo
Code:
-bash-3.2$ cat /proc/meminfo 
MemTotal:      6102288 kB
MemFree:         69468 kB
Buffers:        132088 kB
Cached:        5235000 kB
SwapCached:         40 kB
Active:        5528036 kB
Inactive:       237112 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      6102288 kB
LowFree:         69468 kB
SwapTotal:     8385920 kB
SwapFree:      8385212 kB
Dirty:            2184 kB
Writeback:           0 kB
AnonPages:      398672 kB
Mapped:         128972 kB
Slab:           199308 kB
PageTables:      14696 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  11437064 kB
Committed_AS:  2030160 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    267564 kB
VmallocChunk: 34359470711 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB
4. use ps -A --sort -rss -o comm,pmem,pid | head -n 11
Code:
COMMAND         %MEM   PID
java             1.0  5150
nbemm            0.9 25222
acrecorderd      0.8  5650
nbsl             0.5 25457
NB_dbsrv         0.4 25042
nbrb             0.4 25258
nbars            0.4 25519
nbrmms           0.4 25414
bpstsinfo        0.4  2838
nbpem            0.4 25315
i didn't find any application use 98% memory.
please help.
 
Old 05-29-2012, 05:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
you can find the same topic already here, it is discussed several times. The result was: it is normal.
 
Old 05-29-2012, 05:38 AM   #3
noob189
LQ Newbie
 
Registered: May 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
so there is no way to find why the memory is high?
 
Old 05-29-2012, 05:55 AM   #4
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Now that made my day. They even dedicated a webpage for this topic

http://www.linuxatemyram.com/
 
Old 05-29-2012, 09:24 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by noob189 View Post
server info solaris 10
I more than strongly doubt it is Solaris. Looks like very much a Linux distribution to me.

Double check what you are running.
 
Old 05-29-2012, 09:29 AM   #6
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Subtract "buffers" and "cached" to find your actual ram usage.

Your numbers look OK to me.
 
Old 05-29-2012, 10:04 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by snowpine View Post
Your numbers look OK to me.
They are not in a Solaris context.
 
Old 05-29-2012, 10:24 AM   #8
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Apologies; I did not realize this was in the Solaris sub-forum...

For my personal educational purposes, what do "cache" and "buffer" mean in Solaris-terms?

Last edited by snowday; 05-29-2012 at 10:26 AM.
 
Old 05-29-2012, 03:46 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
"cache" and "buffer" are pretty generic terms in computing and they apply to the same concepts in both Linux and Solaris. One difference is Solaris doesn't report UFS file system cache memory as used RAM but as free and available RAM.

In any case, the Solaris version of top doesn't report cache and buffer size in its output:

Code:
load averages:  0.54,  0.26,  0.25;               up 0+00:19:32        22:41:44
84 processes: 83 sleeping, 1 on cpu
CPU states: 78.4% idle,  6.2% user, 15.4% kernel,  0.0% iowait,  0.0% swap
Kernel: 495 ctxsw, 6 trap, 399 intr, 1277 syscall
Memory: 2048M phys mem, 1222M free mem, 1023M total swap, 1023M free swap

   PID USERNAME NLWP PRI NICE  SIZE   RES STATE    TIME    CPU COMMAND
  1727 jlliagre    2  59    0   83M   19M run      0:03  7.43% gnome-terminal
 
Old 05-31-2012, 10:26 AM   #10
noob189
LQ Newbie
 
Registered: May 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
sorry for late reply..ermm i ask my server admin he say our server running solaris 10...so nothing to worries right??
 
Old 05-31-2012, 10:38 AM   #11
_sa_
LQ Newbie
 
Registered: May 2012
Distribution: OpenIndiana, OSX, Solaris 10, Solaris 11, OEL, Centos, Slackware, Ubuntu
Posts: 22

Rep: Reputation: Disabled
Quote:
Originally Posted by noob189 View Post
sorry for late reply..ermm i ask my server admin he say our server running solaris 10...so nothing to worries right??
So that everyone is on the same page, why don't you go ahead and run a uname -a and post the output.

i.e.

Code:
[root@arch01 zones]# uname -a
SunOS arch01 5.10 Generic_144488-12 sun4v sparc SUNW,SPARC-Enterprise-T5120
 
Old 05-31-2012, 10:51 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by noob189 View Post
sorry for late reply..ermm i ask my server admin he say our server running solaris 10...so nothing to worries right??
You should probably worry about your server admin skills about identifying a server operating system ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory usage very high karlochacon Linux - Newbie 2 02-18-2011 12:44 PM
High Memory Usage jbum Slackware 6 04-26-2008 02:46 PM
High memory usage Kapriel Debian 6 07-29-2005 11:01 AM
High memory usage? Davus Linux - General 6 11-28-2004 02:33 AM
high memory usage. nexx_au Fedora 2 12-08-2003 03:41 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration