Settings default JVM heap size

Discussion in 'Java' started by Harpstein, Dec 11, 2003.

  1. Harpstein

    Harpstein Guest

    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
     
    Harpstein, Dec 11, 2003
    #1
    1. Advertisements

  2. Harpstein

    Jose Rubio Guest

    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" <> wrote in message
    news:...
    > 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
    >
    >
     
    Jose Rubio, Dec 12, 2003
    #2
    1. Advertisements

  3. Harpstein

    Harpstein Guest

    Awesome!

    That worked great

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

    -harpstein


    "Jose Rubio" <> wrote in message
    news:qrcCb.11398$...
    > 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" <> wrote in message
    > news:...
    > > 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
    > >
    > >

    >
    >
     
    Harpstein, Dec 12, 2003
    #3
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. iris
    Replies:
    1
    Views:
    24,145
    Robert Olofsson
    Oct 30, 2003
  2. E. Ulrich Kriegel
    Replies:
    1
    Views:
    789
    Mark Thornton
    May 29, 2004
  3. Michal Slocinski

    Heap dump file size vs heap size

    Michal Slocinski, Mar 25, 2008, in forum: Java
    Replies:
    1
    Views:
    833
    GArlington
    Mar 25, 2008
  4. donet programmer
    Replies:
    3
    Views:
    1,795
    Gregory A. Beamer
    Nov 20, 2009
  5. Raymond Schanks
    Replies:
    0
    Views:
    674
    Raymond Schanks
    Apr 11, 2010
Loading...

Share This Page