I did hear what you suggest too, that keeping the initial and max memory the same is a good idea, but I heard that in a very different context. The performance context is new to me.
>From what I had heard, earlier builds of tomcat 5.5.x had a problem wherein keeping these settings different would cause memory issues which would crash the server (I think a memory leak caused that). But these issues I heard have long been resolved. I used different settings on 5.5.25 and 5.5.26 with no issues. Joe -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]]on Behalf Of patrick zandi Sent: Tuesday, January 26, 2010 1:42 PM To: [email protected] Subject: Re: How to increase java.lang.OutOfMemoryError: Java heap space ** Joe, Let me ask it this way: the min and max according to the apache setting should be the same which keep performance to the max. Preventing of the sizing/re-sizing is a Performance hit as well. So is there new guidance out that they are recommending a differing of min and max now? and if so where? On Tue, Jan 26, 2010 at 1:15 PM, Pat Zandi <[email protected]> wrote: Question; you are using different settings? Apache performance guide says keep them the same? Has this changed? Just asking to stay up on configs. Thanks Sent from my iPhone On Jan 26, 2010, at 12:58 PM, Joe D'Souza <[email protected]> wrote: ** Sean, From your installation path of tomcat I can see you are running tomcat version 5.5.28. For this version the parameter that you need to reset in the tomcat startup file in the bin directory is CATALINA_OPT.. Open the startup file. Set the above parameter to " -Xmx<max memory>m -Xms<min initial>m" Calculate max memory to be less than 70% of the total available free memory on your server before the start of tomcat.. The minimum initial memory can safely be set at half the max memory calculated. You might also want to set incremental garbage collection by -Xincgc. This also would help in your performance and reduce out of memory errors by removing from memory least used portions of java memory. So lets say you calculate your max memory to be 2048 and minimum initial to be 1024, you will have CATALINA_OPT=" -Xmx2048m -Xms1024m -Xincgc" Stop and start tomcat for these changes to take effect. Hope this helps.. Joe -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]]on Behalf Of Sean Harrodine Sent: Tuesday, January 26, 2010 11:27 AM To: [email protected] Subject: How to increase java.lang.OutOfMemoryError: Java heap space ** Hi all, We are running apache tomcat 5.5.28 on our Linux midtier server and are seeing the following errors.......... # ps -ef|grep java root 8620 1 0 16:10 pts/0 00:00:09 /opt/jdk1.6.0_16/jre/bin/java -Djava.util.logging.config.file=/usr/apache-to mcat-5.5.28/conf/logging.properties -Xmx256m -Xms256m -Djava.util.logging.ma nager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/apache -tomcat-5.5.28/common/endorsed -classpath /usr/apache-tomcat-5.5.28/bin/bootstrap.jar -Dcatalina.base=/usr/apache-tomc at-5.5.28 -Dcatalina.home=/usr/apache-tomcat-5.5.28 -Djava.io.tmpdir=/usr/ap ache-tomcat-5.5.28/temp org.apache.catalina.startup.Bootstrap start java.lang.OutOfMemoryError: Java heap space java.util.TreeMap.put(TreeMap.java:554) com.bmc.arsys.api.RpcConverter.fromRpcArPropListToDisplayProp ertyMap(Unknown Source) com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceL ist(Unknown Source) com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields 14Out(Unknown Source) com.bmc.arsys.api.ProxyJRpc.ARGetMultipleFields(Unknown Source) com.bmc.arsys.api.ARServerUser.getListFieldObjects(Unknown Source) com.remedy.arsys.goat.CachedFieldMapInternal.<init>(Unknown Source) com.remedy.arsys.goat.Form.getCachedFieldMap(Unknown Source) com.remedy.arsys.goat.Form.getCachedFieldMap(Unknown Source) com.remedy.arsys.goat.action.ActionOpenDialog.<init>(Unknown Source) com.remedy.arsys.goat.action.ActionList.compileAction(Unknown Source) com.remedy.arsys.goat.action.ActionList.<init>(Unknown Source) com.remedy.arsys.goat.ActiveLink.<init>(Unknown Source) com.remedy.arsys.goat.ActiveLink.bulkLoad(Unknown Source) com.remedy.arsys.goat.ActiveLinkCollector.<init>(Unknown Source) com.remedy.arsys.goat.field.FieldGraph.instantiateFields(Unkn own Source) com.remedy.arsys.goat.field.FieldGraph.getHTMLData(Unknown Source) com.remedy.arsys.goat.field.FieldGraph.transmitHTML(Unknown Source) com.remedy.arsys.stubs.FormServlet.requestDispatch(Unknown Source) com..remedy.arsys.stubs.FormServlet.doRequest(Unknown Source) com.remedy.arsys.stubs.GoatServlet.postInternal(Unknown Source) com.remedy.arsys.stubs.GoatHttpServlet.doGet(Unknown Source) javax.servlet.http.HttpServlet.service(HttpServlet.java:627) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) Can anyone point me in the right direct as to where and how we can increase it please ?? TIA...as always ! Sean _Platinum Sponsor: [email protected] ARSlist: "Where the Answers Are"_ -- Patrick Zandi _Platinum Sponsor: [email protected] ARSlist: "Where the Answers Are"_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

