It's all about the answers!

Ask a question

cannot create jvm


tony gao (16) | asked Feb 10 '10, 5:13 a.m.
I downloaded the express-c for win, and run the script "server.start.bat", but the RTC server cannot be loaded, the dos window flashed and disappeared.


I change the content of the script "server\tomcat\bin\startup.bat,
so that the dos prompt windows keeps on the screen.

"call "%EXECUTABLE%" start %CMD_LINE_ARGS%"
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

Then, on a dos prompt, I run "server.start.bat", the following shows:
"
JVMJ9VM015W Initialization error for library j9gc23(2): Failed to instantiate heap; 1500M requested.

Cannot create java virtual machine.
"

My laptop's OS is Windows xp sp2, and has 4G RAM.

Before I run "server.start.bat", the system show the free physical RAM 1866000k.


Help, pls.

2 answers



permanent link
Jose Miguel Ordax Cassa (2.4k4126100) | answered Feb 11 '10, 12:53 a.m.
On 2/10/2010 11:23 AM, gaoguoliangtt wrote:
I downloaded the express-c for win, and run the script
"server.start.bat", but the RTC server cannot be loaded,
the dos window flashed and disappeared.


I change the content of the script
"server\tomcat\bin\startup.bat,
so that the dos prompt windows keeps on the screen.

"call "%EXECUTABLE%" start %CMD_LINE_ARGS%"
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

Then, on a dos prompt, I run "server.start.bat", the
following shows:
"
JVMJ9VM015W Initialization error for library j9gc23(2): Failed to
instantiate heap; 1500M requested.

Cannot create java virtual machine.
"

My laptop's OS is Windows xp sp2, and has 4G RAM.

Before I run "server.start.bat", the system show the free
physical RAM 1866000k.


Help, pls.


It seems to be a memory problem. The JVM asks for 1.5Gb for the Heap
plus its own necessary memory which doesn't fit in your 1.8Gb.

Not as final solution, but just as a test, can you edit this file
....\server\server.startup.bat and modify at line 70, -Xmx1500m by
-Xmx1024m for example?

Hope it helps,

Chemi.

permanent link
tony gao (16) | answered Feb 11 '10, 2:30 a.m.
On 2/10/2010 11:23 AM, gaoguoliangtt wrote:
I downloaded the express-c for win, and run the script
"server.start.bat", but the RTC server cannot be loaded,
the dos window flashed and disappeared.


I change the content of the script
"server\tomcat\bin\startup.bat,
so that the dos prompt windows keeps on the screen.

"call "%EXECUTABLE%" start %CMD_LINE_ARGS%"
to
call "%EXECUTABLE%" run %CMD_LINE_ARGS%

Then, on a dos prompt, I run "server.start.bat", the
following shows:
"
JVMJ9VM015W Initialization error for library j9gc23(2): Failed to
instantiate heap; 1500M requested.

Cannot create java virtual machine.
"

My laptop's OS is Windows xp sp2, and has 4G RAM.

Before I run "server.start.bat", the system show the free
physical RAM 1866000k.


Help, pls.


It seems to be a memory problem. The JVM asks for 1.5Gb for the Heap
plus its own necessary memory which doesn't fit in your 1.8Gb.

Not as final solution, but just as a test, can you edit this file
....\server\server.startup.bat and modify at line 70, -Xmx1500m by
-Xmx1024m for example?

Hope it helps,

Chemi.




Yes, got it!

At least, I can try it now. tks.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.