On 19/04/2010 12:54, Woude, Alexander van der wrote:
> Sorry a small correction. The client times out, because the tomcat gives a 
> Heap Space memory error.
> 
> config in startup.sh :
> 
> export JAVA_OPTS="-Xms128m -Xmx512m"
> export CATALINA_OPTS="-Xms512m -XX:MaxPermSize=512m"

You're setting -Xms twice there.  Why?

Why are you setting the memory in two different environment variables?

> My apps are 7 war, that  each contain its own deps. Size of 1 war is 14 MB
> 
> How do I check the memory the tomcat uses?

 jmap -heap <pid>

You could post the result of that here.


p


> Greetings
> Alex
> 
> 
> ________________________________________
> Van: Woude, Alexander van der [alexander.vander.wo...@capgemini.com]
> Verzonden: maandag 19 april 2010 13:49
> Aan: users@tomcat.apache.org
> Onderwerp: memory problems / time outs
> 
> Hello All
> 
> For a client I developed a few Data webservices. In total there are 7 
> services.
> All are CXF based webservices that use hibernate.
> 
> I keep having memory problems, so I increased both JAVA_OPTS as CATALINA_OPTS.
> Now I get timed out errors and tomcat blocks completely, I only can resolve 
> things by restarting the tomcat server.
> 
> I did profile my services and I did profile my hibernate DAO's and it seems 
> fine.
> I have no clue where to look anymore for a solution, any idea is welcome.
> 
> I use tomcat-6.0.18 on RedHat enterprise linux 5 , 64 bit version. With a 
> OpenJDK java6 64 JVM.
> 
> Thanks
> Alex
> 
> 
> 
> 
> 
> 
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not the 
> intended recipient, you are not authorized to
> read, print, retain, copy, disseminate, distribute, or use this message or 
> any part thereof. If you receive this message
> in error, please notify the sender immediately and delete all copies of this 
> message.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 
> 
> 
> 
> 
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not the 
> intended recipient, you are not authorized to 
> read, print, retain, copy, disseminate, distribute, or use this message or 
> any part thereof. If you receive this message 
> in error, please notify the sender immediately and delete all copies of this 
> message.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to