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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
05-29-2012, 05:30 AM
#1
LQ Newbie
Registered: May 2012
Posts: 6
Rep:
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.
05-29-2012, 05:34 AM
#2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039
you can find the same topic already here, it is discussed several times. The result was: it is normal.
05-29-2012, 05:38 AM
#3
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
so there is no way to find why the memory is high?
05-29-2012, 05:55 AM
#4
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Now that made my day. They even dedicated a webpage for this topic
http://www.linuxatemyram.com/
05-29-2012, 09:24 AM
#5
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Quote:
Originally Posted by
noob189
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.
05-29-2012, 09:29 AM
#6
Senior Member
Registered: Feb 2009
Posts: 4,667
Subtract "buffers" and "cached" to find your
actual ram usage.
Your numbers look OK to me.
05-29-2012, 10:04 AM
#7
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Quote:
Originally Posted by
snowpine
Your numbers look OK to me.
They are not in a Solaris context.
05-29-2012, 10:24 AM
#8
Senior Member
Registered: Feb 2009
Posts: 4,667
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 .
05-29-2012, 03:46 PM
#9
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
"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
05-31-2012, 10:26 AM
#10
LQ Newbie
Registered: May 2012
Posts: 6
Original Poster
Rep:
sorry for late reply..ermm i ask my server admin he say our server running solaris 10...so nothing to worries right??
05-31-2012, 10:38 AM
#11
LQ Newbie
Registered: May 2012
Distribution: OpenIndiana, OSX, Solaris 10, Solaris 11, OEL, Centos, Slackware, Ubuntu
Posts: 22
Rep:
Quote:
Originally Posted by
noob189
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
05-31-2012, 10:51 AM
#12
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Quote:
Originally Posted by
noob189
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 ...
All times are GMT -5. The time now is 05:45 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News