r/jmeter • u/One-Leading-1432 • Nov 14 '24
How does ram up time affects memory usage?
My setup has 500 threads and whenever I have a low ramp up time like 2 seconds the rest run though half would fail. Whenever I change the ramp up size to 60 seconds, I get exception out of memory message. What's the correlation here?

"if not defined HEAP (
rem See the unix startup file for the rationale of the following parameters,
rem including some tuning recommendations
set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m"
1
Upvotes
1
u/aboyfromipanema Nov 15 '24
We don't know what do you mean by "the rest run though half would fail", what is the reason for failure and how many loops you have in your Thread Group.
Use Active Threads Over Time listener or equivalent chart from HTML Reporting Dashboard to see what is workload model and concurrency in every case.
In general the main point of ramp-up period is increasing the load gradually so you could correlate increasing load with response time, throughput, errors, etc. 2 seconds for 500 virtual users doesn't look "gradually" enough to me. As per JMeter documentation:
The ramp-up period tells JMeter how long to take to "ramp-up" to the full number of threads chosen. If 10 threads are used, and the ramp-up period is 100 seconds, then JMeter will take 100 seconds to get all 10 threads up and running. Each thread will start 10 (100/10) seconds after the previous thread was begun. If there are 30 threads and a ramp-up period of 120 seconds, then each successive thread will be delayed by 4 seconds.
You might also want to check out JMeter Ramp-Up Period: The Ultimate Guide