aspose file tools*
The moose likes Tomcat and the fly likes How/Where I change values to [ JVM ] ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How/Where I change values to [ JVM ] ?" Watch "How/Where I change values to [ JVM ] ?" New topic
Author

How/Where I change values to [ JVM ] ?

Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Hi.

In this moment I have this output, (see my atachment).

What you think?
What is the best values?
How I can increment?
Thanks


[Thumbnail for java.PNG]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42644
    
  65
There are no "best" values - those depend entirely on the memory requirements of your web apps. But why do you want to change them? It looks like the used memory is just a fraction of the available memory.

You can change them in the catalina.bat/catalina.sh scripts in Tomcat's conf directory. Adding something like "set JAVA_OPTS=%JAVA_OPTS% -Xms256M -Xmx1024M" at the right location would push the max. memory up to 1GB.


Ping & DNS - my free Android networking tools app
Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Ulf Dittmer wrote:...why do you want to change them?
Becouse in little time I up file .war and I no like the message "...Out of Memory...".

Please see my top/memory.

What you think?


[Thumbnail for 009.PNG]

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42644
    
  65
Frankly, those few numbers don't tell me anything. If I wanted to dig into the memory consumption of a servlet container I'd install something like http://code.google.com/p/psi-probe/, or open the container up for JMX so that I could connect to it using Visualvm. Either approach would tell you a lot more about what's going on inside of your JVM than those crude numbers.
Gabriel Pinares
Greenhorn

Joined: Mar 11, 2008
Posts: 16
Ulf Dittmer wrote:Frankly, those few numbers don't tell me anything
I believe this show 1/2 GIGA free in RAM.

Then what you think about increment memory of TomCat to 512 MB ? or 756 ?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42644
    
  65
I have no opinion about either. You should make that decision based on what you learned by taking a closer look at the memory consumption of your JVM.
 
 
subject: How/Where I change values to [ JVM ] ?