i have conflict with memory utilization

dear all,

kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain

i have a server which has 32GB RAM

Total Memory = 33423360 kb
Free Memory = 4172568 kb
Utilized Memory = 29250792 kb
 Memory Utilization Percentage = 87.5 %

if Utilized Memory = 29250792 kb how can i make sure which processes eat this amount of memory

I listed the top proceses i found the following
if i sum the amount of memory by each process from the flowing it will not equal the utilized memory 29250792 kb so i want to know which processes eat the amount of memory

i found also the swap device is free and not used my system now in test cycle and the memory reached to 87% i want to make sure that if it in the production it will still has 87% and use the swap space or exceed the amount of memory

i tested another server it has memory utilization like 46% and after rebooting it it was 29% so i want to make sure that how memory work it has some processes sleep in memory after we has a new instruction enterd the memory it will free some of the old processes ?
top processes using memory

SIZE RSS PROCESS/NLWP
2580M 866M be-engine/1408
478M 428M java/3647
476M 418M java/3647
324M 320M esd/4
123M 107M java/113
131M 103M java/18
24M 22M svc.startd/15
29M 22M msragent/10
21M 18M nscd/31
35M 16M nsrexecd/4
33M 15M nsrmmd/1
33M 15M nsrmmd/1
17M 14M inetd/4
19M 13M fmd/27
13M 12M svc.configd/16

swap device
/dev/zvol/dsk/rpool/swap 256,1 16 67108848 67108848

whem it will use free swap ?

free swap = 30375816k
used Swap = 4569504k

how come the amount of memory percentage in these processes that run by these users is equal to 7.4 % and the memory utilization is equal to 87%

 NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU                             
     3 user1     2547M  870M   2.7%   5:31:59 0.3%
    63 root      1538M 1476M   4.5%  92:09:30 0.1%
    10 user2    7264K   17M   0.1%   0:00:00 0.0%
     2 user3     1672K   10M   0.0%   0:00:01 0.0%
     8 daemon     11M   17M   0.1%   0:15:05 0.0%

forgive me for my weak english

ipcs -m

for shared memory usage may shed some light on things.

prstat for the whole system should show more than just a few users if it is an active system. What does

ps -ef

show?

