Re: Java VM Heap
From: nos (nos_at_nospam.com)
Date: 02/04/04
- Next message: Andrew Thompson: "Re: Help needed with updating JSP Structs Bean using Tomcat"
- Previous message: Maria Gaitani: "what's the difference with the constructor"
- In reply to: Jared Dykstra: "Re: Java VM Heap"
- Next in thread: kimbuba: "Re: Java VM Heap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Andrew Thompson: "Re: Help needed with updating JSP Structs Bean using Tomcat"
- Previous message: Maria Gaitani: "what's the difference with the constructor"
- In reply to: Jared Dykstra: "Re: Java VM Heap"
- Next in thread: kimbuba: "Re: Java VM Heap"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|