Settings default JVM heap size

H

Harpstein

Hello all,

I'm trying to figure out how to set the JVM max heap size default.

I know about java -Xmx but I'm trying to run an Ant task and "java -Xmx256m
ant ..." is not working so I'm kinda lost.

Isn't there some kind of config file I can add for the JVM everytime it
starts up? Everything I've found on Google just tells people to use
java -Xmx<size> class but I don't think that applies to me.


Any help would be greatly appreciated.

harpstein
 
J

Jose Rubio

If you are executing the <java> task in Ant you can add the <jvmarg
value="=Xmx256m" /> tag to it. For the default one use the ANT_OPTS
environment variable. Read the Ant manual for more information

Hope it helps.

Jose Rubio
 
H

Harpstein

Awesome!

That worked great

Now I just have to figure out this xdocs stuff :(

-harpstein
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top