Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache tomcat 503 error.

 
Aman Kaur
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?
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 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
Eclipse IDE Mac OS X
  • 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
Eclipse IDE Mac OS X
  • 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