暂无图片
分享
LEE
2020-04-15
linux 内存占用高
暂无图片 5M

linux 内存占用率 高 通过分析 发现dbwl 进程占用比较高 ,结合strace 进一步分析 发现俩错误,不太清楚这俩是什么原因导致的,另外数据库正常,session并发量300左右

top - 09:35:07 up 152 days, 23:51, 2 users, load average: 2.99, 1.54, 0.89
Tasks: 1261 total, 2 running, 1259 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.3%us, 1.0%sy, 0.0%ni, 91.1%id, 6.0%wa, 0.6%hi, 0.0%si, 0.0%st
Mem: 65947768k total, 65585200k used, 362568k free, 144360k buffers
Swap: 4063224k total, 4k used, 4063220k free, 45304040k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
77931 oracle 20 0 41.5g 56m 26m D 10.5 0.1 0:09.71 oracle
77930 oracle 20 0 41.5g 56m 26m D 7.5 0.1 0:10.34 oracle
75003 oracle 20 0 41.5g 242m 236m S 5.6 0.4 0:01.66 oracle
78140 oracle 20 0 41.5g 130m 126m S 4.2 0.2 0:00.60 oracle

ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
oracle 46417 0.0 14.2 43506116 9368924 ? Ss Jan20 8:31 ora_dbw1_orcl
oracle 46415 0.0 13.4 43507120 8846884 ? Ss Jan20 8:40 ora_dbw0_orcl
oracle 46413 0.0 5.6 43497224 3727420 ? Ss Jan20 3:01 ora_mman_orcl
oracle 46423 0.0 3.3 43508044 2180516 ? Ss Jan20 15:53 ora_smon_orcl
oracle 55844 0.1 2.8 43508248 1870796 ? Ss Apr14 2:36 oracleorcl (LOCAL=NO)
oracle 46553 0.0 2.5 43501964 1708852 ? Ss Jan20 18:53 ora_cjq0_orcl
oracle 75595 0.0 2.2 43508300 1476796 ? Ss Apr14 0:25 oracleorcl (LOCAL=NO)
oracle 71568 0.1 2.1 43513484 1447844 ? Ss Apr14 1:36 oracleorcl (LOCAL=NO)
oracle 55927 0.1 2.1 43509488 1405564 ? Ss Apr14 1:57 oracleorcl (LOCAL=NO)
oracle 46427 0.0 2.0 43507444 1355664 ? Ss Jan20 32:38 ora_mmon_orcl

MemTotal: 65947768 kB
MemFree: 14643864 kB
Buffers: 145832 kB
Cached: 44935272 kB
SwapCached: 0 kB
Active: 26344248 kB
Inactive: 20303752 kB
Active(anon): 15761768 kB
Inactive(anon): 9399436 kB
Active(file): 10582480 kB
Inactive(file): 10904316 kB
Unevictable: 99760 kB
Mlocked: 22088 kB
SwapTotal: 4063224 kB
SwapFree: 4063220 kB
Dirty: 52 kB
Writeback: 0 kB
AnonPages: 1666712 kB
Mapped: 18768128 kB
Shmem: 23592296 kB
Slab: 574832 kB
SReclaimable: 501872 kB
SUnreclaim: 72960 kB
KernelStack: 4944 kB
PageTables: 3527616 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 37037108 kB
Committed_AS: 46469132 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 141784 kB
VmallocChunk: 34359592240 kB
HardwareCorrupted: 0 kB
AnonHugePages: 100352 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 9212 kB
DirectMap2M: 67090432 kB

strace -c -d -r -T /software/output.txt 46417
[wait(0x137f) = 80625]
pid 80625 stopped, [SIGSTOP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x137f) = 80625]
pid 80625 stopped, [SIGSTOP]
[wait(0x137f) = 80625]
pid 80625 stopped, [SIGSTOP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
strace: exec: Exec format error
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x57f) = 80625]
pid 80625 stopped, [SIGTRAP]
[wait(0x100) = 80625]
pid 80625 exited with 1
% time seconds usecs/call calls errors syscall


-nan 0.000000 0 1 write
-nan 0.000000 0 1 close
-nan 0.000000 0 1 fstat
-nan 0.000000 0 1 1 lseek
-nan 0.000000 0 1 mmap
-nan 0.000000 0 1 munmap
-nan 0.000000 0 1 dup
-nan 0.000000 0 1 1 execve
-nan 0.000000 0 1 kill
-nan 0.000000 0 1 fcntl
-nan 0.000000 0 1 geteuid


100.00 0.000000 11 2 total

SQL> select count(*) from v$session;

COUNT(*)

   310
复制
收藏
分享
4条回答
默认
最新
lscomeon

内存占用率高是怎么判定的?
64G内存还是有14G空闲的,还是可以的,再看看你oracle的内存参数是多少

暂无图片 评论
暂无图片 有用 0
打赏 0
LEE

NAME TYPE VALUE


lock_sga boolean FALSE
pre_page_sga boolean FALSE
sga_max_size big integer 42240M
sga_target big integer 42240M
SQL> show parameter pga

NAME TYPE VALUE


pga_aggregate_target big integer 10G

数据库sga+pga 只占用50G ,您说的14G是空闲的,为什么65585200k used 显示这样呢?

暂无图片 评论
暂无图片 有用 0
打赏 0
cherish军

linux是cache机制的

暂无图片 评论
暂无图片 有用 0
打赏 0
LEE
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
相关推荐
Oracle无监听怎么处理?
回答 1
配置一下listener.ora,或者配置静态监听也可以
oracle数据库rac报错如下,该如何处理?
回答 7
已采纳
这个应安装程序检测到家目录没有在inventory中注册,可能是root脚本没有执行。点一下detail看一下具体原因。
Oracle中,如果没有赋予用户任何profile,将发生什么情况?
回答 6
已采纳
createuser语句中即使没有赋予用户任何profile,oracle后台也会默认给用户赋予DEFAULT的profile的。
Oracle10G的库能导进11G中吗?
回答 2
已采纳
exp可以的
关于dg的几个疑问?
回答 1
ADG一般都是采用物理同步备库方式,传输的应该是block,数据块级同步;在线日志和归档日志都会同步,归档日志同步到归档,在线日志同步给standbylogfile;一般可能是中间传输慢、备库应用卡住
有谁遇到过 impdp导入19c rac集群数据库时,监听出现一堆service 的案列,数据库是19.11
回答 3
这个问题怎么解决的,我也遇到了
rac怎么实现负载均衡
回答 1
参考一下这篇文章:https://mp.weixin.qq.com/s/GgAlpRbvSUezIrr5VUIPg
oracle19c 插入数据 报 ORA-01950: 对表空间 'USERS' 无权限 错误
回答 7
1、检查登录用户是否正确2、检查用户拥有的权限3、检查表空间使用情况这3个都没问题的话,是可以插入数据的
能否给一份11g配置的参数。作为标准。
回答 3
你在另外帖子提出的问题,和这个文档基本无关,可以不用参考了。
用docker部署oracle,用哪个镜像比较好?我有个oracle备份 想恢复看看不知道 整哪个版本
回答 1
已采纳
现在oracle得docker容器版本很多,直接dockersearch就行,如果想自己制作可以参考oracle官方的制作文档https://www.oracle.com/cloudnative/co