Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Instant crash with vmparams and .bat xmx larger than 1024  (Read 2326 times)

Ishman

  • Captain
  • ****
  • Posts: 269
    • View Profile
Instant crash with vmparams and .bat xmx larger than 1024
« on: November 16, 2014, 08:48:17 AM »

As the title goes.
32 bit windows, 6gigs, physical address extension.

Note, these crashes are instant and don't produce log files.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24131
    • View Profile
Logged

Debido

  • Admiral
  • *****
  • Posts: 1183
    • View Profile
Re: Instant crash with vmparams and .bat xmx larger than 1024
« Reply #2 on: November 16, 2014, 10:36:17 AM »

Use 64 bit windows if trying out a number of mods on large quantities of ram. PAE is somewhat irrelevant here as well, you only see that on apps that are PAE aware and Java isn't one of them. Java 32 bit on windows is not the best choice as you will pretty much never be able to use more than 1Gb of RAM for the game.

This is due to a number of factors but the end result is windows 32 bit + Java = 1gb heap To ensure contiguous memory allocation. You have 6gb of Ram but only 4ish is addressable, of that 2gbb is reserved for windows and 2gb for users apps. Of that the developers of Java could only ever get 1gb of space guaranteed of contiguous space.

Why contiguous? Because it is a virtual machine that runs on top of your windows os, and then the Starsector game runs on top of the VM. While inside that VM it is fully contained with its own memory space.

 you will not get around that until you go 64-bit windows and 64 bit Java. You could always use dual boot to *nix 64-bit too in a pinch too.
Logged