2

I have a script that is uploading file through API rest POST request. I can upload only file with size less than 1048576

An error is

HTTP Status 500 - Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field filestream exceeds its maximum permitted size of 1048576 bytes.

Maybe someone knows how to increase that size?

Thank you

Hoàng Long
  • 10,746
  • 20
  • 75
  • 124
Thanatoz
  • 51
  • 6
  • Without seeing the set up , I think this is on the web side, not the JMeter side. Usually web applications have a configurable limit on file uploads. http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/MultipartConfigElement.html – Allan Aug 23 '16 at 18:21
  • uploading file *thought API = through – Thanatoz Aug 23 '16 at 18:31
  • Alzoid, for that application I can upload big files through UI with the same API. – Thanatoz Aug 23 '16 at 18:33
  • @Thanatoz Can you any exception at JMeter end? Also increase the heap size for JMeter and try to upload. Not sure if it will help but you can give it a try. – rachna bafna Aug 23 '16 at 22:50
  • "I can upload only file with size less than 1048576" - how did you come up with this number? – Hoàng Long Aug 24 '16 at 01:40
  • @Thanatoz - that's strange - you need to investigate further - the error you are showing us is from the server. The max upload size is configurable in the servlet container (tomcat in this case). – Allan Aug 24 '16 at 12:51

1 Answers1

2

No limit on Jmeter side. From the response you show, it's a server limitation, error is triggered by Tomcat , see:

  • The field filestream exceeds its maximum permitted size of 1048576 bytes.

See:

Community
  • 1
  • 1
UBIK LOAD PACK
  • 33,980
  • 5
  • 71
  • 116