一oracle 11g 出現ORACLE ORA-04030之 out of process memory when trying to allocate報錯,查詢ORACLE官方MOS確定是:BUG11852492,原因是用戶會話單進程占用PGA超過4GB異常終止,根據MOS文章1325100.1的建議:可以根據服務器實際情況及SQL運行的實際情況放開PGA單進程使用內存空間的限制到16GB。
相關分析處理過程如下:
ORA4030告警,告警信息如下: **************************** 查看數據庫告警日志 ************************** ERROR IN ALERT LOG FILE - LAST 3 DAYS ===================================== 15/12/2016 22:44:13 Thu Dec 15 22:44:13 2016 Thu Dec 15 22:44:13 2016 ORA-04030: out of process memory when trying to allocate 64 bytes (kxs-heap-c,allocator state) ORA-04030: out of process memory when trying to allocate 624 bytes (kxs-heap-c,MSQ2) ORA-04030: out of process memory when trying to allocate 82456 bytes (pga heap,control file i/o buffer) Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl2/incident/incdir_498/orcl_pmon_60993.trc: See Note 411.1 at My Oracle Support for error and packaging details. Use ADRCI or Support Workbench to package the incident.
針對PGA單進程4GB內存空間的限制,查證當前操作系統相關限制參數設置為4GB:
[root@host ~]# more /proc/sys/vm/max_map_count 65530 [root@host ~]# more /proc/sys/vm/max_map_count 65530 [root@host ~]#
針對PGA單進程4GB內存空間的限制,使用如下sql語句查證oracle數據庫相關隱含參數設置為4GB:
_realfree_heap_pagesize_hint=65536 select a.ksppinm name, b.ksppstvl value, a.ksppdesc description from x$ksppi a, x$ksppcv b where a.indx = b.indx and a.ksppinm like '_realfree_heap_pagesize_hint';
如果實際情況可以,oracle官方允許PGA單進程設置為16GB,相關操作如下:
SOLUTION Change the upper limit at either the OS or at the database level: Change the page count at the OS level: more /proc/sys/vm/max_map_count sysctl -w vm.max_map_count=262144 (for example) **Please note the above changes will revert upon host reboot unless the changes are permanently made in the /etc/sysctl.conf file ** Adjust the realfree heap pagesize within the database by setting the following parameters in the init/spfile and restart the database. For versions 11.2.0.4 and lower: _use_realfree_heap=TRUE _realfree_heap_pagesize_hint = 262144 For 12.1 and higher: _use_realfree_heap=TRUE _realfree_heap_pagesize = 262144
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。