cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I change the max post request size for Java Web Tomcat 8 Applications?

I have a Java Web Tomcat 8 application hosted on SAP Cloud Platform. Users will be able to create post requests and get requests through an API. Unfortunately, I discovered that there is a 2MB limit on the post request, does anyone know where I can configure this on SAP Cloud Platform?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Darren,

First, I suppose that you are using NEO environment. The term Java Web Tomcat 8 is the Runtime name there.

Setting the value maxPostSize should solve the issue but unfortunately it is part of server.xml file which is hidden for you.

My recommendation would be to try to list all the properties from your java program and try to find JAVA_OPTS or CATALINA_OPTS. Hopefully, you will see some property that will work for you and you could try to override it setting the JVM Argument from SAP Cloud Platform Cockpit.

Regards,

Mihailo

0 Kudos

I realised I can't access tomcat's configuration files directly so I've swapped to a multi part post request and I converted my json payload to a blob which solved it.

Answers (1)

Answers (1)

ramanareddy438
Explorer
0 Kudos

Hi Darren,

Can you provide me details into how you resolved the post size issue?

Best Regards
Ramana Reddy