Rest Api performance test plan, out of memory exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
gs
Reply | Threaded
Open this post in threaded view
|

Rest Api performance test plan, out of memory exception

gs
I have created a Test plan to check for performance where i have an api that
writes into document on Jmeter 5.3

<http://www.jmeter-archive.org/file/t45374/20201111_123521.jpg>


hitting same url with different data (using csvdata)
50 request in on sampler (with csvfile)
50 request in 2nd sampler (with csvfile1)


Let me know if my test plan is fine to perform load testing for 100 data ?



2020-11-10 11:39:44,672 INFO o.a.j.t.ThreadGroup: Starting thread group...
number=1 threads=10 ramp-up=2 delayedStart=false 2020-11-10 11:39:44,677
INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2020-11-10
11:39:44,689 INFO o.a.j.s.FileServer: Stored:
DT_Stage_GetLoanPayload_CSV-Perfdata2.csv Alias:
DT_Stage_GetLoanPayload_CSV-Perfdata2.csv@468182872 2020-11-10 11:39:44,693
INFO o.a.j.s.FileServer: Stored: DT_Stage_GetLoanPayload_CSV-Perfdata1.csv
Alias: DT_Stage_GetLoanPayload_CSV-Perfdata1.csv@468182872 2020-11-10
11:39:44,696 INFO o.a.j.t.ThreadGroup: Started thread group number 1
2020-11-10 11:39:44,697 INFO o.a.j.e.StandardJMeterEngine: All thread groups
have been started 2020-11-10 11:39:44,924 INFO o.a.j.t.JMeterThread: Thread
started: Thread Group 1-2 2020-11-10 11:39:45,167 INFO o.a.j.t.JMeterThread:
Thread started: Thread Group 1-3 2020-11-10 11:39:45,380 INFO
o.a.j.t.JMeterThread: Thread finished: Thread Group 1-3 2020-11-10
11:39:50,539 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-4
2020-11-10 11:39:50,604 INFO o.a.j.t.JMeterThread: Thread finished: Thread
Group 1-2 2020-11-10 11:39:50,808 INFO o.a.j.t.JMeterThread: Thread started:
Thread Group 1-5 2020-11-10 11:39:51,009 INFO o.a.j.t.JMeterThread: Thread
finished: Thread Group 1-4 2020-11-10 11:39:50,812 INFO
o.a.j.t.JMeterThread: Thread started: Thread Group 1-7 2020-11-10
11:39:51,009 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-6
2020-11-10 11:39:51,010 INFO o.a.j.t.JMeterThread: Stop Thread seen for
thread Thread Group 1-8, reason:
org.apache.jorphan.util.JMeterStopThreadException: End of
file:DT_Stage_GetLoanPayload_CSV-Perfdata2.csv detected for CSV
DataSet:CSVData configured with stopThread:true, recycle:false 2020-11-10
11:39:51,010 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-8
2020-11-10 11:39:51,013 INFO o.a.j.t.JMeterThread: Thread started: Thread
Group 1-9 2020-11-10 11:39:51,114 INFO o.a.j.t.JMeterThread: Thread started:
Thread Group 1-10 2020-11-10 11:39:51,310 INFO o.a.j.t.JMeterThread: Thread
finished: Thread Group 1-9 2020-11-10 11:39:51,414 INFO
o.a.j.t.JMeterThread: Stop Thread seen for thread Thread Group 1-9, reason:
org.apache.jorphan.util.JMeterStopThreadException: End of
file:DT_Stage_GetLoanPayload_CSV-Perfdata2.csv detected for CSV
DataSet:CSVData configured with stopThread:true, recycle:false 2020-11-10
11:39:51,415 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-9
2020-11-10 11:39:52,078 INFO o.a.j.t.JMeterThread: Thread finished: Thread
Group 1-7 2020-11-10 11:39:52,078 INFO o.a.j.t.JMeterThread: Thread
finished: Thread Group 1-5 2020-11-10 11:39:51,715 INFO
o.a.j.t.JMeterThread: Thread finished: Thread Group 1-10 2020-11-10
11:39:51,114 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-8
2020-11-10 11:39:51,009 ERROR o.a.j.JMeter: Uncaught exception in thread
Thread[Thread Group 1-4,6,main] java.lang.OutOfMemoryError: Java heap space
2020-11-10 11:39:52,474 INFO o.a.j.t.JMeterThread: Thread finished: Thread
Group 1-8 2020-11-10 11:39:51,310 ERROR o.a.j.JMeter: Uncaught exception in
thread Thread[Thread Group 1-9,6,main] java.lang.OutOfMemoryError: Java heap
space 2020-11-10 11:39:52,761 INFO o.a.j.t.JMeterThread: Thread finished:
Thread Group 1-6 2020-11-10 11:39:51,128 ERROR o.a.j.JMeter: Uncaught
exception in thread Thread[Thread Group 1-2,6,main]
java.lang.OutOfMemoryError: Java heap space at
java.util.Arrays.copyOf(Unknown Source) ~[?:1.8.0_271] at
java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
~[?:1.8.0_271] at java.lang.AbstractStringBuilder.append(Unknown Source)
~[?:1.8.0_271] at java.lang.StringBuilder.append(Unknown Source)
~[?:1.8.0_271] at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupHttpEntityEnclosingRequestData(HTTPHC4Impl.java:1636)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.handleMethod(HTTPHC4Impl.java:881)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:636)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1281)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1270)
~[ApacheJMeter_http.jar:5.3] at
org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:630)
~[ApacheJMeter_core.jar:5.3] at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)
~[ApacheJMeter_core.jar:5.3] at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)
~[ApacheJMeter_core.jar:5.3] at
org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
~[ApacheJMeter_core.jar:5.3] at java.lang.Thread.run(Unknown Source)
[?:1.8.0_271] 2020-11-10 11:39:52,855 ERROR o.a.j.JMeter: Uncaught exception
in thread Thread[Thread Group 1-6,6,main] java.lang.OutOfMemoryError: Java
heap space



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Rest Api performance test plan, out of memory exception

