Re: Tomcat Hangs-UP...
Hello, Hi, my comments are below. - Okay, a simple answer from a simple mind: Check that you are closing resources in your java code appropriately. Don't rely on garbage collection! Are you closing any files opened by your Java code? Yes, I am. Are you always closing your jdbc SQL statements/result sets, etc...? Yes, I am. If I don´t close-it, I will get TooMayOpenCursors errors. I´ve already fixed this problem. Are you closing your Oracle connections? Are there too many open connections? I am using an Oracle implementation of connection pool. Every user that log on system get an connection from that pool. The connection will not br released until this user close the browser window, or the tomcat session gets timeout (30 minutes). Tomcat is hanging with 130 (more or less) connections out of the pool (about 110 users). Are there any blocking db locks? No, there are not. I have had this problem before where my db connected application had not committed it's transaction and ended up hanging tomcat. Always check to see that your resources are being released and not halting other requests. Our methods that use/need transaction (doing updates or deletes) always do commit or rollback, BUT, for connections that only do select querys, commit or rollback are never called. MAY THIS BE A PROBLEM Remember that an connection is associated with the user (browser) session... Since you're using Oracle, check the V$SESSION view to make sure you don't have more active connections than you believe you should have. Check the v$session_wait to make sure nothing is blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those views, ask your friendly dba to help. I am already doing this for a long time, and we are not having this problem. Well, just to inform about our situation: our application is already in production, and there is about 300 users TRYING to use-it... Another thing, our company depends 100% of this software. More about our structure: we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions below). And fortunetly, wen tomcat hangs in one machine, the users can go the another tomcat. BUT, at every tomcat stop, all users of that machine have to re-login into the another tomcat (because the user loose his session). Any other help? Any idea?? Please, we are almost givin up of tomcat and changing to another payed solution (like Websphere, JRun, ...) PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried A LOT of alternatives solutions... We neen and serius help. thank you all in advance, Wagner Danda [EMAIL PROTECTED] Sun Java Certified Programmer for the Java 2 [tm] [EMAIL PROTECTED] 05/28/02 07:24PM Here, we have the same problem!!! What can it be? Our configuration: - SunOS 5.8; - Solaris 8; - Dual UltraSparc 400Mhz; - J2SE SUN 1.4; - Tomcat 4.0.3; - We are using -Xmx1024 -Xms512; - MaxProcessors=250, MinProcessors=10, acceptCount=250; - Oracle Thin JDBC; PS 1: we are not having the classic OutOfMemory error. Tomcat just hangs-up with no reason. PS 2: We already used OptimizeIt to tune the application. PS 3: Tomcat stops even with a low rate of usage. Wagner Danda -- Mensagem original --- De : Rui Oliveira [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc : Data: Tue, 28 May 2002 18:54:36 +0100 Assunto : Tomcat Hangs-UP... Hello, I have a Tomcat Server running on Solaris as JSP and WEB server. Aft er executing for a while, the Tomcat just Hangs-UP and the only way of restarting it is to kill the Tomcat process. My configuration is the following: - SunOS 5.8 - Solaris 8 - JRE 1.3.1_03 - Tomcat 4.0.3 Does anyone have a clue on what is the problem? Regards Rui Oliveira -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Hangs-UP...
Here, we have the same problem!!! What can it be? Our configuration: - SunOS 5.8; - Solaris 8; - Dual UltraSparc 400Mhz; - J2SE SUN 1.4; - Tomcat 4.0.3; - We are using -Xmx1024 -Xms512; - MaxProcessors=250, MinProcessors=10, acceptCount=250; - Oracle Thin JDBC; PS 1: we are not having the classic OutOfMemory error. Tomcat just hangs-up with no reason. PS 2: We already used OptimizeIt to tune the application. PS 3: Tomcat stops even with a low rate of usage. Wagner Danda -- Mensagem original --- De : Rui Oliveira [EMAIL PROTECTED] Para: [EMAIL PROTECTED] Cc : Data: Tue, 28 May 2002 18:54:36 +0100 Assunto : Tomcat Hangs-UP... Hello, I have a Tomcat Server running on Solaris as JSP and WEB server. Aft er executing for a while, the Tomcat just Hangs-UP and the only way of restarting it is to kill the Tomcat process. My configuration is the following: - SunOS 5.8 - Solaris 8 - JRE 1.3.1_03 - Tomcat 4.0.3 Does anyone have a clue on what is the problem? Regards Rui Oliveira -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Stdout and Stderr
Hello, I already find these configuration, at catalinha.sh: org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 I changed to: org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 2 $CATALINA_BASE/logs/catalina.err Thanks! Wagner Danda Jeff Macomber wrote: Generally these messages are in catalina.out or localhost_log... Jeff -Original Message- From: Wagner Danda [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:52 PM To: Tomcat Users List Subject: Stdout and Stderr Hello, in tomcat 4, where can I get the stderr and the stdout? Better, where can I see the tomcat errors (like OutOfMemory and others)? Thanks in advance, Wagner Danda -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Heap Size for Tomcat
Hello, is it important to use the -Xms and -Xmx with tomcat? Doesn´t he already manage the heap? When I should use this and when I should not? Thanks. Wagner Danda Phillip Morelock wrote: The official way to do it is to set a TOMCAT_OPTS or CATALINA_OPTS variable with the string that you would normally feed the VM. (like -Xms or whatever). TOMCAT is for 3.x, CATALINA is for 4.x cheers fillup On 5/16/02 3:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: my understanding is that any parameters you pass to bin/startup.bat or bin/startup.sh on the command line will be passed through to the java vm, such as mx128m or -D property=something . Jacob Hookom [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] du cc: Subject: Heap Size for Tomcat 05/16/2002 01:57 PM Please respond to Tomcat Users List Hello All, I was wondering where I can modify the initial heap size settings for tomcat to use. Or more primarily, where the command line is that tomcat uses to initialize its VM. Thanks, Jake Hookom --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Stdout and Stderr
Hello, in tomcat 4, where can I get the stderr and the stdout? Better, where can I see the tomcat errors (like OutOfMemory and others)? Thanks in advance, Wagner Danda -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: VM size increases.
Hi Philip, do you know any memory leak associated with the Oracle Thin JDBC driver? Thank you in advance. - Wagner Danda Sun Certified Programmer for JavaT 2 Platform - Original Message - From: Phillip Morelock [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 4:33 AM Subject: Re: VM size increases. Hi Toru, I'm using jdbc-odbc driver to connect to SQL server. Regards Rajesh That's your problem This is NOT a production quality driver, it's a JDBC type 1 hack. It's got known problems and Sun specifically tells you to use it for testing only. I recommend MS's beta SQL Server driver (which I believe but don't know for sure is mostly a repackaging of a commercial product from Merant)...it's quite good, robust, and fast for most purposes, although it may have some hidden problems that I personally have not run across. Wait, I just checked -- evidently it is no longer beta! http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml good luck -- this is what I use -- now I will have to upgrade my customers to the release version. fillup On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote: Hi Toru, I'm using jdbc-odbc driver to connect to SQL server. Regards Rajesh -Original Message- From: Toru Watanabe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 10:45 AM To: Tomcat Users List Subject: Re: VM size increases. Hi Rajesh, Let me know about your JDBC. I suppose you are using JNI for Database connectivity. Regards, Watanabe In the message VM size increases. [EMAIL PROTECTED] Rajesh Mishra [EMAIL PROTECTED] wrote: Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two Rajesh problems mentioned below.. Rajesh 1.The VM size of Tomcat's java.exe process increases gradually Rajesh and it doesn't come down. As a result machine hangs.I've Rajesh closed database connections and Resultset's everywhere I Rajesh accessed database. Rajesh 2. On running Web Application Stress testing tool for 2 days Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes. Rajesh Rajesh Rajesh -- Rajesh To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] Rajesh For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]