jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

JMeter JMX Script - Loading Time

Open Roshan4555 opened this issue 4 months ago • 2 comments

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

Roshan4555 avatar Sep 15 '25 11:09 Roshan4555

Steps (with the script update)

  1. Place the large payload file (e.g., payload.json or payload.txt) in the bin/folder.

  2. 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.

  1. 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

  1. Ensure JMeter is configured to read the payload from the file path at runtime (instead of embedding the content directly in the test plan).

  2. When you confirm the requests work, continue using the file-based approach for production stability (no GUI replacement steps required).

satvik84 avatar Nov 05 '25 12:11 satvik84

@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?

vlsi avatar Nov 05 '25 14:11 vlsi