问答文章1 问答文章501 问答文章1001 问答文章1501 问答文章2001 问答文章2501 问答文章3001 问答文章3501 问答文章4001 问答文章4501 问答文章5001 问答文章5501 问答文章6001 问答文章6501 问答文章7001 问答文章7501 问答文章8001 问答文章8501 问答文章9001 问答文章9501

aix系统运行xhost + 出错1356-200 xhost unable to open display

发布网友 发布时间:2022-04-08 04:32

我来回答

2个回答

懂视网 时间:2022-04-08 08:53


Thu Aug 21 09:01:26 2014 WARNING: Heavy swapping observed on system in last 5 mins. pct of memory swapped in [8.42%] pct of memory swapped out [2.16%]. Please make sure there is no memory pressure and the SGA and PGA are configured correctly. Look at DBRM trace file for more details.
Thu Aug 21 14:56:27 2014 WARNING: Heavy swapping observed on system in last 5 mins. pct of memory swapped in [5.40%] pct of memory swapped out [8.63%]. Please make sure there is no memory pressure and the SGA and PGA are configured correctly. Look at DBRM trace file for more details.
......
Sat Oct 18 22:13:48 2014 WARNING: Heavy swapping observed on system in last 5 mins. pct of memory swapped in [7.76%] pct of memory swapped out [0.33%]. Please make sure there is no memory pressure and the SGA and PGA are configured correctly. Look at DBRM trace file for more details.
客户的环境是IBM P570,AIX 6.1,安装了Oracle 11.2.0.3单实例数据库,物理内存64G,只分配了20G给SGA,採用memory自己主动管理
查阅了一下MOS,发现是AIX平台上的一个bug。相关文档为:[1508575.1]
相应的数据库和平台:
Oracle Database - Enterprise Edition - Version 11.2.0.3 to 11.2.0.3 [Release 11.2] IBM AIX on POWER Systems (64-bit)
症状:

There is new warning message in alert.log in 11.2.0.3 similar to

WARNING: Heavy swapping observed on system in last 5 mins.
pct of memory swapped in [2.08%] pct of memory swapped out [0.12%].
Please make sure there is no memory pressure and the SGA and PGA 
are configured correctly. Look at DBRM trace file for more details.

On AIX platform this message can be seen even when there is no virtual memory swapping at all.    --物理内存足够,并且根本没有使用swap交换空间

You may compare the vmstat from AIX level with DBRM trace file entries to see the differences.


原因:

The issue is caused by unpublished Bug:14731911.
 
Swap usage messages are based on statistics that do not reflect the actual usage.

The v$osstat does not reflect proper stats for the swap space paging.


解决方法:

Apply Patch:11801934 on top of your IBM AIX on POWER Systems (64-bit) platform. 

P.S: Bug is port-specific.    --这个bug是针对端口指定的平台的

The issue is fixed in patchset 11.2.0.4 and release 12.1.    --说是在12.1的patch中修复了。但实际上12.1还是会有这个问题。会有ora-700错误,详见文档:[ID 1919850.1]


来看一下BUG:14731911的描写叙述:

Bug 属性

   
 

B - Defect
2 - Severe Loss of Service 11.2.0.3
96 - Closed, Duplicate Bug 212 - IBM AIX on POWER Systems (64-bit)
2012-10-8
2014-10-11 11801934
11.2.0.3 Port-Specific
Oracle

id=14731911" style="font-size:14px; color:rgb(0,113,194); padding-top:5px; font-family:Helvetica,sans-serif">与此 Bug 相关的知识, 补丁程序和 Bug

技术分享
 
 

相关产品

   
 

Oracle Database Products Oracle Database Suite
Oracle Database 5 - Oracle Database - Enterprise Edition
技术分享
Hdr: 14731911 11.2.0.3 RDBMS 11.2.0.3 VOS PRODID-5 PORTID-212 11801934
Abstract: FALSE SWAP WARNING MESSAGES PRINTED TO ALERT.LOG ON AIX
 
