After you install apache, it pre-configures it with only 256 MB initial and max memory which is not enough for most standard web based applications these days. So these have to be changed manually if your application will consume more than that (and the Mid-Tier requires way more than that) with even a basic setup.
The 30% headroom is what is recommended by Apache which is why its not a good idea to use more than 70% of available free memory. This memory consumption should ideally be monitored periodically especially if you install other apps after installing the Mid-Tier on the server.. Joe -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[email protected]]on Behalf Of Pat Zandi Sent: Tuesday, January 26, 2010 1:15 PM To: [email protected] Subject: Re: How to increase java.lang.OutOfMemoryError: Java heap space ** 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.fromRpcArPropListToDisplayProper tyMap(Unknown Source) com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceLis t(Unknown Source) com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14 Out(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(Unknow n 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 _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

