Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: memory tomcat

Christopher Schultz

2007-07-12

Replies:

Alvaro,

alvaro tovar wrote:
> i am trying of configure my tomcat, but i have 2 questions. [1)] is
> [it] possible to configure tomcat for use 3 gb?

Maybe. Most 32-bit JVMs can't actually give you 3GB of heap space.
You'll probably be limited to somewhere between 1.5 - 2.0GB. If you have
a 64-bit processor and OS, go with a 64-bit JVM and then you can get
/lots/ of memory.

> i actually have the memory [set to] 1.5 [GB], but i don't know if
> [there is] a limit, and the other tomcat reserve the memory

I'm not entirely sure what you mean, here. Could you try to ask this
question in a different way?

> when starts or when his need this. i have this in catalina.bat:
>
> ...  -Xms1584m -Xmx1584m ...

That ought to give you a 1.5GB fixed (no more, no less) heap.

-chris


Attachment: signature.asc
©2008 junlu.com - Jax Systems, LLC, U.S.A.