ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stojanov Alexej" <Stoja...@iskv.de>
Subject AW: Memory and Ant
Date Wed, 24 Oct 2007 07:33:48 GMT
For example:

set ANT_OPTS=-Xms128m -Xmx512m

Alexey

-----Ursprüngliche Nachricht-----
Von: Gilles Scokart [mailto:gscokart@gmail.com] 
Gesendet: Dienstag, 23. Oktober 2007 20:07
An: Ant Users List
Betreff: Re: Memory and Ant

The answers of Sumit and Charles say to increase the memory of a java
program launched from an ant script.

I think that what you want is increasing the size of the jvm executing the
ant script itself.  And that's the answer of Glenn.  Before launching the
ant script, you can define the environment variable ANT_OPTS that will be
added to the options given to the jvm running your ant script.

Gilles

2007/10/23, Sumit.Srivastava@ubs.com <Sumit.Srivastava@ubs.com>:
>
> Hi,
>
>         I meant the ANT tasks,for eg
> <java jar="dist/test.jar" fork="true" failonerror="true" maxmemory="128m">
>
> This link might help you more
> http://ant.apache.org/manual/CoreTasks/java.html
>
> Hth,
> Sumit
>
>
> -----Original Message-----
> From: Knuplesch, Jürgen [mailto:Juergen.Knuplesch@icongmbh.de]
> Sent: Tuesday, October 23, 2007 10:44 AM
> To: Ant Users List
> Subject: AW: Memory and Ant
>
> Hi Sumit,
>
>
> Thank you for the answer!!
> I did not understand, where I have to make a change:
>
> What do you mean in this context with the expression "tasks"?
> Do you mean a batchfile or the commandline or an Ant Task or the ANT
> cmd-File or sth else?
>
> Please show me an example?
>
>
>
> --
> Jürgen Knuplesch                    www.icongmbh.de
> icon Systemhaus GmbH                Tel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart                   Fax. +49 711 806098-299
>
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
> -----Ursprüngliche Nachricht-----
> Von: Sumit.Srivastava@ubs.com [mailto:Sumit.Srivastava@ubs.com]
> Gesendet: Dienstag, 23. Oktober 2007 16:32
> An: user@ant.apache.org
> Betreff: RE: Memory and Ant
>
> Yes,
>         basically it needs to be passed as an argument to java.exe.
> In ANT it can be accomplished, if you add "maxmemory=128m" to the tasks.
>
> If you run ant with -v (verbose) option you would see that
> "maxmemory=128m" translates into java.exe -Xmx128m.
>
>
> HTH,
> Sumit
>
> To go far, explore first what is near..
>
> -----Original Message-----
> From: Knuplesch, Jürgen [mailto:Juergen.Knuplesch@icongmbh.de]
> Sent: Tuesday, October 23, 2007 9:56 AM
> To: user@ant.apache.org
> Subject: Memory and Ant
>
> Hello,
>
> Is it possible to increase the memory of an Ant-Buildprocess via
> "-Xmx128m" and where do I have to put it?
>
> My Buildprocess quits with a java.lang.OutOfMemoryError Message.
>
> Greetings
>
> --
> Jürgen Knuplesch                    www.icongmbh.de
> icon Systemhaus GmbH                Tel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart                   Fax. +49 711 806098-299
>
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only for
> the individual named.  If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail.  Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and delete
> this e-mail from your system.
>
> E-mails are not encrypted and cannot be guaranteed to be secure or
> error-free as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore does
> not accept liability for any errors or omissions in the contents of this
> message which arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be construed
> as a solicitation or offer to buy or sell any securities or related
> financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mails are not encrypted and cannot be guaranteed to be secure or
> error-free as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses.  The sender
> therefore does not accept liability for any errors or omissions in the
> contents of this message which arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities
> or related financial instruments.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Gilles SCOKART


***********************************************************************

Die Information in dieser email ist vertraulich und ist ausschließlich 
für den/die benannten Adressaten bestimmt. Ein Zugriff auf diese
email durch andere Personen als den/die benannten Adressaten ist
nicht gestattet. Sollten Sie nicht der benannte Adressat sein, löschen
Sie bitte diese email. 

***********************************************************************

ARGE Informationssysteme
in der gesetzlichen Krankenversicherung GmbH
Paul-Klinger-Straße 15, 45127 Essen 
 
Amtsgericht Essen HRB 11122
Vorsitzender des Aufsichtsrates: Wolfgang Schmeinck
Geschäftsführer: Frank Krause, Andreas Prenneis


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message