开发者社区> 问答> 正文

eclipse里面启动weblogic报错,在外部启动就正常。什么问题?报错

eclipse里面启动weblogic报错,在外部启动就正常。在eclipse里启动报错,信息如下,急啊。。。

weblogic Could not reserve enough space for object heap

could not create the java virtual machine...

是什么问题?怎么设置

展开
收起
爱吃鱼的程序员 2020-06-22 17:23:33 770 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    好牛逼的内存分配。。。你的机器内存一共多大?

    敢不敢把- Xms 设小一点,你给这个JVM最大分配  Xmx 1200m的堆内存,堆内存起始值 Xms也用了1200m,一下子全用光了!!!显然导致了结果。。。“ Couldnotreserveenoughspaceforobjectheap”

    报错信息补充:

    JAVAMemoryarguments:-Xms1200m-Xmx1200m-XX:CompileThreshold=8000-XX:PermSize=256m -XX:MaxPermSize=256m
    .
    WLSStartMode=Development
    .
    CLASSPATH=c:\bea\weblogic_crack.jar;C:\bea\wlserver_10.0\thirdparty\birt\js.jar;C:\bea\patch_wls1000\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea\patch_wlw1000\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\SOFTWE~1\Java\JAVA1.5\JDK\lib\tools.jar;C:\bea\WLSERV~1.0\server\lib\weblogic_sp.jar;C:\bea\WLSERV~1.0\server\lib\weblogic.jar;C:\bea\modules\features\weblogic.server.modules_10.0.0.0.jar;C:\bea\modules\features\com.bea.cie.common-plugin.launch_2.1.0.0.jar;C:\bea\WLSERV~1.0\server\lib\webservices.jar;C:\bea\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea\modules\NETSFA~1.0/lib/ant-contrib.jar;;C:\bea\WLSERV~1.0\common\eval\pointbase\lib\pbclient51.jar;C:\bea\WLSERV~1.0\server\lib\xqrl.jar;;
    .
    PATH=C:\bea\patch_wls1000\profiles\default\native;C:\bea\patch_wlw1000\profiles\default\native;C:\bea\WLSERV~1.0\server\native\win\32;C:\bea\WLSERV~1.0\server\bin;C:\bea\modules\ORGAPA~1.5\bin;D:\SOFTWE~1\Java\JAVA1.5\JDK\jre\bin;D:\SOFTWE~1\Java\JAVA1.5\JDK\bin;D:/softweares/Java/JRE/bin/client;D:/softweares/Java/JRE/bin;C:\Users\windy\Desktop\JLMedical_hj\passClient;C:\ProgramFiles\CommonFiles\MicrosoftShared\WindowsLive;E:\oracle\product\10.2.0\db_1\bin;C:\ProgramFiles\Intel\iCLSClient\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramFiles\Intel\Intel(R)ManagementEngineComponents\DAL;C:\ProgramFiles\Intel\Intel(R)ManagementEngineComponents\IPT;C:\ProgramFiles\Intel\OpenCLSDK\2.0\bin\x86;D:\softweares\Java\JDK\bin;D:\softweares\jboss\bin;D:\softweares\SVN\bin;D:\softweares\msysgit\bin;C:\ProgramFiles\WindowsLive\Shared;D:\softweares\Java\JDK/lib/tool.jar;D:\softweares\apache\apache-ant-1.7.1\bin;C:\Python27;D:\softweares\apache-maven-3.0.5\bin;D:\softweares\ldap\kfw\Binary;C:\ProgramFiles\MicrosoftSQLServer\80\Tools\Binn\;C:\ProgramFiles\MicrosoftSQLServer\90\DTS\Binn\;C:\ProgramFiles\MicrosoftSQLServer\90\Tools\binn\;C:\ProgramFiles\MicrosoftSQLServer\90\Tools\Binn\VSShell\Common7\IDE\;C:\ProgramFiles\MicrosoftVisualStudio8\Common7\IDE\PrivateAssemblies\;C:\bea\WLSERV~1.0\server\native\win\32\oci920_8
    .
    ***************************************************
    * TostartWebLogicServer,useausernameand *
    * passwordassignedtoanadmin-leveluser. For*
    * serveradministration,usetheWebLogicServer*
    * consoleathttp:\\hostname:port\console    *
    ***************************************************
    startingweblogicwithJavaversion:
    javaversion"1.5.0_22"
    Java(TM)2RuntimeEnvironment,StandardEdition(build1.5.0_22-b03)
    JavaHotSpot(TM)ClientVM(build1.5.0_22-b03,mixedmode,sharing)
    StartingWLSwithline:
    D:\SOFTWE~1\Java\JAVA1.5\JDK\bin\java-client -Xms1200m-Xmx1200m-XX:CompileThreshold=8000-XX:PermSize=256m -XX:MaxPermSize=256m -Xverify:none -da-Dplatform.home=C:\bea\WLSERV~1.0-Dwls.home=C:\bea\WLSERV~1.0\server-Dweblogic.home=C:\bea\WLSERV~1.0\server-Dwli.home=C:\bea\WLSERV~1.0\integration -Dweblogic.management.discover=true -Dwlw.iterativeDev=-Dwlw.testConsole=-Dwlw.logErrorsToConsole=-Dweblogic.ext.dirs=C:\bea\patch_wls1000\profiles\default\sysext_manifest_classpath;C:\bea\patch_wlw1000\profiles\default\sysext_manifest_classpath-Dweblogic.Name=SY-Medical-Server-Djava.security.policy=C:\bea\WLSERV~1.0\server\lib\weblogic.policy weblogic.Server
    ErroroccurredduringinitializationofVM
    Couldnotreserveenoughspaceforobjectheap
    CouldnotcreatetheJavavirtualmachine.


    引用来自“xue777hua”的答案

    好牛逼的内存分配。。。你的机器内存一共多大?

    敢不敢把- Xms 设小一点,你给这个JVM最大分配  Xmx 1200m的堆内存,堆内存起始值 Xms也用了1200m,一下子全用光了!!!显然导致了结果。。。“ Couldnotreserveenoughspaceforobjectheap”

    2020-06-22 17:23:49
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像