> From: Monimoy Deb [mailto:[EMAIL PROTECTED] > Subject: Question on JVM maximum heap size parameter in tomcat > > So, I am looking for the logic for specifying optimum > value for Xmx parameter which I can specify without > any manual intervention.
This has nothing to do with Tomcat per se, but rather with JVM operation. Maximum heap size also has nothing to do with the amount of RAM on your system. Instead, it is limited by the largest contiguous are available within the process virtual space. On most 32-bit systems, the process virtual space is limited to 2 GB, but some of this must be allocated to code and data structures necessary for operation of the process. Fragmentation may also occur within the process virtual space, further limiting the maximum heap size. The amount of RAM does come into play when taking performance into account, of course, since a heap that exceeds the available RAM is likely to suffer from significant paging activity. The net result is that there is no guaranteed or automatically calculable maximum heap setting - you have to experiment for the platform you're running on. - Chuck P.S. Things work better when -Xms = -Xmx. THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]