Re: Java VM Heap

From: nos (nos_at_nospam.com)
Date: 02/04/04


Date: Wed, 04 Feb 2004 22:00:07 GMT


"Jared Dykstra" <dyksjare@hotmail.com> wrote in message
news:ba84b53e.0402041048.2378b95c@posting.google.com...
> "kimbuba" <kimbuba3_NOSPAM@yahoo.it> wrote in message
news:<vnQSb.17402$VS6.12536@tornado.fastwebnet.it>...
> > Hello,
> > do you guys know how to increase the maximum heap for the jvm?
> > I know about giving to apps args like:
> > -Xmx<size> set maximum Java heap size
> >
> > But i would like to give to my VM maximum heap defaults.
> > Any application that will use my Vm is set as default to -Xmx256M;
without
> > setting it manually for each app.
> >
> > thnx!
> > Kimbuba.
>
> It depends on your virtual machine.
>
> Note how this is problematic: The goal of Java is to 'write once, run
> anywhere.' If you have to tweak the VM, you begin to defeat this
> principle. If you need hundreds of megs available stack space,
> perhaps you should rework your code, removing some recursion and using
> a queue instead, thereby eliminitating a stack space dependency.
>
> ---
> Jared Dykstra
> http://www.bork.org/~jared

or you could convert local variables to fields
then they would be on the heap and not on the stack



Relevant Pages

  • Re: Java VM Heap
    ... > do you guys know how to increase the maximum heap for the jvm? ... > I know about giving to apps args like: ... > But i would like to give to my VM maximum heap defaults. ... thereby eliminitating a stack space dependency. ...
    (comp.lang.java)
  • Re: JNI_CreateJavaVM fails in client jvm, if initial/max heap sizes are specified
    ... > However, if I specify the initial and maximum heap sizes (i.e., -Xms ... > and -Xmx options) while creating JVM (i.e., ... the application fails at JNI_CreateJavaVM call. ... fails if the minimum heap size is more then the maximum heap size. ...
    (comp.lang.java.programmer)
  • Display Default Heap Size
    ... I've scoured the internet for this and can't find any helpful ... Is there any way for the JVM to display the default ... maximum heap size on a system? ...
    (comp.lang.java.machine)
  • Java VM Heap
    ... do you guys know how to increase the maximum heap for the jvm? ... I know about giving to apps args like: ... But i would like to give to my VM maximum heap defaults. ...
    (comp.lang.java)