本帖最后由 javaio 于 2010-09-27 22:11 编辑
AIX P550 16CPU 24G内存,上面只运行了WEBLOGIC,无其他应用,内存使用非常高,把WEBLOGIC全停掉后,内存只释放了一点点,问内存都让谁吃了? faults为何那么高?paging space 没停WEBLOGIC前高达25% 为何?
这里是没重启机器前的状态:
# oslevel
5.3.0.0
# oslevel -r
5300-09
#
Topas Monitor for host: p550a EVENTS/QUEUES FILE/TTY
Mon Sep 27 16:30:30 2010 Interval: 2 Cswitch 239 Readch 2752
Syscall 1501 Writech 583
CPU User% Kern% Wait% Idle% Reads 1 Rawin 0
ALL 0.0 7.5 0.0 92.5 Writes 3 Ttyout 583
Forks 0 Igets 0
Network KBPS I-Pack O-Pack KB-In KB-Out Execs 0 Namei 1
en4 1.4 5.5 6.0 0.3 1.1 Runqueue 0.5 Dirblk 0
lo0 0.7 7.0 7.0 0.3 0.3 Waitqueue 0.0
Disk Busy% KBPS TPS KB-Read KB-Writ PAGING MEMORY
hdisk0 0.0 0.0 0.0 0.0 0.0 Faults 15600 Real,MB 23552
hdisk1 0.0 0.0 0.0 0.0 0.0 Steals 0 % Comp 80.0
cd0 0.0 0.0 0.0 0.0 0.0 PgspIn 0 % Noncomp 2.2
PgspOut 0 % Client 2.2
Name PID CPU% PgSp Owner PageIn 0
xmwlm 90582 8.2 1.0 root PageOut 0 PAGING SPACE
dtgreet 50060 0.0 1.4 root Sios 0 Size,MB 24576
java 94470 0.0 347.9 weblogic % Used 5.5topas 110948 0.0 1.5 root NFS (calls/sec) % Free 95.5
topas 135850 0.0 1.5 root ServerV2 0
topas 86318 0.0 1.9 weblogic ClientV2 0 Press:
getty 159942 0.0 0.6 root ServerV3 0 "h" for help
xmgc 49176 0.0 0.4 root ClientV3 0 "q" to quit
swapper 4654 0.0 0.4 root
swapper 4386 0.0 0.4 root
swapper 4922 0.0 0.4 root
rpc.lock 49622 0.0 1.2 root
syncd 45720 0.0 0.5 root
lrud 16392 0.0 0.8 root
netm 24900 0.0 0.4 root
psmd 24588 0.0 0.8 root
gil 25158 0.0 0.9 root
X 57988 0.0 3.6 root
init 1 0.0 0.6 root
IBM.CSMA 37810 0.0 3.9 root
# svmon
size inuse free pin virtual
memory 6029312 5006707 1022605 4732781 5141836
pg space 6291456 338240
work pers clnt other
pin 4512979 0 0 219802
in use 4880770 5 125932
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 4825651 336864 4576957 4959964
m 64 KB - 11316 86 9739 11367
# vmstat -v
6029312 memory pages
5734502 lruable pages
1020951 free pages
4 memory pools
4734381 pinned pages
80.0 maxpin percentage
20.0 minperm percentage
80.0 maxperm percentage
2.1 numperm percentage
123913 file pages
0.0 compressed percentage
0 compressed pages
2.1 numclient percentage
80.0 maxclient percentage
123908 client pages
0 remote pageouts scheduled
25 pending disk I/Os blocked with no pbuf
40499386 paging space I/Os blocked with no psbuf
2228 filesystem I/Os blocked with no fsbuf
0 client filesystem I/Os blocked with no fsbuf
37620 external pager filesystem I/Os blocked with no fsbuf
0 Virtualized Partition Memory Page Faults
0.00 Time resolving virtualized partition memory page faults
#
# sar -r 5
AIX p550a 3 5 00CF30D34C00 09/27/10
System configuration: lcpu=16 mem=23552MB mode=Capped
16:44:12 slots cycle/s fault/s odio/s
16:44:17 5953205 0.00 22224.13 0.60
#
# vmstat 1 10
System configuration: lcpu=16 mem=23552MB
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------
r b avm fre re pi po fr sr cy in sy cs us sy id wa
1 0 5142491 1021874 0 0 0 0 0 0 8 1713 236 0 4 96 0
0 0 5142491 1021874 0 0 0 0 0 0 4 1371 245 0 6 94 0
0 0 5143419 1020946 0 0 0 0 0 0 7 1550 235 0 3 97 0
1 0 5142490 1021875 0 0 0 0 0 0 7 1381 237 0 3 97 0
0 0 5142490 1021875 0 0 0 0 0 0 6 1553 236 0 6 94 0
0 0 5143834 1020531 0 0 0 0 0 0 5 1375 233 0 4 96 0
1 0 5142490 1021875 0 0 0 0 0 0 6 1546 232 0 2 98 0
0 0 5142490 1021875 0 0 0 0 0 0 3 1374 237 0 6 94 0
0 0 5143402 1020963 0 0 0 0 0 0 9 1559 241 0 4 96 0
1 0 5142490 1021875 0 0 0 0 0 0 8 1371 233 0 2 98 0
#
# vmo -a
cpu_scale_memp = 8
data_stagger_interval = 161
defps = 1
force_relalias_lite = 0
framesets = 2
htabscale = n/a
kernel_heap_psize = 4096
kernel_psize = 16777216
large_page_heap_size = 0
lgpg_regions = 0
lgpg_size = 0
low_ps_handling = 1
lru_file_repage = 1
lru_poll_interval = 10
lrubucket = 131072
maxclient% = 80
maxfree = 1088
maxperm = 4587600
maxperm% = 80
maxpin = 4867414
maxpin% = 80
mbuf_heap_psize = 65536
memory_affinity = 1
memory_frames = 6029312
memplace_data = 2
memplace_mapped_file = 2
memplace_shm_anonymous = 2
memplace_shm_named = 2
memplace_stack = 2
memplace_text = 2
memplace_unmapped_file = 2
mempools = 4
minfree = 960
minperm = 1146898
minperm% = 20
nokilluid = 0
npskill = 49152
npsrpgmax = 393216
npsrpgmin = 294912
npsscrubmax = 393216
npsscrubmin = 294912
npswarn = 196608
num_spec_dataseg = 0
numpsblks = 6291456
page_steal_method = 0
pagecoloring = n/a
pinnable_frames = 1295373
psm_timeout_interval = 5000
pta_balance_threshold = n/a
relalias_percentage = 0
rpgclean = 0
rpgcontrol = 2
scrub = 0
scrubclean = 0
soft_min_lgpgs_vmpool = 0
spec_dataseg_int = 512
strict_maxclient = 1
strict_maxperm = 0
v_pinshm = 0
vm_modlist_threshold = -1
vmm_fork_policy = 1
vmm_mpsize_support = 1
wlm_memlimit_nonpg = 1
#
# vmstat -s
60125920853 total address trans. faults
236299273 page ins
255456576 page outs
227100146 paging space page ins
224903271 paging space page outs 0 total reclaims
59047865001 zero filled pages faults
47621021 executable filled pages faults
3140190022 pages examined by clock
2096 revolutions of the clock hand
250788432 pages freed by the clock
10091109 backtracks
93664 free frame waits
0 extend XPT waits
230485022 pending I/O waits
488710726 start I/Os
457139720 iodones
5300839206 cpu context switches
619179944 device interrupts
1623206554 software interrupts
6878573570 decrementer interrupts
122106361 mpc-sent interrupts
122106357 mpc-receive interrupts
5386771 phantom interrupts
0 traps
25194445202 syscalls
#
# svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}'
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual 64-bit Mthrd 16MB
94470 java 174205 65649 42244 164564 N Y N
86318 topas 75653 65539 112 75651 N N N
135852 topas 75541 65539 112 75529 N N N
37810 IBM.CSMAgentR 75307 65552 995 76188 N Y N
131400 ksh 75270 65539 112 75318 N N N
119138 ksh 75270 65539 112 75318 N N N
168664 ksh 75270 65539 112 75318 N N N
159942 getty 75269 65539 229 75293 N N N
127190 getty 75267 65539 230 75291 N N N
53668 sendmail 75240 65539 284 75405 N N N
143812 ksh 75232 65539 112 75279 N N N
152148 ksh 75232 65539 112 75279 N N N
143362 telnetd 75219 65539 113 75309 N N N
69798 telnetd 75219 65539 113 75309 N N N
110786 telnetd 75219 65539 113 75309 N N N
#
机器重启后,TOPAS里Comp内存占用11%左右,全正常;再启动WEBLOGIC共4个服务总占用45%左右,也全正常,问为何重启前后变化如此大?内存都让谁吃了?
作者: javaio
发布时间: 2010-09-27