Create account / Log in

JVM Heap size

Discussion area for the development team.

Moderators: uckelman, Tim M

JVM Heap size

Postby pixelpshr » August 14th, 2020, 3:25 pm

I'm trying to increase the default maximum heap size from 512 to 1024 MB. My vassal startup script specifies "-Xmx1G" in the java parameter list. I've found several places in the code that hardcodes the max as 512, and I have changed it everywhere that I can find. But, the size in the preferences panel remains at 512. Are the "GlobalOptions" saved to a file somewhere that I haven't found?

-Thom
User avatar
pixelpshr
 
Posts: 23
Joined: March 23rd, 2020, 1:40 pm
Location: Yorktown, VA, US, Earth, Sol, Milky Way

Re: JVM Heap size

Postby DrNostromo » August 14th, 2020, 6:19 pm

I've found that changing heap size is module specific. Load the module you want, go into Preferences, change your heap size, close down and reload your module. The heap will now remain locked for that module unless you change it.
User avatar
DrNostromo
 
Posts: 1069
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: JVM Heap size

Postby pixelpshr » August 14th, 2020, 7:42 pm

can this be set inside the module so it is pre-set for every user of the module?
User avatar
pixelpshr
 
Posts: 23
Joined: March 23rd, 2020, 1:40 pm
Location: Yorktown, VA, US, Earth, Sol, Milky Way

Re: JVM Heap size

Postby DrNostromo » August 15th, 2020, 11:13 pm

I don't believe there is.
User avatar
DrNostromo
 
Posts: 1069
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: JVM Heap size

Postby Avalon » November 14th, 2020, 8:48 am

pixelpshr wrote:can this be set inside the module so it is pre-set for every user of the module?

it is per module, not per user
Avalon
 
Posts: 2
Joined: November 14th, 2020, 8:44 am

Re: JVM Heap size

Postby jrwatts » November 14th, 2020, 10:06 pm

I'm pretty sure it's per module and user, not just per module (so, to answer the OP, no, each user has to set it themselves, unfortunately). Please correct me if I'm mistaken!
jrwatts
 
Posts: 125
Joined: April 29th, 2020, 10:30 pm

Re: JVM Heap size

Postby Avalon » November 18th, 2020, 2:15 pm

jrwatts wrote:I'm pretty sure it's per module and user, not just per module (so, to answer the OP, no, each user has to set it themselves, unfortunately). Please correct me if I'm mistaken!

yes, you are right
Avalon
 
Posts: 2
Joined: November 14th, 2020, 8:44 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests