Addnode.sh失败,日志文件报错PRKC-1025 & java.lang.OutOfMemoryError: Java heap space

环境: 

Linux 5.5 + RAC 11203

问题描述:

添加集群成员命令如下:

$GRID_HOME/oui/bin/addNode.sh -silent "CLUSTER_NEW_NODES={X3850AR}" "CLUSTER_NEW_PRIVATE_NODE_NAMES={X3850AR-priv}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={X3850AR-vip}"

报错如下:

Instantiating scripts for add node (Wednesday, January 14, 2015 1:06:57 AM CST)

.                                                                 1% Done.

Instantiation of add node scripts complete

Copying to remote nodes (Wednesday, January 14, 2015 1:06:59 AM CST)

.......SEVERE:Abnormal program termination. An internal error has occured. Please provide the following files to Oracle Support :

"/grid/oraInventory/logs/addNodeActions2015-01-14_01-06-38AM.log"

"/grid/oraInventory/logs/oraInstall2015-01-14_01-06-38AM.err"

"/grid/oraInventory/logs/oraInstall2015-01-14_01-06-38AM.out"

其中.err部分内容如下:

oracle.ops.mgmt.cluster.SharedDeviceException: PRKC-1025 : Failed to create a file under the filepath
/grid because the filepath is not executable or writable

at oracle.ops.mgmt.nativesystem.UnixSystem.isSharedPath(UnixSystem.java:1623)

at oracle.ops.mgmt.cluster.Cluster.isSharedPath(Cluster.java:1109)

at oracle.sysman.oii.oiip.oiipg.OiipgCFSDriveCheck.isDriveOnCFS(OiipgCFSDriveCheck.java:655)

at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.isVolumeOnCFS(OiicAddNodeSummaryInformation.java:164)

at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.computeSpaceInfo(OiicAddNodeSummaryInformation.java:459)

at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.initializeAddNodeSession(OiicAddNodeSummaryInformation.java:383)

at oracle.sysman.oii.oiic.OiicAddNodeSummaryInformation.<init>(OiicAddNodeSummaryInformation.java:140)

at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.writeSummaryInformation(OiifwAddNodeSummaryWCDE.java:212)

at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.logDialog(OiifwAddNodeSummaryWCDE.java:204)

at oracle.sysman.oii.oiif.oiifb.OiifbWizChainDlgElem.doOperation(OiifbWizChainDlgElem.java:702)

at oracle.sysman.oii.oiif.oiifw.OiifwAddNodeSummaryWCDE.doOperation(OiifwAddNodeSummaryWCDE.java:180)

at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)

at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:1380)

at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:294)

at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:579)

at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:969)

at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:906)

Exception java.lang.OutOfMemoryError: Java heap space occurred..

java.lang.OutOfMemoryError: Java heap space

at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)

at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)

解决思路:

检查/grid的大小,和读写权限正常,如下如示:

...

Cluster Node Addition Summary

Global Settings

Source: /grid/app/11.2.0/grid

New Nodes

Space Requirements

New Nodes

X3850AR

         /grid: Required 8.77GB : Available 29.02GB

Installed Products

...

[[email protected] grid]# ls -ld /grid/

drwxrwxr-x 5 grid oinstall 4096 Jan 14 00:44 /grid/

...

OutOfMemoryError -->>>>>>> JAVA内存不足:

[[email protected] ~]$ cd cd $GRID_HOME/oui/

[[email protected] oui]$ grep JRE_MEMORY_OPTIONS oraparam.ini

#JRE_MEMORY_OPTIONS=" -mx150m"   <<<<<<<默认值是150M

JRE_MEMORY_OPTIONS=" -mx1024m" <<<<<<<<修改值为1024M

重新执行addNode.sh脚本,执行成功

时间: 2024-11-05 15:56:18

Addnode.sh失败,日志文件报错PRKC-1025 & java.lang.OutOfMemoryError: Java heap space的相关文章

解决sqoop报错:java.lang.OutOfMemoryError: Java heap space

报错栈: 2017-06-15 16:24:50,449 INFO [main] org.apache.sqoop.mapreduce.db.DBRecordReader: Executing query: select "CTJX60","CTJX61","CTJX62","CTJX63","CTJX64","CTJX65","CTJX66","CTJX6

排查sqoop报错:Error running child : java.lang.OutOfMemoryError: Java heap space

报错栈: 2017-06-16 19:50:51,002 INFO [main] org.apache.hadoop.mapred.MapTask: Processing split: 1=1 AND 1=1 2017-06-16 19:50:51,043 INFO [main] org.apache.sqoop.mapreduce.db.DBRecordReader: Working on split: 1=1 AND 1=1 2017-06-16 19:50:51,095 INFO [mai

Linux运行Java出现“Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: Java heap space”报错

在运行如下程序时出现“Exception in thread "main" java.lang.OutOfMemoryError: Java heap space”报错: java -jar picard.jar SortVcf I=hg19.sites.vcf O=hg19.sites.sorted.vcf SEQUENCE_DICTIONARY=hg19.dict 出现这种报错说明内存不足.因此我们可以加上“-Xmx”参数 java -Xmx60g -jar picard.jar

Tomcat 启动项目报错 java.lang.OutOfMemoryError: Java heap space

近日使用myeclipse 部署web项目,启动tomcat时报错: SEVERE: Error waiting for multi-thread deployment of directories to completehostConfig.deployWar=Deploying web application archive {0} java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap s

JDBC连接mysql,查大数据集报:java.lang.OutOfMemoryError: Java heap space

问题描述: 在项目中需要连接mysql,查询上千上万的记录,每个字段都挺大.结果在Eclipse中报如下错误: java.lang.OutOfMemoryError: Java heap space 原因分析: mysql会将查询到的记录全部发送到java端保存,而JVM中如果98%的时间是用于GC,且可用的Heap size 不足2%的时候将抛出此异常信息.JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存空间的设置.JVM在启动的时候会自动设置Heap size的值,其初始空间

eclipse中报错:java.lang.OutOfMemoryError: Java heap space

问题: 在eclipse中运行java程序,去重100多万的数据,报如下错误: java.lang.OutOfMemoryError: Java heap space 异常原因: 在JVM中如果98%的时间是用于GC且可用的 Heap size 不足2%的时候将抛出此异常信息. JVM堆的设置是指java程序运行过程中JVM可以调配使用的内存空间的设置.JVM在启动的时候会自动设置Heap size的值,其初始空间(即-Xms)是物理内存的1/64,最大空间(-Xmx)是物理内存的1/4.可以利

eclipse内存溢出报错:java.lang.OutOfMemoryError:Java heap space.

1 查看内存: workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs,在里面加上SHOW_MEMORY_MONITOR=true,重启eclipse,就可以在其左下角看到内存使用情况. 2 修改内存: 方法一: 找到eclipse/eclipse.ini,打开,在其上加上 -vmargs-Xms128m-Xmx512m-XX:permSize=64M-XX:MaxPermSize=

Eclipse 报 “Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: Java heap space ”错误的解决办法

1.打开Eclipse软件,选择菜单栏run,在二级菜单中选择 Debug Configurations...  项,如下图所示. 2.在弹出的窗口中选择 (x)=Arguments 选项卡,VM arguments 输入框中输入所需要的内存最大占用量,我这里输入的是800兆.最后点击Apply按钮即可. [附]MyEclipse的设置地址在run--->Open Run Dialog--->Arguments

打开xmind文件报错

xmind文件在拷贝到其他电脑上的时候,打开报如下的错误信息: 'java.lang.OutOfMemoryError': Java heap space 如下图所示: 具体原因就不再次做过多的解释了,按照如下的方法修改后,本人的文件已可以正常打开 到XMIND安装的根目录下面找到XMind.ini文件,并打开 查找 -vmargs 一般在文件的倒数第三行,然后在该行下面添加两行 -vmargs   //下面是要添加的内容 -Xms128M  -Xmx512M 保存之后即可打开 如果还不能打开,