Settings default JVM heap size

From: Harpstein (mharp_at_seapine.com)
Date: 12/11/03


Date: Thu, 11 Dec 2003 14:27:24 -0500

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: Help me!! Why java is so popular
    ... For Sun's JVM the option -Xms is used to specify the minimum heap size. ... Within the min/max limits the heap will grow and shrink as required, although it doesn't always shrink as quickly as might be desirable. ... It may be that your web server system configured the JVM with a high minimum value for the heap. ...
    (comp.lang.java.programmer)
  • Re: one thread is created for each object construction?
    ... The object "e" is represented by a data structure on the heap. ... There is bytecode at a location in the JVM that represents the data and methods of the object. ... Construction of an object does not spawn a new thread, not in the JVM, not anywhere, not nohow. ... (Of course, it is possible that someone somewhere might write a JVM that violates this, but it doesn't change the conceptual model. ...
    (comp.lang.java.programmer)
  • Re: Need help
    ... > records" on the heap, and let the garbage collector clean up the mess ... facility in Java or the JVM for returning references to locals... ... can't see any reason why a JVM would need to heap allocate activation ... > at least one C compiler that uses heap allocated stacks. ...
    (comp.arch)
  • Re: bind CPUs to the process?
    ... > would be more suitable for constraining CPU use, ... > get stuck into segment 2 at exec, the heap for dynamic loads. ... I don't think the JVM supports DSA (dynamic segment ... sacrificing segments available for shared memory segments). ...
    (comp.unix.aix)
  • Suns 1.5 JVM: the -XX:DefaultMaxRAM option and its cousins
    ... Sun's 1.5 JVM has some heap size configuration parameters that are not ... DefaultInitialRAMFraction is a command line ... Similarly the maximum heap size will be set to phys_mem / ...
    (comp.lang.java.programmer)