*** 10/08/12 04:52 am ***
  
  
  BUG TYPE CHOSEN
  ===============
  Code
  
  SubComponent: Virtual Operating System
  ======================================
  DETAILED PROBLEM DESCRIPTION
  ============================
  Oracle process seems to check wrong OS local statistic (which include also
  FILESYSTEM caching etc.)
  
  Alert log shows WARNING: Heavy swapping observed on system in last 5 mins.
  pct of memory swapped in [2.08%] pct of memory swapped out [0.12%].
  Please make sure there is no memory pressure and the SGA and PGA 
  are configured correctly. Look at DBRM trace file for more details.
  
  but this is not reflected at OS level.
  
  DIAGNOSTIC ANALYSIS
  ===================
  1. nmon shows virtual memory swapping does not occur at all - see attached file --nmon根本没有监控到swap动作
  
  2. Oracle Database Server is 11.2.0.3 and contains fix for 10220118
  
  3. Server configuration
  real mem: 144GB
  lowest value of fre memory : 87,65 GB --剩余内存充足
  
  4. DBRM seems to use a wrong OS statistics - trace file is attached
  
  WORKAROUND?
  ===========
  No
  
  TECHNICAL IMPACT
  ================
  Wrong diagnostic analyze.
  Message is bothering customer‘s DBA when in fact the warning message is
  misleading
  
  RELATED ISSUES (bugs, forums, RFAs)
  ===================================
  http://myforums.oracle.com/jive3/thread.jspa?threadID=1104581 
  10220118
  
  HOW OFTEN DOES THE ISSUE REPRODUCE AT CUSTOMER SITE?

  ====================================================   Always     DOES THE ISSUE REPRODUCE INTERNALLY?

  ====================================   No     EXPLAIN WHY THE ISSUE WAS NOT TESTED INTERNALLY.   ================================================   Unavailable Data Volume     IS A TESTCASE AVAILABLE?   ========================   No     Link to IPS Package:   ====================   not available


DBRM(Database Resource Manager)是11gR2中新特性中出现的后台进程。会在alert.log告警日志中反映OS操作系统近期5分钟是否有剧烈的swap活动。而在AIX平台上,由于BUG:14731911的存在。oracle的这个进程谎报了内存进行了swapin和swapout动作。我们知道。仅仅有当物理内存真的不够用的情况下,才会去用swap(一般会配置成物理内存的2倍),而swap是很耗费性能的(从物理磁盘读写)。

可是个人觉得这个bug的危害性并不大,仅仅仅仅是在alert.log日志中报了一个WARNING,并没有由于这个影响导致对数据库更加负面的影响,因此是否打补丁到11.2.0.4就见仁见智了。假设想让alert.log平安无事。那么就能够升级一下patch。

当然了,假设真的是由于OS内存吃紧造成的swap动作。就要差别对待了。由于此时的确会对数据库造成严重影响。要区分是否真的内存不足而非系统误报。那么主要还是通过nmon,topas,vmstat等监控工具来进行分析(linux下还能够用free监控)

对于AIX平台,事实上还有还有一个bug,仅仅只是是unpublished base bug,而不是port-specific bug

AIX Platform

If your Platform is IBM-AIX then this is not the only possible reason for this alert log message. 
For IBM AIX on POWER Systems (64-bit), there is also next known port-specific bug:

id=14731911&parent=DOCUMENT&sourceId=1452790.1">Bug 14731911 - FALSE SWAP WARNING MESSAGES PRINTED TO ALERT.LOG ON AIX
with unpublished base bug:
Bug 11801934 : WRONG PAGE-IN AND PAGE-OUT OS VM STATS IN AIX.


在vmware平台中的这个WARNING信息。假设不是bug引起,则非常有可能和ora-04031/ora-04030相关,这个就严重多了

VMWare

Under VMWare, the messages may perhaps indicate a more serious issue, even when no memory related ORA-4031/ORA-4030 errors are reported. 
Under circumstances, an instance in a virtual machine may be simply terminated by PMON due to error 471 without further errors in the alert log.
The OS logs may in such case report an out of memory condition like below:

[root@vmh ~]# grep Kill /var/log/messages*
/var/log/messages-20140629:Jun 27 18:29:06 vmh-msfc-dodp02 kernel: [1895074.304941] Out of memory: Kill process 42094 (oracle) score 391 or sacrifice child
/var/log/messages-20140629:Jun 27 18:29:06 vmh-msfc-dodp02 kernel: [1895074.305203] Killed process 42094, UID 303, (oracle) total-vm:189081588kB, anon-rss:27412kB, file-rss:109612


通常解决OS内存swap问题有下面几种方案:

1. 诊断是否存在内存泄露的进程,解决内存泄露 2. 调优SGA/PGA,降低oracle对内存的占用 3. 利用/proc/sys/vm/drop_caches,临时释放一些cache的内存(Linux) 4. 调整系统VM内存管理參数, 比如Linux上sysctl.conf中的下面几个參数:


vm.min_free_kbytes:Raising the value in /proc/sys/vm/min_free_kbytes will cause the system to start reclaiming memory at an earlier time than it would have before.


