Re: Java VM Heap

From: Jared Dykstra (dyksjare_at_hotmail.com)
Date: 02/04/04

  • Next message: Silvio Malitsch: "Setting Background partly transparent"
    Date: 4 Feb 2004 10:48:41 -0800
    
    

    "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
    

  • Next message: Silvio Malitsch: "Setting Background partly transparent"

    Relevant Pages

    • Re: Java VM Heap
      ... >> do you guys know how to increase the maximum heap for the jvm? ... >> But i would like to give to my VM maximum heap defaults. ... > perhaps you should rework your code, ... thereby eliminitating a stack space dependency. ...
      (comp.lang.java)
    • 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)