-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Subhru,
On 3/30/15 7:40 AM, Paul, Subhro wrote: > -----Original Message----- From: Konstantin Kolinko > [mailto:[email protected]] Sent: Sunday, March 29, 2015 5:59 > PM To: Tomcat Users List Subject: Re: Tomcat server Performance > imporvement required > > Email sent from outside of PSEG. Use caution before using > links/attachments. > > > 2015-03-29 9:52 GMT+03:00 Paul, Subhro <[email protected]>: >> Dear Team, >> >> I am an application developer from TCS and working for PSEG >> (https://www.pseg.com). >> >> You might have seen my queries which I forwarded on 12 Feb, 2015 >> for Tomcat server crashing issue. After that we have added some >> resources to the servers. Now we have two Tomcat6 servers each >> one is having 16GB of RAM and 8CUPS. All server are Linux 6.5 64 >> bit OS. >> >> As per application architecture we have two Apache Proxy servers >> and two Tomcat servers. Also we have two loadbalancers, one for >> Proxy loadbalancing and another for Tomcat loadbalancing. So, >> when request comes that comes to proxy loadbalncer first then >> Apache Proxy server -> Tomcat loadbalancer -> Tomcat server. >> >> Some days back on 19th and 23rd of March another incident occurs >> when server faced some issues again. This time none of the >> servers where crashed but for some highly used pages in the site, >> Apache proxy server started complaining Timeout which is 60 >> seconds. After googling we thought we could increase the Time out >> in Proxy but client don't accept that. >> >> So we need some tuning parameters on Tomcat server for better >> performance. Below are some of the setting parameters from actual >> server. Ports are masked. >> >> >> Initializing param: >> >> JAVA_OPTS="${JAVA_OPTS} -Xms1024M -Xmx1024M" >> CATALINA_OPTS="${CATALINA_OPTS} -Xms1024M -Xmx1024M" > > Memory options should go into CATALINA_OPTS only, not both. > > If you are using a 64-bit JVM, it needs more memory than a 32-bit > JVM would need, as object pointers require more memory. > > <...> > > Best regards, Konstantin Kolinko > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > > > > Dear Team, > > Thanks for your replies. > > We are going to increase the heap size of CATALINA to 4GB like > CATALINA_OPTS="${CATALINA_OPTS} -Xms4096M -Xmx4096M". I'm not sure expanding your heap is going to help. If you aren't getting OutOfMemoryError, then heap memory isn't your problem. > Is it required to increase the maxThread count also as we are > increasing the heap size? As of now the this parameter is as > below: > > maxThreads="512" If you increase maxThreads, you will need more memory just for thread stacks. Your maxThreads should be adjusted based upon the amount of traffic you need to be able to handle. If 512 threads is able to handle your current workload, I don't see any reason to increase it. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVGVoAAAoJEBzwKT+lPKRYbhcQAIQ44P3oCPzdqxV9kKyNY0aC Nhme+aMEEFUvvYRc4AjT8wiiXZeiums17MQG8X7oXRK+5vx+8cisLh5RkUgEcks8 kO8asDgII6W0RoIj/VVTDmhN58OlIyELpY8l3Jcb37sLStsmMGK240ESh/iaiRtU /SPUrcEUrDO2FCJcsBPsDkZ+iHGjoQxIhSqsOCbaruI/OXz50GFfWmPhrfAGOgo9 KNHv3+gGlkA8yaWiKWZLAYtvMR9A7KjZ0ToIF3PPZ7J2l3P7UUNxsNWxB2LkBIR7 GxTmzTeffF0oXG9Bu7PtZOmktDfCNZzgHKN0dmBKC0g28GrHPec33kM/Sp5hSOuX MmyoIBqkWOrATxpHZw99qs2Pi0ufsEqai0HJndSmge9IeXzmw9W+Fv+ajmVoXkO2 4OJ0W3Nv3TPnUqEOIWcfVxIfy5uhOWf/avuSHTjjO3y6Y/85rAIhtUpo/JtVBpLE 4XqLE3siYYZP11R4ZOiNg3OAvy8OAvRcmJiKMCvt0r1b+ZdhuAb0b8xjNU1AegAL 8bCyLHnLVPUgkHA3Fp57jjRgINYWXQfNTAt76XTb8+VqdG/1IoHpHnAP608/nAIm ekan2u6rokxsVa3QBy7LreBHRvzxUmurdJIpwf+lNDsyUmX6XuEOEKGm40/FD23o Npco+3b5efGtABtPcgZI =eM96 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
