There are 2 ways to solve this issue
1) Increasing Heap Size.
2) Running JMeter in Non GUI Mode.
How to increase Heap Size in JMeter
1) Open jmeter.bat File(JMeter > Bin ), Search for "Heap" in the File.
2) You will be finding some thing as "HEAP=-Xms512m -Xmx512m".
3) In this , change the second part as -Xmx1024m(Depends on your system RAM,can be given upto 80% of the RAM Size).
4) Then start JMeter by double clicking the jmeter.bat file .
Running JMeter in Non GUI Mode
1) Before running JMeter in Non GUI Mode , Make sure you have not added any "Samplers" in JMeter
2) Do all the stuffs in JMeter to do Load / Performance Testing , Such as Recording HTTP Requests, Threads(Users) as per the requirement .
3) Save the JMeter File in JMeter > Bin Folder .
4) Open the Command Prompt and Navigate to JMeter > Bin Folder
5) Then type the command as "jmeter -n -t YourFile.jmx -l YourFile.jtl"
Where, -n indicates Non GUI Mode
-t indicates JMX File
-l indicates Log File(JTL File)
Next Topic will be followed in up coming postsπππ.
Thanks
A M Balaji
No comments:
Post a Comment