ps -ef

   UID   PID  PPID   C    STIME TTY         TIME CMD
    root     0     0   0   Jun 04 ?           1:01 sched
    root     5     0   0   Jun 04 ?         279:48 zpool-rpool
    root     1     0   0   Jun 04 ?          66:24 /sbin/init
    root     2     0   0   Jun 04 ?           0:00 pageout
    root     3     0   0   Jun 04 ?        7741:48 fsflush
  daemon   193     1   0   Jun 04 ?           1:02 /usr/lib/crypto/kcfd
    root     9     1   0   Jun 04 ?           2:47 /lib/svc/bin/svc.startd
    root    11     1   0   Jun 04 ?           6:24 /lib/svc/bin/svc.configd
    root   319     1   0   Jun 04 ?           0:22 /usr/sbin/cron
    root   101     0   0   Jun 04 ?         257:34 zpool-app-pool
    root   105     1   0   Jun 04 ?           2:59 devfsadmd
    root   103     0   0   Jun 04 ?          12:12 zpool-log-pool
    root   721     1   0   Jun 04 ?           5:33 /usr/lib/fm/fmd/fmd
  daemon   580     1   0   Jun 04 ?           0:02 /usr/lib/nfs/nfsmapid
    root   280     1   0   Jun 04 ?           0:00 /lib/svc/method/iscsi-initiator
    root   153     1   0   Jun 04 ?           0:00 /usr/lib/ldoms/drd
  daemon   574     1   0   Jun 04 ?           0:01 /usr/sbin/rpcbind
    root   160     1   0   Jun 04 ?           0:00 /usr/lib/sysevent/syseventd
  daemon   576     1   0   Jun 04 ?           0:00 /usr/lib/nfs/nfs4cbd
  daemon   581     1   0   Jun 04 ?           0:00 /usr/lib/nfs/statd
    root  3905  2102   0   Jun 04 ?          36:15 esd - shell perftool-shell.tcl
  daemon   310     1   0   Jun 04 ?          14:57 /usr/lib/rcap/rcapd
  daemon   588     1   0   Jun 04 ?           0:00 /usr/lib/nfs/lockd
    root   246     1   0   Jun 04 ?           8:28 /usr/lib/inet/in.mpathd -a
    root   305     1   0   Jun 04 ?           0:00 /usr/lib/efcode/sparcv9/efdaemon
    root 14164     1   0   Aug 15 ?           0:00 /usr/lib/ssh/sshd
    root 12469     1   0   Sep 15 ?           0:36 /usr/sbin/nscd
    root   583     1   0   Jun 04 ?          15:09 /usr/lib/inet/xntpd
    root   607   592   0   Jun 04 ?           0:03 /usr/lib/saf/ttymon
    root   592     9   0   Jun 04 ?           0:04 /usr/lib/saf/sac -t 300
    root  1250     1   0   Jun 04 ?         554:47 /app/ArcSightSmartConnectorsSolarisOS/current/bin/wrapper/sunos/wrapper /app/Ar
    root   700     1   0   Jun 04 ?           0:19 /usr/sbin/syslogd
    root   617     1   0   Jun 04 ?           0:19 /usr/lib/utmpd
    root   616     1   0   Jun 04 ?           2:45 /usr/lib/inet/inetd start
    root 27063 27870   0 10:41:55 ?           0:00 sleep 2
    root   646     1   0   Jun 04 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
    root   649   646   0   Jun 04 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
    root   648   646   0   Jun 04 ?           0:00 /usr/sadm/lib/smc/bin/smcboot
    root   680     1   0   Jun 04 ?           0:00 /usr/lib/nfs/mountd
    root 29698  2057   0 00:30:47 ?           0:01 /usr/sbin/nsrmmd -n 26 -s nwriy2
    root   660     1   0   Jun 04 ?           0:00 /usr/lib/autofs/automountd
    root   662   660   0   Jun 04 ?           0:34 /usr/lib/autofs/automountd
 user1 27040 27004   0 10:41:43 pts/1       0:00 bash
    root   757     9   0   Jun 04 console     0:00 /usr/lib/saf/ttymon -g -d /dev/console -l console -T vt100 -m ldterm,ttcompat -
  daemon   686     1   0   Jun 04 ?           0:00 /usr/lib/nfs/nfsd
    root  2102     1   0   Jun 04 ?        3015:56 esd - init agent -dir /var/opt/SUNWsymon -q
    root   751     1   0   Jun 04 ?           0:00 /usr/sbin/auditd
    root  1227     1   0   Jun 04 ?         172:53 /app/ArcSightSmartConnectorsApp/current/bin/wrapper/sunos/wrapper /app/ArcSight
    root   912   911   0   Jun 04 ?         514:26 _jvm/bin/java -Djetty.home=jetty -Djava.endorsed.dirs=endorsed -DSTART=jetty/et
    root   911     1   0   Jun 04 ?          96:44 /opt/homebase-agent/bin/../bin/wrapper-solaris-sparc-32 /opt/homebase-agent/bin
    root  2559  2102   0   Jun 04 ?           0:00 sh
    root 18870  1227   0   Aug 30 ?         534:09 ../../../jre/bin/java -server -XX:MaxNewSize=128m -verbose:gc -DARCSIGHT_HOME=.
    root  2057     1   0   Jun 04 ?           2:02 /usr/sbin/nsrexecd
    root 11317     1   0   Aug 07 ?           0:00 /opt/VRTSpbx/bin/pbx_exchange
    root  2557  2102   0   Jun 04 ?           0:00 sh
    root  1474     1   0   Jun 04 ?          76:17 /usr/ecc/exec/mstragent
    root  6298     1   0   Jun 04 ?          26:50 /usr/sbin/tictimed
    root  1609  1474   0   Jun 04 ?          31:51 /usr/ecc/exec/mstragent -s
    root  3945  2102   0   Jun 04 ?           0:00 sh
    root 16756     1   0   Sep 15 ?           0:05 /usr/lib/sendmail -bl -q15m
   smmsp 16752     1   0   Sep 15 ?           0:01 /usr/lib/sendmail -Ac -q15m
    root 27875 27873   0   Sep 10 ?           0:22 tail +1lf /var/audit/20120604131827.not_terminated.sec37-5
    root  3963  2102   0   Jun 04 ?           0:00 sh
    root  3962  2102   0   Jun 04 ?           0:01 sh
noaccess  2055     1   0   Jun 04 ?         151:13 /usr/java/bin/java -server -Xmx128m -XX:+UseParallelGC -XX:ParallelGCThreads=4 
 user1 26974 26973   0 10:41:25 ?           0:01 /usr/lib/ssh/sshd
 user1 27004 26974   0 10:41:41 pts/1       0:00 -sh
    root  3859     1   0   Jun 04 ?          77:23 /usr/lib/picl/picld
 user1 27064 27040   0 10:41:56 pts/1       0:00 ps -ef
    root 26973 14164   0 10:41:25 ?           0:00 /usr/lib/ssh/sshd
    root 27783  1250   0   Sep 10 ?         207:33 ../../../jre/bin/java -server -XX:MaxNewSize=128m -verbose:gc -DARCSIGHT_HOME=.
    user2 18176     1   0 11:47:31 ?         297:54 /app/user2/tibco/be/5.0/bin/be-engine -u default -p /app/user2/be-default.propert
    root 27873 27870   0   Sep 10 ?           0:01 praudit -x -l
    root 12907     1   0   Aug 07 ?           1:03 /usr/openv/netbackup/bin/vnetd -standalone
    root 29655  2057   0 00:30:23 ?           0:00 /usr/sbin/nsrmmd -n 48 -s nwriy2
    root 22847     1   0   Jun 26 ?          93:52 /usr/ecc/exec/MSR610/msragent
    root 12912     1   0   Aug 07 ?           1:22 /usr/openv/netbackup/bin/bpcd -standalone
    root 27870 27783   0   Sep 10 ?          13:58 /bin/sh /app/ArcSightSmartConnectorsSolarisOS/current/bin/agent/bsm/tailauditlo

ipcs -m

IPC status from <running system> as of Mon Sep 17 10:42:08 AST 2012
T         ID      KEY        MODE        OWNER    GROUP
Shared Memory: