Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread Gadgil, Abhijeet
On command line please set the following parameters,

java -Xmsinitial heap size -Xmxmaximum heap size

Defaults are:

java -Xms32m -Xmx128m

You can set this either in the Java Control Panel or on the command line, 
depending on the environment you run your application.



A



The opinions, statements, and/or suggested courses of action expressed in this 
E-mail do not necessarily reflect those of my employer.  My voluntary 
participation in this forum is not intended to convey any kind of role for my 
employer


From: Action Request System discussion list(ARSList) [arsl...@arslist.org] On 
Behalf Of Sean Harrodine [sean_rem...@yahoo.co.uk]
Sent: Tuesday, January 26, 2010 9:56 PM
To: arslist@ARSLIST.ORG
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/000:00:09 /opt/jdk1.6.0_16/jre/bin/java 
-Djava.util.logging.config.file=/usr/apache-tomcat-5.5.28/conf/logging.properties
 -Xmx256m -Xms256m 
-Djava.util.logging.manager=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-tomcat-5.5.28 
-Dcatalina.home=/usr/apache-tomcat-5.5.28 
-Djava.io.tmpdir=/usr/apache-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.fromRpcArPropListToDisplayPropertyMap(Unknown 
Source)
   com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList(Unknown 
Source)
   
com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out(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(Unknown 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: rmisoluti...@verizon.net ARSlist: Where the Answers Are_

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread patrick zandi
does your system (os) actually have physical memory availible?
IF it does then change the setting below with the following flags.  -Xmx256m
-Xms256m -- TO -- -Xmx1024m -Xms1024m
this will help, but you will also need to ensure you have a Free 1.5 to 2.0
Gig availible.

hope that helps..

IF you do not have the physical memory, you can make it lower.. like 512
512...

On Tue, Jan 26, 2010 at 11:26 AM, Sean Harrodine sean_rem...@yahoo.co.ukwrote:

 **
  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/000:00:09
 /opt/jdk1.6.0_16/jre/bin/java
 -Djava.util.logging.config.file=/usr/apache-tomcat-5.5.28/conf/logging.properties
 -Xmx256m -Xms256m
 -Djava.util.logging.manager=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-tomcat-5.5.28
 -Dcatalina.home=/usr/apache-tomcat-5.5.28
 -Djava.io.tmpdir=/usr/apache-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.fromRpcArPropListToDisplayPropertyMap(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out(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(Unknown
 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: rmisoluti...@verizon.net ARSlist: Where the Answers
 Are_




-- 
Patrick Zandi

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread Joe D'Souza
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  -Xmxmax
memorym -Xmsmin initialm

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:arsl...@arslist.org]on Behalf Of Sean Harrodine
  Sent: Tuesday, January 26, 2010 11:27 AM
  To: arslist@ARSLIST.ORG
  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/000: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.fromRpcArPropListToDisplayPropertyMa
p(Unknown Source)
 com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList(Un
known Source)
 com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out(
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(Unknown
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:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread Pat Zandi
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 jdso...@shyle.net 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  -Xmxmax  
memorym -Xmsmin initialm


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:arsl...@arslist.org]on Behalf Of Sean Harrodine

Sent: Tuesday, January 26, 2010 11:27 AM
To: arslist@ARSLIST.ORG
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/000:00:09 /opt/jdk1.6.0_16/jre/ 
bin/java -Djava.util.logging.config.file=/usr/apache-tomcat-5.5.28/ 
conf/logging.properties -Xmx256m -Xms256m - 
Djava.util.logging.manager=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-tomcat-5.5.28 -Dcatalina.home=/usr/apache- 
tomcat-5.5.28 -Djava.io.tmpdir=/usr/apache-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.fromRpcArPropListToDisplayPropertyMap 
(Unknown Source)

com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList 
(Unknown Source)

com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out 
(Unknown Source)

   com.bmc.arsys.api.ProxyJRpc.ARGetMultipleFields(Unknown Source)
   com.bmc.arsys.api.ARServerUser.getListFieldObjects(Unknown  
Source)
   com.remedy.arsys.goat.CachedFieldMapInternal.init 
(UnknownSource)

   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 
(Unknown 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: rmisoluti...@verizon.net ARSlist: Where the  
Answers Are_


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread patrick zandi
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 remedy...@gmail.com 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 jdso...@shyle.net 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  -Xmxmax memorym
 -Xmsmin initialm

 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:
 arsl...@arslist.org]*on Behalf Of *Sean Harrodine
 *Sent:* Tuesday, January 26, 2010 11:27 AM
 *To:* arslist@ARSLIST.ORG
 *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/000:00:09
 /opt/jdk1.6.0_16/jre/bin/java
 -Djava.util.logging.config.file=/usr/apache-tomcat-5.5.28/conf/logging.properties
 -Xmx256m -Xms256m
 -Djava.util.logging.manager=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-tomcat-5.5.28
 -Dcatalina.home=/usr/apache-tomcat-5.5.28
 -Djava.io.tmpdir=/usr/apache-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.fromRpcArPropListToDisplayPropertyMap(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out(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(Unknown
 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: rmisoluti...@verizon.net ARSlist: Where the Answers
 Are_




-- 
Patrick Zandi

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are


Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread Joe D'Souza
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:arsl...@arslist.org]on Behalf Of Pat Zandi
  Sent: Tuesday, January 26, 2010 1:15 PM
  To: arslist@ARSLIST.ORG
  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 jdso...@shyle.net 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  -Xmxmax
memorym -Xmsmin initialm

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:arsl...@arslist.org]on Behalf Of Sean Harrodine
  Sent: Tuesday, January 26, 2010 11:27 AM
  To: arslist@ARSLIST.ORG
  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/000: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

Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread Joe D'Souza
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:arsl...@arslist.org]on Behalf Of patrick zandi
  Sent: Tuesday, January 26, 2010 1:42 PM
  To: arslist@ARSLIST.ORG
  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 remedy...@gmail.com 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 jdso...@shyle.net 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  -Xmxmax
memorym -Xmsmin initialm

  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:arsl...@arslist.org]on Behalf Of Sean Harrodine
Sent: Tuesday, January 26, 2010 11:27 AM
To: arslist@ARSLIST.ORG
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/000: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

Re: How to increase java.lang.OutOfMemoryError: Java heap space

2010-01-26 Thread patrick zandi
Thanks Joe.. I am now following ya.. Appreciate that..



On Tue, Jan 26, 2010 at 1:53 PM, Joe D'Souza jdso...@shyle.net wrote:

 **
 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:
 arsl...@arslist.org]*on Behalf Of *patrick zandi
 *Sent:* Tuesday, January 26, 2010 1:42 PM
 *To:* arslist@ARSLIST.ORG
  *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 remedy...@gmail.com 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 jdso...@shyle.net 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  -Xmxmax memorym
 -Xmsmin initialm

 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:
 arsl...@arslist.org]*on Behalf Of *Sean Harrodine
 *Sent:* Tuesday, January 26, 2010 11:27 AM
 *To:* arslist@ARSLIST.ORG
 *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/000:00:09
 /opt/jdk1.6.0_16/jre/bin/java
 -Djava.util.logging.config.file=/usr/apache-tomcat-5.5.28/conf/logging.properties
 -Xmx256m -Xms256m
 -Djava.util.logging.manager=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-tomcat-5.5.28
 -Dcatalina.home=/usr/apache-tomcat-5.5.28
 -Djava.io.tmpdir=/usr/apache-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.fromRpcArPropListToDisplayPropertyMap(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter..fromRpcArDisplayInstanceList(Unknown
 Source)

  com.bmc.arsys.api.RpcHandConverter.fromRpcArGetMultipleFields14Out(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(Unknown
 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