aspose file tools*
The moose likes Tomcat and the fly likes Apache tomcat 503 error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache tomcat 503 error." Watch "Apache tomcat 503 error." New topic
Author

Apache tomcat 503 error.

Aman Kaur
Greenhorn

Joined: Aug 25, 2008
Posts: 9
Hi folks!

We have a Apache tomcat load balanced configuration. We are doing some performance testing before moving to Production.

This is the error we get while testing:
java.io.IOException: Server returned HTTP response code: 503 for URL: http://nte
cmst1:80/drs/drs?type=PortalDocumentListByMRN&userId=nurse1&mrn=1194826
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1174)

Can anyone help me with resolving this?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

An error 503 means: "HTTP 503 is the standard HTTP error that means "Service Unavailable."

Is the service running??


Regards, Rene Larsen
Dropbox Invite
Aman Kaur
Greenhorn

Joined: Aug 25, 2008
Posts: 9
Yes, it is running.

the error shows up a couple of times while testing is on!!!

any clue?

Thanks
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Maybe the service can't cope with the load you are testing with??

Maybe you need to setup a second server with a Apache acting as a loadbalancer in the front, so that you have two severer to handle the requests??
Aman Kaur
Greenhorn

Joined: Aug 25, 2008
Posts: 9
Oops....I don't think we would want to do it!

Is it possible because of the Apache queue would be smaller than tomcat.
Can i tune some parameters and make it working?
Aman Kaur
Greenhorn

Joined: Aug 25, 2008
Posts: 9
After fixing this issue....Now we see the 502 error....!!!
any clues?
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

HTTP Error 502 - Bad gateway
Aman Kaur
Greenhorn

Joined: Aug 25, 2008
Posts: 9
Is there anyway to resolve this error?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache tomcat 503 error.