polarnik commented on issue #6336: URL: https://github.com/apache/jmeter/issues/6336#issuecomment-2365254067
> Try putting a 1MB pdf file encoded in base64 into the payload Try to use the tab: File https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request > File Path: Name of the file to send. If left blank, JMeter does not send a file, if filled in, JMeter automatically sends the request as a multipart form request. > When MIME Type **is empty**, JMeter will try to guess the MIME type of the **given file. ** > If it is a POST or PUT or PATCH request and there is a single file **whose 'Parameter name' attribute (below) is omitted**, then the file is sent as the entire body of the request, i.e. no wrappers are added. Fill two columns only: - File path - MIME but don't will the column Parameter name As a result you will send 1 MByte, 10 MBytes, 100 MBytes witout any limits and memory overheads. About memory overheads -- yes, you can put the long content into the JMX file, as a result the file size will be 10 MBytes for example. A file content in memory is a UTF-16 String, it will have a size ~ 40 MByte. Each thread will have a JMX content copy. Xmx1g is a HEAP Size for 1000 / 40 = 25 threads, but 100 threads will try to allocate 4g ram, it will be a root cause of OOM Error The same script without request content, but the file link only, will work well without the OOM Error -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org