Larry Gates wrote:
> [SNIP]
> >
> >>You can specify a larger heap
> >>with the command line option -Xmx32m, for example.
> >
> >Right, there is only a little syntax error: the option is -mx32m.
>
> interesting feature. What is the rationale behind the idea of a heap
> size? Whynot just use whatever RAM is available?
>
If I'm not mistaken, the rationale is that using any and all available memory
would allow a program to essentially do a denial-of-service attack on the
machine from within the JVM, by doing exactly what the example program of this
thread does. Having a pre-assigned heap that is say %90 of available memory on
a server would allow the JVM to kill the program without completely crippling
the machine. It's very useful for companies such as ourselves who provide
servlet capability to customers for their web pages.
Dallas Hockley
Vice President --- The opinions
are mine. Not the company's. Standard disclaimers apply.
Cybersurf Corp.
www.cybersurf.net
>
> -Larry Gates
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]