This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Refusing connections while uploading/Downloading files

 
Ravi Kanth Behera
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What errors are you seeing in the Tomcat logs?
 
Ravi Kanth Behera
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic