Notifications
Clear all

[Solved] Increasing -Xmx2048M in tomcatinsetenv.bat

3 Posts
2 Users
0 Reactions
4,337 Views
0
Topic starter

How do I control the -Xmx value in tomcatinsetenv.bat from local.properties or build.xml? I would like to increase the memory for all developers working on the spec

1 Answer
0

Add following property in install-staging/local.properties (with desired value)

server.jvm.Xmx=2048M

and execute following in install-staging

ant setup-tomcat-server

tsmith Topic starter 2020-04-09 09:04:00
This post was modified 2 years ago by tsmith

I increased the size in install-staging/build.properties to persist the change.

Piyush Patil 2020-04-09 10:04:00

Its not recommended to change this value in install-staginguild.properties. Since this branch can be shared by other spec as well and they may not desire this change. Instead of this you can create a properties file for your spec. e.g. if your spec file in instance-specs is Neo3.2.spec then create Neo3.2.properties in the same directory and add the property mentioned above. You need to submit this file to perforce so that every time the spec is bootstrapped, the config is applied in tomcat.