oracle数据库swap占用率高,物理内存空余很多,swap被持续占用的问题
本帖最后由 wyanghu 于 2012-8-18 10:21 編輯
這套生產(chǎn)環(huán)境跑在vmware esx虛擬機上,現(xiàn)在遇到的問題是:操作系統(tǒng)內(nèi)存空余很大,但swap被持續(xù)占用,直到swap被占完,估計系統(tǒng)就崩潰了。下面是我的操作系統(tǒng)參數(shù)及oracle參數(shù),請各位幫忙分析分析。謝啦!
free -m
total? ?? ? used? ?? ? free? ???shared? ? buffers? ???cached
Mem:? ?? ?? ?16026? ?? ?15968? ?? ?? ?58? ?? ?? ? 0? ?? ?? ? 4? ?? ? 4159
-/+ buffers/cache:? ?? ?11804? ?? ? 4222
Swap:? ?? ?? ?4095? ?? ? 3156? ?? ???939
Linux 2.6.9-89.ELsmp (jzdb1)? ? 08/18/2012
12:00:01 AM kbmemfree kbmemused??%memused kbbuffers??kbcached kbswpfree kbswpused??%swpused??kbswpcad
12:10:01 AM? ???66588??16344336? ???99.59? ?? ?3252? ?4353740? ?1695740? ?2498556? ???59.57? ???91568
12:20:01 AM? ? 151740??16259184? ???99.08? ?? ?4272? ?4354712? ?1696288? ?2498008? ???59.56? ???91684
12:30:01 AM? ? 147636??16263288? ???99.10? ?? ?5272? ?4356144? ?1697200? ?2497096? ???59.54? ???93468
12:40:01 AM? ???58276??16352648? ???99.64? ?? ?5404? ?4344012? ?1694496? ?2499800? ???59.60? ???94656
12:50:02 AM? ???69524??16341400? ???99.58? ?? ?1664? ?4216544? ?1464224? ?2730072? ???65.09? ? 225388
01:00:01 AM? ???70788??16340136? ???99.57? ?? ?2932? ?4222324? ?1465540? ?2728756? ???65.06? ? 205352
01:10:01 AM? ???64644??16346280? ???99.61? ?? ?4256? ?4274856? ?1504032? ?2690264? ???64.14? ? 168360
01:20:01 AM? ? 151604??16259320? ???99.08? ?? ?5256? ?4276392? ?1504764? ?2689532? ???64.12? ? 170176
01:30:01 AM? ? 144428??16266496? ???99.12? ?? ?6176? ?4277568? ?1505444? ?2688852? ???64.11? ? 171412
01:40:01 AM? ???60900??16350024? ???99.63? ?? ?7072? ?4289944? ?1507756? ?2686540? ???64.05? ? 143180
01:50:01 AM? ? 168692??16242232? ???98.97? ?? ?7972? ?4291000? ?1508276? ?2686020? ???64.04? ? 134696
02:00:01 AM? ? 163124??16247800? ???99.01? ?? ?8884? ?4291784? ?1508616? ?2685680? ???64.03? ? 134836
02:10:01 AM? ? 159100??16251824? ???99.03? ?? ?9764? ?4297556? ?1509656? ?2684640? ???64.01? ? 136072
02:20:01 AM? ? 155260??16255664? ???99.05? ???10548? ?4299084? ?1510760? ?2683536? ???63.98? ? 137296
02:30:01 AM? ? 149236??16261688? ???99.09? ???11364? ?4299920? ?1511188? ?2683108? ???63.97? ? 137616
02:40:01 AM? ? 150780??16260144? ???99.08? ???12172? ?4300960? ?1511780? ?2682516? ???63.96? ? 138216
02:50:01 AM? ? 148924??16262000? ???99.09? ???12816? ?4301912? ?1512260? ?2682036? ???63.94? ? 138524
03:00:01 AM? ? 140324??16270600? ???99.14? ???13552? ?4305088? ?1514632? ?2679664? ???63.89? ? 140664
02:50:01 AM? ? 117884??16293040? ???99.28? ???14276? ?4319648? ?1520576? ?2673720? ???63.75? ? 145780
03:00:01 AM? ? 114876??16296048? ???99.30? ???14940? ?4320860? ?1521452? ?2672844? ???63.73? ? 146216
03:10:02 AM? ? 113724??16297200? ???99.31? ???15568? ?4321772? ?1521984? ?2672312? ???63.71? ? 146784
03:20:01 AM? ? 115644??16295280? ???99.30? ???16204? ?4322620? ?1522320? ?2671976? ???63.70? ? 147068
03:30:01 AM? ? 105756??16305168? ???99.36? ???16816? ?4323376? ?1522724? ?2671572? ???63.70? ? 147400
03:40:01 AM? ???59260??16351664? ???99.64? ?? ?1216? ?4443796? ?1477300? ?2716996? ???64.78? ???32924
03:50:02 AM? ???47100??16363824? ???99.71? ?? ?1720? ?4443400? ?1479836? ?2714460? ???64.72? ???31796
04:00:01 AM? ???53356??16357568? ???99.67? ?? ?1252? ?4497452? ?1478012? ?2716284? ???64.76? ???33836
04:10:02 AM? ???51972??16358952? ???99.68? ?? ?1164? ?4492196? ?1480704? ?2713592? ???64.70? ???33400
04:20:01 AM? ???59452??16351472? ???99.64? ?? ?1596? ?4492936? ?1481332? ?2712964? ???64.68? ???33384
04:30:01 AM? ???56844??16354080? ???99.65? ?? ?2812? ?4480012? ?1482240? ?2712056? ???64.66? ???34960
04:40:01 AM? ???61620??16349304? ???99.62? ?? ?4188? ?4264100? ?1513352? ?2680944? ???63.92? ???92756
04:50:02 AM? ???66412??16344512? ???99.60? ?? ?2144? ?3865472? ? 999780? ?3194516? ???76.16? ? 663972
05:00:01 AM? ? 128868??16282056? ???99.21? ?? ?3284? ?3879220? ?1003256? ?3191040? ???76.08? ? 651328
05:10:01 AM? ? 110012??16300912? ???99.33? ?? ?4848? ?3916668? ?1025444? ?3168852? ???75.55? ? 641556
05:20:01 AM? ???98748??16312176? ???99.40? ?? ?5880? ?3919944? ?1025920? ?3168376? ???75.54? ? 641396
05:30:01 AM? ???89180??16321744? ???99.46? ?? ?6852? ?3921000? ?1026236? ?3168060? ???75.53? ? 641544
05:40:01 AM? ? 142524??16268400? ???99.13? ?? ?7776? ?3936328? ?1029436? ?3164860? ???75.46? ? 578712
05:50:01 AM? ? 148476??16262448? ???99.10? ?? ?8660? ?3936752? ?1029476? ?3164820? ???75.46? ? 578764
06:00:01 AM? ? 155652??16255272? ???99.05? ?? ?9520? ?3937572? ?1029744? ?3164552? ???75.45? ? 578648
06:10:01 AM? ???51156??16359768? ???99.69? ???12056? ?4206080? ?1159184? ?3035112? ???72.36? ? 296180
06:20:01 AM? ???68324??16342600? ???99.58? ???12748? ?4186420? ?1174488? ?3019808? ???72.00? ? 308416
06:30:01 AM? ???52492??16358432? ???99.68? ???12488? ?4189696? ?1178168? ?3016128? ???71.91? ? 312132
06:40:01 AM? ? 167092??16243832? ???98.98? ???10892? ?4183840? ?1176624? ?3017672? ???71.95? ? 313804
06:50:01 AM? ???48068??16362856? ???99.71? ?? ?9504? ?4182348? ?1172244? ?3022052? ???72.05? ? 324232
07:00:01 AM? ???77188??16333736? ???99.53? ???10040? ?4168288? ?1172800? ?3021496? ???72.04? ? 324700
07:10:01 AM? ? 147836??16263088? ???99.10? ???10916? ?4181668? ?1174816? ?3019480? ???71.99? ? 327648
07:20:01 AM? ???64588??16346336? ???99.61? ?? ?9736? ?4229224? ?1158676? ?3035620? ???72.37? ? 271956
07:30:01 AM? ???56900??16354024? ???99.65? ???10240? ?4227864? ?1160480? ?3033816? ???72.33? ? 269276
07:40:01 AM? ???72260??16338664? ???99.56? ?? ?9676? ?4243744? ?1163464? ?3030832? ???72.26? ? 250356
07:50:02 AM? ???51972??16358952? ???99.68? ?? ?7472? ?4272836? ?1158752? ?3035544? ???72.37? ? 222992
08:00:01 AM? ???63724??16347200? ???99.61? ?? ?7780? ?4289464? ?1158052? ?3036244? ???72.39? ? 214488
08:10:01 AM? ???65924??16345000? ???99.60? ?? ?8492? ?4267484? ?1131224? ?3063072? ???73.03? ? 230996
08:20:01 AM? ???55828??16355096? ???99.66? ?? ?7260? ?4219216? ?1013652? ?3180644? ???75.83? ? 275872
08:30:01 AM? ???45444??16365480? ???99.72? ?? ?6720? ?4233520? ? 989620? ?3204676? ???76.41? ? 267072
08:40:01 AM? ???72084??16338840? ???99.56? ?? ?4156? ?4263308? ? 960956? ?3233340? ???77.09? ? 121528
Average:? ?? ???97774??16313150? ???99.40? ?? ?7843? ?4239512? ?1335129? ?2859167? ???68.17? ? 238649
more /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.??See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmall = 4294967296
kernel.shmmax = 68719476736
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024??65000
ulimit -a
core file size? ?? ?? ? (blocks, -c) 0
data seg size? ?? ?? ???(kbytes, -d) unlimited
file size? ?? ?? ?? ?? ?(blocks, -f) unlimited
pending signals? ?? ?? ?? ?? ???(-i) 1024
max locked memory? ?? ? (kbytes, -l) 8145728
max memory size? ?? ?? ?(kbytes, -m) unlimited
open files? ?? ?? ?? ?? ?? ?? ? (-n) 8196
pipe size? ?? ?? ?? ?(512 bytes, -p) 8
POSIX message queues? ???(bytes, -q) 819200
stack size? ?? ?? ?? ???(kbytes, -s) 10240
cpu time? ?? ?? ?? ?? ?(seconds, -t) unlimited
max user processes? ?? ?? ?? ???(-u) unlimited
virtual memory? ?? ?? ? (kbytes, -v) unlimited
file locks? ?? ?? ?? ?? ?? ?? ? (-x) unlimited
uname -a
Linux jzdb1 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:33:05 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
select * from v$version
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE? ? 10.2.0.4.0? ?? ?Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
lock_sga? ?? ?? ?? ?? ?? ?? ?? ?? ???boolean? ?? ?? ?? ?? ?? ?? ?? ???FALSE
pre_page_sga? ?? ?? ?? ?? ?? ?? ?? ? boolean? ?? ?? ?? ?? ?? ?? ?? ???FALSE
sga_max_size? ?? ?? ?? ?? ?? ?? ?? ? big integer? ?? ?? ?? ?? ?? ?? ? 8G
sga_target? ?? ?? ?? ?? ?? ?? ?? ?? ?big integer? ?? ?? ?? ?? ?? ?? ? 8G
pga_aggregate_target? ?? ?? ?? ?? ???big integer? ?? ?? ?? ?? ?? ?? ? 1500M
log_buffer? ?? ?? ?? ?? ?? ?? ?? ?? ?integer? ?? ?? ?? ?? ?? ?? ?? ???14230528
global_context_pool_size? ?? ?? ?? ? string
java_pool_size? ?? ?? ?? ?? ?? ?? ???big integer? ?? ?? ?? ?? ?? ?? ? 0
large_pool_size? ?? ?? ?? ?? ?? ?? ? big integer? ?? ?? ?? ?? ?? ?? ? 0
olap_page_pool_size? ?? ?? ?? ?? ?? ?big integer? ?? ?? ?? ?? ?? ?? ? 0
shared_pool_size? ?? ?? ?? ?? ?? ?? ?big integer? ?? ?? ?? ?? ?? ?? ? 0
streams_pool_size? ?? ?? ?? ?? ?? ???big integer? ?? ?? ?? ?? ?? ?? ? 0
db_cache_size? ?? ?? ?? ?? ?? ?? ?? ?big integer? ?? ?? ?? ?? ?? ?? ? 0
workarea_size_policy? ?? ?? ?? ?? ???string? ?? ?? ?? ?? ?? ?? ?? ?? ?AUTO
總結(jié)
以上是生活随笔為你收集整理的oracle数据库swap占用率高,物理内存空余很多,swap被持续占用的问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 内部异步执行顺序,event_l
- 下一篇: 左侧输卵管通畅右侧粘连还可以怀孕吗?