Re: Settings default JVM heap size

From: Jose Rubio (spam_at_airphoria.com)
Date: 12/12/03


Date: Fri, 12 Dec 2003 05:34:14 GMT

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

"Harpstein" <mharp@seapine.com> wrote in message
news:vthhaapd10i3a@corp.supernews.com...
> 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
>
>



Relevant Pages

  • Re: =?iso-8859-1?Q?Kompatibilit=E4t?= von Konzepten von PHP zu Java
    ... Java bietet mit Sicherheit Konzepte, die in PHP ... Aber wahrscheinlich kann sie mit ant umgehen. ... Wahrscheinlich wirst du mit ant nicht kompilieren, das ist in eclipse ...
    (de.comp.lang.java)
  • Re: Tools um Java Projekte zu compilieren
    ... Mein Vorschlag geht eigentlich eher in die Richtung dass man aufhört lauter Tasks zu schreiben und subsprachen zu erfinden, sondern das in *einer* Sprache ausdrückt ... Und was make für Java wenig sinnvoll erscheinen lässt ist, dass make für jedes in Java geschriebene Tool eine neue VM startet und diese VM ewig braucht bis das Tools zu arbeiten anfängt. ... Also musste was neues her und es kam Ant. ... dank nativer Syntax in groovy auch nicht unbedingt das grosse Problem. ...
    (de.comp.lang.java)
  • Re: replacing maven with rake + rjb + ant
    ... It is being used by the Raven build tool for Ant tasks, ... I have it working in the native Ruby ... We do 99.999% of our development in java. ...
    (comp.lang.ruby)
  • When invoking task under ant, system props do not seem to be inherited as the docs imply they
    ... I have a very simple java file 'PropTest.java' that prints out the ... command line, ... But when I set up a simple ant build.xml file to invoke the program ... via the task it appears that the value of the system property ...
    (comp.lang.java.programmer)
  • Re: Makefiles for JAVA
    ... > source files in Java. ... > find that ant fans are very religious about the tool. ... dependencies between files and the steps to create them. ...
    (comp.lang.java.programmer)