org.apache.catalina.connector.ClientAbortException: Broken pipe error in spring boot microservices

Viewed 12

While posting a rest template call from one micro service to another getting Broken pipe error. Request body contains a file around 5MB in size. I tried every means but couldn't be able to rectify why this error I'm getting.

Tried with below configuration in application.properties and code level changes in microservices

  1. Locally with same config file getting processed in approx. 5 mins

  2. server.tomcat.connection-timeout = 36000s #10 mins

  3. HttpHeaders header = new HttpHeaders(); header.setContentType(MediaType.APPLICATION.JSON); HttpEntity<?> httpEntity = new HttpEntity<>(fileDetailsMap, header); //filedetailsMap contained file SimpleClientHttpRequestFactory rf = new SimpleClinetHttpRequestFactory(); rf.setConnectionTimeout("36000"); rf.setReadTimeout(36000); restTemplate.exchange(restUrl, HttpMethod.POST, httpEnitity, String.class);

ERROR LOGS enter image description here

0 Answers
Related