Below is my rest endpoint and code. I am trying to upload a large file by using Multipart, but when I am attaching a large file (>100MB)in postman I am getting 503 error and request is not coming to my server.
@PostMapping("load/largefile")
public ResponseObj loadHaevyFileToS3(@RequestPart(value = "file") MultipartFile jsonDataFile) {
return new ResponseObj(true,loadService.load(jsonDataFile));
}
But when I am attching file of smaller size it is working fine
I have added the below properties in my application.properties.
spring.servlet.multipart.max-request-size=500MB
spring.servlet.multipart.max-file-size=500MB
server.tomcat.max-http-form-post-size=500MB
Spring version : 5.0.8.RELEASE
Also in logs I am not getting any error and seems like call is not coming to server, but with smaller file it is coming.
I don't know what I am missing here, please help me out. Thanks in advance.
NOTE: When I am using to hit to my local(localhost:8090) it is working and call is coming to my local server but after deploying the code when I am hitting the postman to my main server I am facing the above issue. Postman Screen shot