It's important to realize that this is setting the size of the Java heap
within the JVM (which sounds like what you're looking for) and not the
actual size of the JVM itself.  Also note that you're not always going
to get the best performance out of your app by using a large heap size
because while it decreases the frequency of GC's the time each GC takes
is going to increase (more to collect).  So, and I know I'm not the
first to say this, play around with the different settings until you
find the one that suits your app.

Jeremy

> -----Original Message-----
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 10:27 AM
> To: Tomcat Users List
> Subject: RE: How to set JVM memory size?
> 
> Set an environment variable called JAVA_OPTS and set your max and min
to
> whatever you want like this...
> 
> -Xmx512m -Xms256m
> 
> Brandon
> 
> -----Original Message-----
> From: Ming Zhao [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 05, 2002 11:49 AM
> To: [EMAIL PROTECTED]
> Subject: How to set JVM memory size?
> 
> 
> Hi,
> 
> I have a question to seek for your help. How do I set
> the JVM memory size? I use Apache Tomcat4.1.16 and
> J2SDK1.3. Now it seems that I have a problem of not
> enough memory to implement the java bean. I want to
> set JVM memory with writing some commands to some
> file. So Tomcat can activate J2SDK with set memory
> size. How to do that?
> 
> Thanks in advance,
> Ming
> 
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to