无效的最大堆大小 [英] Invalid maximum heap size

查看:255
本文介绍了无效的最大堆大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从另一个位置复制了一个jdk目录.从那时起,我收到以下错误消息.

I have copied a jdk directory from another location. Since then, I get the following error message.

Your environment has been set.
java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode, sharing)
PROPS=-Xms1024m -Xmx5096m -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -Djava.ext.dirs=..;.;..\lib;..\classes -Dfile.encoding=UTF-8
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK15~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
Invalid maximum heap size: -Xmx5096m
The specified size exceeds the maximum representable size.
Could not create the Java virtual machine.

这是否意味着我将不得不重新安装jdk,而不仅仅是复制任何安装目录?我要的是这个问题,而不是自己尝试尝试,因为该练习必须在客户端计算机上完成.

Does this mean I will have to re-install the jdk, and not just copy any installation directory? I'm asking this and not trying it out myself because this exercise will have to be done in a client machine.

当前计算机是Windows 2008服务器,并且具有 12GB 的RAM.

The current machine is a Windows 2008 server and has 12GB of RAM.

推荐答案

您正在使用32位VM(Java HotSpot(TM)客户端VM),该VM可以映射到最大4G(实际上只有2 GB)2 ^ 32地址位置最大Java堆64位操作系统上的32位JVM的大小

You are using 32 bit VM (Java HotSpot(TM) Client VM) which can be mapped to maximum 4G (Only 2 GB in reality) 2^32 address locations Maximum Java heap size of a 32-bit JVM on a 64-bit OS

无效的最大堆大小:-Xmx5096m指定的大小超出了可表示的最大大小.

Invalid maximum heap size: -Xmx5096m The specified size exceeds the maximum representable size.

您可以修改-Xmx参数以使用anythinng< = 2g应该可以在这里工作

You can modify the -Xmx parameter to use anythinng <=2g should work here

这篇关于无效的最大堆大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