Felix Schumacher
The http sampler will store the result of a request in memory. If you
expect a big result, you might want to store a md5 sum of the result,
only. To enable the this, go to the advanced tab of the http sampler and
check "Save response as MD5 hash".

Felix

Am 11.11.20 um 08:04 schrieb gs:

> I have created a Test plan to check for performance where i have an api that
> writes into document on Jmeter 5.3
>
> <http://www.jmeter-archive.org/file/t45374/20201111_123521.jpg>
>
>
> hitting same url with different data (using csvdata)
> 50 request in on sampler (with csvfile)
> 50 request in 2nd sampler (with csvfile1)
>
>
> Let me know if my test plan is fine to perform load testing for 100 data ?
>
>
>
> 2020-11-10 11:39:44,672 INFO o.a.j.t.ThreadGroup: Starting thread group...
> number=1 threads=10 ramp-up=2 delayedStart=false 2020-11-10 11:39:44,677
> INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1 2020-11-10
> 11:39:44,689 INFO o.a.j.s.FileServer: Stored:
> DT_Stage_GetLoanPayload_CSV-Perfdata2.csv Alias:
> DT_Stage_GetLoanPayload_CSV-Perfdata2.csv@468182872 2020-11-10 11:39:44,693
> INFO o.a.j.s.FileServer: Stored: DT_Stage_GetLoanPayload_CSV-Perfdata1.csv
> Alias: DT_Stage_GetLoanPayload_CSV-Perfdata1.csv@468182872 2020-11-10
> 11:39:44,696 INFO o.a.j.t.ThreadGroup: Started thread group number 1
> 2020-11-10 11:39:44,697 INFO o.a.j.e.StandardJMeterEngine: All thread groups
> have been started 2020-11-10 11:39:44,924 INFO o.a.j.t.JMeterThread: Thread
> started: Thread Group 1-2 2020-11-10 11:39:45,167 INFO o.a.j.t.JMeterThread:
> Thread started: Thread Group 1-3 2020-11-10 11:39:45,380 INFO
> o.a.j.t.JMeterThread: Thread finished: Thread Group 1-3 2020-11-10
> 11:39:50,539 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-4
> 2020-11-10 11:39:50,604 INFO o.a.j.t.JMeterThread: Thread finished: Thread
> Group 1-2 2020-11-10 11:39:50,808 INFO o.a.j.t.JMeterThread: Thread started:
> Thread Group 1-5 2020-11-10 11:39:51,009 INFO o.a.j.t.JMeterThread: Thread
> finished: Thread Group 1-4 2020-11-10 11:39:50,812 INFO
> o.a.j.t.JMeterThread: Thread started: Thread Group 1-7 2020-11-10
> 11:39:51,009 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-6
> 2020-11-10 11:39:51,010 INFO o.a.j.t.JMeterThread: Stop Thread seen for
> thread Thread Group 1-8, reason:
> org.apache.jorphan.util.JMeterStopThreadException: End of
> file:DT_Stage_GetLoanPayload_CSV-Perfdata2.csv detected for CSV
> DataSet:CSVData configured with stopThread:true, recycle:false 2020-11-10
> 11:39:51,010 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-8
> 2020-11-10 11:39:51,013 INFO o.a.j.t.JMeterThread: Thread started: Thread
> Group 1-9 2020-11-10 11:39:51,114 INFO o.a.j.t.JMeterThread: Thread started:
> Thread Group 1-10 2020-11-10 11:39:51,310 INFO o.a.j.t.JMeterThread: Thread
> finished: Thread Group 1-9 2020-11-10 11:39:51,414 INFO
> o.a.j.t.JMeterThread: Stop Thread seen for thread Thread Group 1-9, reason:
> org.apache.jorphan.util.JMeterStopThreadException: End of
> file:DT_Stage_GetLoanPayload_CSV-Perfdata2.csv detected for CSV
> DataSet:CSVData configured with stopThread:true, recycle:false 2020-11-10
> 11:39:51,415 INFO o.a.j.t.JMeterThread: Thread finished: Thread Group 1-9
> 2020-11-10 11:39:52,078 INFO o.a.j.t.JMeterThread: Thread finished: Thread
> Group 1-7 2020-11-10 11:39:52,078 INFO o.a.j.t.JMeterThread: Thread
> finished: Thread Group 1-5 2020-11-10 11:39:51,715 INFO
> o.a.j.t.JMeterThread: Thread finished: Thread Group 1-10 2020-11-10
> 11:39:51,114 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-8
> 2020-11-10 11:39:51,009 ERROR o.a.j.JMeter: Uncaught exception in thread
> Thread[Thread Group 1-4,6,main] java.lang.OutOfMemoryError: Java heap space
> 2020-11-10 11:39:52,474 INFO o.a.j.t.JMeterThread: Thread finished: Thread
> Group 1-8 2020-11-10 11:39:51,310 ERROR o.a.j.JMeter: Uncaught exception in
> thread Thread[Thread Group 1-9,6,main] java.lang.OutOfMemoryError: Java heap
> space 2020-11-10 11:39:52,761 INFO o.a.j.t.JMeterThread: Thread finished:
> Thread Group 1-6 2020-11-10 11:39:51,128 ERROR o.a.j.JMeter: Uncaught
> exception in thread Thread[Thread Group 1-2,6,main]
> java.lang.OutOfMemoryError: Java heap space at
> java.util.Arrays.copyOf(Unknown Source) ~[?:1.8.0_271] at
> java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
> ~[?:1.8.0_271] at java.lang.AbstractStringBuilder.append(Unknown Source)
> ~[?:1.8.0_271] at java.lang.StringBuilder.append(Unknown Source)
> ~[?:1.8.0_271] at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.setupHttpEntityEnclosingRequestData(HTTPHC4Impl.java:1636)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.handleMethod(HTTPHC4Impl.java:881)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:636)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:66)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1281)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1270)
> ~[ApacheJMeter_http.jar:5.3] at
> org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:630)
> ~[ApacheJMeter_core.jar:5.3] at
> org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:558)
> ~[ApacheJMeter_core.jar:5.3] at
> org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)
> ~[ApacheJMeter_core.jar:5.3] at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
> ~[ApacheJMeter_core.jar:5.3] at java.lang.Thread.run(Unknown Source)
> [?:1.8.0_271] 2020-11-10 11:39:52,855 ERROR o.a.j.JMeter: Uncaught exception
> in thread Thread[Thread Group 1-6,6,main] java.lang.OutOfMemoryError: Java
> heap space
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

