• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Apache tomcat 503 error.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An error 503 means: "HTTP 503 is the standard HTTP error that means "Service Unavailable."

Is the service running??
 
Aman Kaur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it is running.

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

any clue?

Thanks
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After fixing this issue....Now we see the 502 error....!!!
any clues?
 
Rene Larsen
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP Error 502 - Bad gateway
 
Aman Kaur
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway to resolve this error?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!