wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Apache Refusing connections while uploading/Downloading files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Refusing connections while uploading/Downloading files" Watch "Apache Refusing connections while uploading/Downloading files" New topic
Author

Apache Refusing connections while uploading/Downloading files

Ravi Kanth Behera
Greenhorn

Joined: Nov 06, 2006
Posts: 12
Hi,

When a user is trying to upload a file, another user trying to access the site, both the user who uploads the file and any other user who tries to access the site has a 503.

Can anyone help me out?

Thanks in Advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What errors are you seeing in the Tomcat logs?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ravi Kanth Behera
Greenhorn

Joined: Nov 06, 2006
Posts: 12
Thanks Ben for the reply

Hello Ben,

I find the 503's in the Apache logs,and connection timeouts in the Tomcat logs

Here is the tomcat logs:

INFO: connection timeout reached
Dec 13, 2006 4:03:42 PM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached
Dec 13, 2006 4:03:42 PM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached


I would like to mention the setup as well:

It has a Load Balancer in the front,then comes the apache,tomcat then the DB

Thanks in Advance
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
What code is managing the file upload?

How long does it take for the "other user" to get a 503 error.

Bill
Ravi Kanth Behera
Greenhorn

Joined: Nov 06, 2006
Posts: 12
Thanks Bill for the reply.


The Code is a servlet.

when the user starts a file upload, he gets 503 after 20-30 sec. but if any other user tries to access the site, after the file upload is started, they get a 503 immediately

Thanks in Advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I think what William meant was:
What libraries are you using for file uploads?

Also, post file uploading code from your servlet so we can see it.
When you do so, please, use UBB code tags.
 
GeeCON Prague 2014
 
subject: Apache Refusing connections while uploading/Downloading files