Skip to Content
avatar image
Former Member

JVM crashes on startup. (Error 8 allocating x Bytes)

Hello,

I recently installed Netweaver 2004s SR2 Developer Workplace in my Windows XP development machine (Core 2 Duo 2,33Ghz and 2GB of RAM).

The problem is that I haven't been able to start the J2EE engine. I checked the "Developer Trace" (on SAP MMC) and apparently it was an issue with some misplaced dlls (see notes: 943602, 940893, 736462, 856393, 129813 and 664269) which could be corrected by setting some environment variables in order to tell jlaunch to preload the conflicting dlls.

However, after a more detailed analysis of the logs I found that there was another error. Here is the relevant excerpt from std_server0.out:

--------------------------------------------------------------------------------
stdout/stderr redirect
--------------------------------------------------------------------------------
node name   : server0
pid         : 2716
system name : DW0
system nr.  : 00
started at  : Tue Apr 10 15:33:32 2007

Error 8 allocating 0x70000000 Bytes at 0x0

Then there is the address space layout for jlaunch and then the final part of the message:

------------------------------------------------
Address                   : 0.005 sec
Elapsed Time              : 0.010 sec
Virtual total             :        0 K
Virtual free              :  2073304 K
Virtual commit            :    17780 K
Virtual reserve           :     5940 K
------------------------------------------------

[Thr 3904] MtxInit: -2 0 0
Error occurred during initialization of VM
Could not reserve enough space for object heap

Does anybody know what does that Error 8 mean and how can I solve it? Thanks in advance for any help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 11, 2007 at 06:05 AM

    Hi Salvador,

    Please upgrade your jdk and jre.

    I have also installed the same package recently.

    The version of jdk, ,jce and jre is 1.4.2_13.

    If you have this or higher, then there problem can be somewhere else.

    Check out the SAP notes.

    Regards,

    Prashil

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I managed to get rid of the memory allocation error by entering a lower value for the environment variable jlaunch/ReserveSize (It doesn't work for 0x60000000 but it does for 0x40000000).

      Unfortunately there were still dlls fragmenting my address space, so I tried to restore my computer to a previous state and now I can't boot Windows.

      I'll have to try an installation repair and if that doesn't work I'll have to reinstall the whole system.

  • avatar image
    Former Member
    Apr 11, 2007 at 01:47 PM

    So, to summarize:

    Error 8 allocating x Bytes at 0x0000 

    means that jlaunch is trying to reserve too much memory. Try creating environment variable jlaunch/ReserveSize and setting it's value to something lower. Once the memory allocation is reported as sucessful in std_server0.out you can start tackling the memory fragmentation (preloading dlls with jlaunch/PreloadDLLs environment variable)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the solution!!!!!

      That will help if anybody stuck with same kind of solution

      Best Regards,

      Prashil