开发者

IBM JRE 1.5 will not startup with the requested 1.5G memory

开发者 https://www.devze.com 2022-12-22 21:24 出处:网络
IBM JRE 5.0 on Windows, when given -Xmx1536m on a laptop with 2GB memory, refuses to start up: error message below. With -Xmx1000m it does start.

IBM JRE 5.0 on Windows, when given -Xmx1536m on a laptop with 2GB memory, refuses to start up: error message below. With -Xmx1000m it does start.

Also, it starts fine with -Xmx1536m on other servers and even laptops, so I think that there is something more than just inadequate memory.

Also, when started from within Eclipse (albeit, using the JRE in the IBM 5 JDK in this case) with the same memory parameter, it runs fine.

Any idea what is going on here?

JVMJ9VM015W Initialization error for library j9gc23(2): Failed to instantiate heap. 1536M requested Could not create the Java virtual machine


Edit:

Does anyone know about the "3GB switch" and if it 开发者_如何学Pythonis relevant here (beyond the obvious fact that approximately that this is a memory limitations problem). How can I tell if it is enabled and what is the most straightforward way to turnit on?


According to IBM DeveloperWorks:

Cause
The system does not have the necessary resources to satisfy the maximum default heap value required to run the JVM.

To resolve, here is what it says

Resolving the problem
If you receive this error message when starting the JVM, free memory by stopping other applications that might be consuming system resources.

Your JVM doesn't have enough memory resources to create maximum amount of heap space of 1536 MB. Just make sure that you have enough memory to accommodate it.

Also, I believe that in Windows, the maximum heap space is 1000MB? I'm not sure if that's solid, but in Linux/AIX, any Xmx more than 1GB works fine.


The JVM requires that it be able to allocate its memory as a single contiguous block. If you are on a 32-bit system, the maximum available is about 1280M more or less. To get more you must run a 64-bit JVM on a 64-bit OS.

You may be able to get a little more by starting the JVM immediately after rebooting.

As to starting OK on other systems, are those 32 or 64-bit?


Pretty much the maximum you are guaranteed to get on a Windows platform is 1450 MB. Sometimes Windows/Java.exe maps DLLS to addresses in the 1.5-2.0GB range. This doesn't change even if you use the /3GB trick (or you have an OS that supports it). You have to manually rebase the DLLs to get them higher towards the 2GB (or 3GB boundary). It's a real pain in the ass, and I've done it before, but the best I've ever been able to get with and without a combination of /3GB is 1.8G on 32bit Windows.

Best to be done with it and migrate to a 64-bit OS. They're prevalent now-a-days.


I have the same issue in IBM Engineering lifecycle installation:-

Problem:- JVMJ9VM015W Initialization error for library j9gc26(2): Failed to instantiate heap; Could not create the Java virtual machine.

Solution:- I just did it and solve my issue. If you don't have 16GB ram then please don't change the jazz server startup file. If you have 8GB ram then Only do not increase memory size in the server.: **set JAVA_OPTS=%JAVA_OPTS% -Xmx4G**
**set JAVA_OPTS=%JAVA_OPTS% -Xms4G**
**set JAVA_OPTS=%JAVA_OPTS% -Xmn1G**

0

精彩评论

暂无评论...
验证码 换一张
取 消