vm.vfs_cache_pressure:At the default value of vfs_cache_pressure = 100 the kernel will attempt to reclaim dentries and inodes at a “fair” rate with respect to pagecache and swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer to retain dentry and inode caches. Increasing vfs_cache_pressure beyond 100 causes the kernel to prefer to reclaim dentries and inodes.


vm.swappiness:default 60,Apparently /proc/sys/vm/swappiness on Red Hat Linux allows the admin to tune how aggressively the kernel swaps out processes‘memory. Decreasing the swappiness setting may result in improved Directory performance as the kernel holds more of the server process in memory longer before swapping it out.


设置下面值,以降低OOM(Out Of Memory)的可能性:

# Oracle-Validated setting for vm.min_free_kbytes is 51200 to avoid OOM killer
vm.min_free_kbytes = 51200
vm.swappiness = 40
vm.vfs_cache_pressure = 200


 

版权声明:本文博客原创文章,博客,未经同意,不得转载。

AIX6.1/11.2.0.3在有关数据库SWAP一个BUG

标签:

热心网友 时间:2022-04-08 06:01

请检查一下网络设置,特别是/etc/hosts文件设置,和网络关系比较大。追问服务器只设置了ent0,#hostname是CIBMBP;/etc/hosts的文件设置:
127.0.0.1 loopback localhost CIBMBP
XXX.XX.X.XXX CIBMBP

追答把127.0.0.1 loopback localhost CIBMBP中的CIBMBP去掉,试试

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com
苹果电脑电池充不进电苹果电脑充不进去电是怎么回事 苹果电脑不充电没反应苹果电脑充电指示灯不亮充不了电怎么办 狗狗更加忠诚护家、善解人意,养一只宠物陪伴自己,泰迪能长多大... 描写泰迪狗的外形和特点的句子 国外留学有用吗 花钱出国留学有用吗 !这叫什么号 百万医疗赔付后是否可以续保 前一年理赔过医疗险还能续保吗? 医疗住院险理赔后还能购买吗? 求推荐个工作提醒软件,要单机版不联网都能用的。最好能循环提醒的,例如每月第几号,或第几个周一之类的 在北京下单京东一天能到吗 马驹桥联通营业厅地址 牛堡屯哪有卖火车票 牛堡屯附近有买火车票的吗 北京马驹桥联通营业厅五一节放假吗 毛衣开衫外套的毛线里有塑料丝正常吗 北京通州区马驹桥有联通营业厅吗? 我的电脑在网页上怎么打不开输入法啊 中款开衫毛衣外套里面怎么搭配衣服 北京傲天海阁票务有限公司马驹桥第一售票处怎么样? 我的电脑输入法打不开了 北京联通马驹桥营业厅在哪? 用键盘打不开输入法??? 小周易附近火车票代售点 电脑打不开输入法是什么原因,打不了字。。。 马驹桥镇有卖火车票站点 亦庄马驹桥 神龙、潼关小区是大产权的房子吗 为什么电脑打不开输入法?打不起字。为什么会这样? 通州马驹桥神龙辛屯小区收电费的和物业同属一个单位吗? 上海宝钢集团是做什么的?是造飞机零件的嘛 PS图片自由变换ctrl+T快捷键无反应怎么办 进上海宝钢上班 请问一下 宝钢的操作维护岗位主要是做什么工作的?很辛苦吗?属于操作工吗? 请哪位大神帮忙解惑吧 告诉你,我不是没人爱,是我不想.这句话该怎么回答 什么是钢厂 钢厂干什么用的 《没有你我又不是没人爱》这段歌词是在哪首歌呀? 宝钢工程技术集团公司怎么样?发展如何?我是做结构设计的,谢谢 歌词有原来我不是没人爱…虑荣心在作怪…是什么歌 我又不是没人爱,凭什么要为你等待 其实我比谁都坏 除了你我谁都爱是什么歌? 进上海宝钢上班? 我不是没人要,没人爱,我只是选择了你,一个不可能的你!!! 太阳能管破了换了新管为什么漏水?怎么办 我是不是没人爱? 有首歌歌名的其中一段是 你拽 你拽 你拽 没有你我又不是没人爱 你拽 你拽什么拽 谁知道这首歌的歌名啊?? 上海宝钢集团总部经济管理院是干什么的 瞳孔距和眼镜片的大小有关吗?谢谢 我很着急!!!!!!!!!是不是瞳孔越大眼镜片就越大? 有一首歌我不知道歌曲名了,就知道里面有句《离开你我有不是没人爱》 我想学习oracle数据库,要看什么书?从初级到高级 配眼镜的时侯瞳距大小与镜框大小有关吗?