On 19/04/2010 14:39, Woude, Alexander van der wrote: > Pid, considering I put the _OPTS in my startup.sh file, can it be they are > not used?
It was probably used, but the settings you specified overlap with each other, so the -Xms in JAVA_ is replaced by the second setting in CATALINA_ > What is the quickest way to find out? jmap -heap <pid> p > ________________________________________ > Van: Pid [...@pidster.com] > Verzonden: maandag 19 april 2010 15:33 > Aan: Woude, Alexander van der > Onderwerp: Re: memory problems / time outs > > On 19/04/2010 14:05, Woude, Alexander van der wrote: >> Wel actually when memeory problems appeared I started with the CATALINA_OPTS >> to increase memeory. >> >> When after a while problems appeared again, I thought to understand that I >> had to increase the heap size op the JVM memory. > > That's what you were doing. > >> In the end I wanted more memeory allocated for the tomcat. >> SO please tell me what is the best one for me, if u can. > > JAVA_OPTS and CATALINA_OPTS are both used when the starting Tomcat, > JAVA_OPTS is also used when stopping Tomcat. > > Environment variables don't apply separately to the JVM, Tomcat or > applications, it's all set per JVM. > > All of the settings should be in CATALINA_OPTS in your case. > >> And I am doubting now if it is in the right file, the startup.sh Can u >> confirm if that is okay? > > Environment settings can be placed in bin/setenv.sh, create the file if > it doesn't exist. > > > p > > >> Greetings Alexander >> >> ________________________________________ >> Van: Pid [...@pidster.com] >> Verzonden: maandag 19 april 2010 14:50 >> Aan: Tomcat Users List >> Onderwerp: Re: memory problems / time outs >> >> On 19/04/2010 13:24, Woude, Alexander van der wrote: >>> Thanks for the suggestions this far. >>> I had an oversight with the tomcat monitoring, didnt notice it on the site. >>> >>> I will try that just as the suggestions about JStack etc. >>> >>> why 2 Xms settings? >>> I thought to have understood that catalina en java opts were 2 seperate >>> things but I was wrong? >> >> They are different. I'm asking why you have set them, what are you >> trying to achieve? >> >> >> p >> >>> Thanks >>> Alex >>> ________________________________________ >>> Van: Harry Metske [harry.met...@gmail.com] >>> Verzonden: maandag 19 april 2010 14:16 >>> Aan: Tomcat Users List >>> Onderwerp: Re: memory problems / time outs >>> >>> 2010/4/19 Woude, Alexander van der <alexander.vander.wo...@capgemini.com> >>> >>>> 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" >>>> >>>> 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? >>>> >>> >>> you can also enable JMX, see >>> http://tomcat.apache.org/tomcat-6.0-doc/monitoring.html#Enabling >>> JMX Remote and use jconsole to monitor real time memory usage. >>> >>> >>> >>>> 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 >>>> >>>> >>> >>> >>> >>> >>> >>> >>> 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. >> > > > > > > > > > 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. >
signature.asc
Description: OpenPGP digital signature