JMeter JMX Script - Loading Time
Expected behavior
script should load within a few minutes
Actual behavior
I'm facing an issue while opening my JMX file which is of 17mb containing only single scenario which takes more than 3hours every time to get loaded in the JMeter. I have observed that my jmeter script has request which have big request payloads
Steps to reproduce the problem
Opening a 17MB JMX file with large payloads
JMeter Version
5.6
Java Version
No response
OS Version
No response
Steps (with the script update)
-
Place the large payload file (e.g., payload.json or payload.txt) in the bin/folder.
-
Update the existing script in bin/ to load the payload from disk at runtime:
-
Read the file content using your language's standard file I/O.
-
Return or expose the content as a string that JMeter can consume (e.g., via a function that returns a string).
-
Ensure UTF-8 encoding is maintained.
- In GUI mode:
-
Tools -> Function Helper
-
Enter the payload file path
-
Generate & Copy to Clipboard
-
Paste the generated function output where the payload would normally be embedded
-
Ensure JMeter is configured to read the payload from the file path at runtime (instead of embedding the content directly in the test plan).
-
When you confirm the requests work, continue using the file-based approach for production stability (no GUI replacement steps required).
@Roshan4555 , could you share JFR recordings or async-profiler recordings for the problematic case? Could you share the problematic jmx or the way to generate the problematic jmx?