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

标题: weblogic安装psu报错: java.lang.OutOfMemoryError [打印本页]

作者: 郑全    时间: 2016-7-1 14:04
标题: weblogic安装psu报错: java.lang.OutOfMemoryError
D:\oracle\Middleware\utils\bsu>bsu.cmd -install -patch_download_dir=D:\oracle\Mi
ddleware\utils\bsu\cache_dir -patchlist=DEM4 -prod_dir=D:\oracle\Middleware\wlse
rver_10.3
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.apache.xmlbeans.impl.store.Cur.createElementXobj(Cur.java:257)
        at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.startElement(Cur.ja
va:2992)
        at org.apache.xmlbeans.impl.store.Locale$SaxHandler.startElement(Locale.
java:3194)
        at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportStartTag(Piccolo.j
ava:1082)
        at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseOpenTagNS(Picc
oloLexer.java:1473)
        at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseTagNS(PiccoloL
exer.java:1362)
        at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseXMLNS(PiccoloL
exer.java:1293)
        at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.parseXML(PiccoloLex
er.java:1261)
        at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.
java:4808)
        at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
        at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:140
0)
        at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
        at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3435
)
        at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
70)
        at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:12
57)
        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaType
LoaderBase.java:345)
        at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.create(XBeanData
HandlerSpiImpl.java:130)
        at com.bea.plateng.patch.dao.cat.PatchCatalogFactory.createDataHandler(P
atchCatalogFactory.java:49)
        at com.bea.plateng.patch.dao.cat.PatchCatalogFactory.create(PatchCatalog
Factory.java:175)
        at com.bea.plateng.patch.dao.cat.PatchCatalogFactory.create(PatchCatalog
Factory.java:99)
        at com.bea.plateng.patch.dao.cat.PatchCatalogFactory.create(PatchCatalog
Factory.java:85)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchCatalog(Patc
hCatalogHelper.java:84)
        at com.bea.plateng.patch.PatchSystem.updatePatchCatalog(PatchSystem.java
:363)
        at com.bea.plateng.patch.PatchSystem.refresh(PatchSystem.java:130)
        at com.bea.plateng.patch.PatchSystem.setCacheDir(PatchSystem.java:201)
        at com.bea.plateng.patch.Patch.main(Patch.java:281)


作者: 郑全    时间: 2016-7-1 14:07
根据网上的资料,一般是由于内存分配太少导致,检查 bsu.cmd文件,发现该文件内容如下:

@ECHO OFF
SETLOCAL

SET JAVA_HOME=D:\Java\jdk1.6.0_27
FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi

SET JAVA=%1
IF DEFINED JAVA (
  SET JAVA=java
) ELSE (
  SET JAVA=javaw
)

set MEM_ARGS=-Xms256m -Xmx512m

"%JAVA_HOME%\bin\%JAVA%" %MEM_ARGS% -jar patch-client.jar %*

ENDLOCAL

修改这里的 set MEM_ARGS=-Xms256m -Xmx512m 设置为

set MEM_ARGS=-Xms512m -Xmx1024m

之后,再去执行,问题解决:

D:\oracle\Middleware\utils\bsu>bsu.cmd -install -patch_download_dir=D:\oracle\Mi
ddleware\utils\bsu\cache_dir -patchlist=DEM4 -prod_dir=D:\oracle\Middleware\wlse
rver_10.3
检查冲突...
未检测到冲突

正在安装补丁程序 ID: DEM4..
结果: 成功





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