gs
Reply | Threaded
Open this post in threaded view
|

Re: Rest Api performance test plan, out of memory exception

gs
Thanks Felix,

do i need to add md5 hash to both sampler ?

And how will i retrieve the result output

Is this API test plan okay for csv load testing?




--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Rest Api performance test plan, out of memory exception

Felix Schumacher

Am 12.11.20 um 12:11 schrieb gs:
> Thanks Felix,
>
> do i need to add md5 hash to both sampler ?
You can either check the option on each sampler that you want to use it
on, or you can add a HTTP Request Defaults object and check it there.
>
> And how will i retrieve the result output
You would check the md5 sum against a known good value. This will
obviously not work, if the return values are changing from request to
request.
>
> Is this API test plan okay for csv load testing?

I don't know, which test plan you refer to. I think it depends on your
scenario. If it works and you are happy with it, it is probably OK :)

Felix

>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

gs
Reply | Threaded
Open this post in threaded view
|

Re: Rest Api performance test plan, out of memory exception

gs
This post was updated on .
Thanks Felix, yes i have selected md5 checksum from advance option for  both
samplers.

atleast the result will have this updated in view result tree when executed this
script from command line ?

Test Plan added as image i was taking about
<http://www.jmeter-archive.org/file/t45374/20201112_215825.jpg



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org