重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛

标题: 间歇性宕机ORA-04030 [打印本页]

作者: mahan    时间: 2025-4-20 17:24
标题: 间歇性宕机ORA-04030
问题描述
oracle生产环境隔一会实例就挂了

ORA-04030: 在尝试分配 824504 字节 (pga heap,kco buffer) 时进程内存不足

ORA-04030: 在尝试分配 123416 字节 (QERHJ hash-joi,kllcqas:kllsltba) 时进程内存不足

日志中还有拒绝连接,连接超时等大量重复的错误。

专家解答
从AWR可以看出主机内存只有8G,给到数据库的memory_target只有3G(SGA+PGA),再从ALERT日志可以看到一直再报ORA-4030内存不足的错误:

Thu Jul 12 22:00:11 2018
Errors in file e:\app\administrator\diag\rdbms\\\trace\_j002_11356.trc  (incident=10272):
ORA-04030: out of process memory when trying to allocate 131104 bytes (kxs-heap-w,bucket:qesandvSynopses)
Incident details in: e:\app\administrator\diag\rdbms\\\incident\incdir_10272\_j002_11356_i10272.trc
Errors in file e:\app\administrator\diag\rdbms\\\trace\_j002_11356.trc  (incident=10273):
ORA-04030: out of process memory when trying to allocate 824504 bytes (pga heap,kco buffer)
ORA-04030: out of process memory when trying to allocate 131104 bytes (kxs-heap-w,bucket:qesandvSynopses)
再加上Windows平台非常容易产生碎片,迟早会出现宕机的情况。

建议:

1、停掉主机上其他非数据库程序,将memory_target扩大到6G

2、扩大主机内存

3、如果近期无法增加内存,建议定期重启Windows主机和Oracle数据库(一般一周或者一个月)。







欢迎光临 重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2