-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jmeter View Result Tree crashes with a large payload #6336
Comments
upload jmeter.log |
@gianhub16 I mean upload jmeter error log when your jmeter runs crash |
Try to config JVM heap -Xms2g -Xmx4g,and threadgroup config 1 thread |
I had already made a modification on JVM Heap config. I set as you say but nothing changes. I am interested in GUI mode because I would like to analyze request and response. The problem is only detected with the View Result Tree listener in calls with a fairly long payload. Would it be possible to fix this issue? |
could you share you jmx? |
You can try simply by inserting in the payload of a request a base64 code of a file about 1/2MB in size |
By the way, unfortunately if you don't read the contents from the file via java string for example, you can't even paste the text of a 1MB base64. |
https://github.com/apache/jmeter/blob/master/bin/jmeter.properties#L1193C1-L1203C46 You can use the settings, for example:
|
Is your Base64 string a long-long line without any line breaks? |
I have the same issue despite setting the parameters on jmeter.properties
I attach an example of a base64 string within the text file. |
Try to use the tab: File https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request
Fill two columns only:
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 of HEAP, it will be a root cause of the OOM Error The same script without request contents, but with the file links only, will work well without the OOM Error |
Thanks! I see You use a long line. Try to combine two peaces of advice:
|
The last hint is about java param:
Try to put it into the JVM_ARGS env variable All JMX file content strings are the same strings. New Java versions can reduce memory allocations for the similar strings |
@vlsi
into the files: |
JMeter code base doesn't use the keyword I will try to use it for the JMX String content. I will find a source code files via memory profiling |
Any other solutions/workaround? |
@gianhub16 would you be able to build the PR for yourself and test your test plan with that fix? |
, |
You can use that option. A better place for personalized java options would be Note, that setting that option will have no effect on this problem, but may reduce memory consumption nonetheless. |
Expected behavior
No response
Actual behavior
No response
Steps to reproduce the problem
When a request with a long payload is sent (for example with a base64 file code), when I click on this request on the View Result Tree crashes and I am forced to terminate jmeter.
Sometimes jmeter responds but only after several minutes.
I've tried with this in jmeter.properties, set jsyntaxtextarea.linewrap=false
No changes
JMeter Version
5.6.2
Java Version
No response
OS Version
No response
The text was updated successfully, but these errors were encountered: