Re: Tomcat Hang on Linux (hangs the entire system)
Hi, You can try the following step by step approach 1) Check whether you are able to run the examples application in tomcat. If you are not able to run that there's a problem with tomcat configuration or the JVM. 2) If that runs smoothly without any problems, check your application and ensure that it doesn't go into any infinite loops etc, since that's one runaway thing that can bring down the whole machine consuming lot of cpu and perhaps even memory leaving no room for anything else. 3) If your application is OK, make sure no other application is consuming lot of CPU or memory. -- Original Message -- On 31 Mar 2005, 04:43:10 PM, Viorel Dragomir writes: It might be a hardware related problem. Try to change the memory. Viorel Dragomir . .. --- - Original Message - From: Steve Vanspall To: tomcat-user@jakarta.apache.org Sent: Thursday, March 31, 2005 09:38 Subject: Tomcat Hang on Linux (hangs the entire system) Hi there, I am posting this in a few areas because I cannot pinpoint where the problem stems from. I have a standard Pentium III bases pc running linux. It has only 380 meg (or therabouts) of ram Using IBM JVM 1.4.1 and tomcat 4.1.18 (I know there are later version, but they all hang) I have 2 webapps running. One of them uses Apache to translate two different domain to the right ibay for it's content but uses the same code base. The second webapp is accessed, currently, using http://www.mycomapny.com:8080/MyApp style URL. The webapp just hangs. It will not load any pages, and when it hangs, both webapps hang. So I think this is a Tomcat or Java or Linux error. Once the hang occurs I cannot do a ps -ef as this also hangs. My only option is to reboot the machine. But it hangs half way and has to be physically powered off. We are going to put a new, more powerful computer in there, but for now I wanted to see if anyone else had experienced such a problem. Can you give me some pointers as to where to look for the source of the problem. This has happened before, and I got no information about it. I know it's a pretty vague explanation, but I don't know what more informationI can give you. The log files do not show any errors, and it never happens at the same point in the web application. At first I thought it happen when concurrent users logged in, but that's not the case either, and I have trimmed down the sychornicity management when accesing Singletons in my web app. Now I have been through all my code, and cannot find anything that should be causing an error. I have run the code under a number of different cirsumstances on my development machine (Windows 2000) and everything runs without a problem. Any help would be appreciated Regards Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Problem!: Connection time out while using URLConnection connect method
Hi All, I am posting this again. Please help. Thanks. --Forwarded message -- References: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Strange Problem!: Connection time out while using URLConnection connect method Date: Wed, 17 Nov 2004 09:30:17 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, I am able to connect and call a servlet deployed in it from another java program running on another machine using using URLConnection connect method. But when I run tomcat server from windows services, the client program is not able to call the deployed servlet and throws the below exception at the line where connect method is invoked. java.net.ConnectException: Connection timed out: connect Has anyone else faced this strange problem. The only difference is in the way tomcat server has been started. When started in command prompt there are no problems in connecting to the server and calling the servlet deployed in it! I need to badly get this working when tomcat is started as a windows service. Thanks in Advance. Vignesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem!: Connection time out while using URLConnection connect method
Hi, Thanks. Thinking that could be the problem, I had already tried binding it with the specific IP address of the machine by setting the address attribute for HTTP connector in server.xml but that too didn't work. -- Original Message -- On 18 Nov 2004, 06:06:06 PM, Sailing Cai writes: I think you may check you IP setting. You run tomcat in command prompt ,jvm binging your ip;but in windows service it may binding 127.0.0.1 or localhost. I guess it^_^ On Thu, 18 Nov 2004 09:36:32 GMT, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, I am posting this again. Please help. Thanks. --Forwarded message -- References: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Strange Problem!: Connection time out while using URLConnection connect method Date: Wed, 17 Nov 2004 09:30:17 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, I am able to connect and call a servlet deployed in it from another java program running on another machine using using URLConnection connect method. But when I run tomcat server from windows services, the client program is not able to call the deployed servlet and throws the below exception at the line where connect method is invoked. java.net.ConnectException: Connection timed out: connect Has anyone else faced this strange problem. The only difference is in the way tomcat server has been started. When started in command prompt there are no problems in connecting to the server and calling the servlet deployed in it! I need to badly get this working when tomcat is started as a windows service. Thanks in Advance. Vignesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Problem!: Connection time out while using URLConnection connect method
Hi, The I am running tomcat and the client program in the same subnet and so there is no such issue. Thanks. -- Original Message -- On 18 Nov 2004, 06:12:54 PM, [EMAIL PROTECTED] writes: Is this somthing related to external Ip and Internal ip if you are behind the firewall... Birendar Singh Waldiya Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com [EMAIL PROTECTED] 11/18/2004 03:06 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject Strange Problem!: Connection time out while using URLConnection connect method Hi All, I am posting this again. Please help. Thanks. --Forwarded message -- References: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Strange Problem!: Connection time out while using URLConnection connect method Date: Wed, 17 Nov 2004 09:30:17 GMT Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi All, I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, I am able to connect and call a servlet deployed in it from another java program running on another machine using using URLConnection connect method. But when I run tomcat server from windows services, the client program is not able to call the deployed servlet and throws the below exception at the line where connect method is invoked. java.net.ConnectException: Connection timed out: connect Has anyone else faced this strange problem. The only difference is in the way tomcat server has been started. When started in command prompt there are no problems in connecting to the server and calling the servlet deployed in it! I need to badly get this working when tomcat is started as a windows service. Thanks in Advance. Vignesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT4412 DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services limited on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Problem!: Connection time out while using URLConnection connect method
Hi All, I am facing a very strange problem. When I run tomcat4.1.27 in command prompt, I am able to connect and call a servlet deployed in it from another java program running on another machine using using URLConnection connect method. But when I run tomcat server from windows services, the client program is not able to call the deployed servlet and throws the below exception at the line where connect method is invoked. java.net.ConnectException: Connection timed out: connect Has anyone else faced this strange problem. The only difference is in the way tomcat server has been started. When started in command prompt there are no problems in connecting to the server and calling the servlet deployed in it! I need to badly get this working when tomcat is started as a windows service. Thanks in Advance. Vignesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]