7

I am trying to run the script through command line for that I am using below command

 C:\apache-jmeter-4.0\apache-jmeter-4.0\bin>jmeter -f -n -t C:\apache-jmeter-4.0\apache-jmeter-4.0\bin\examples\Post_call_24_FirstStep_10.jmx -l C:\apache-jmeter-4.0\apache-jmeter-4.0\bin\examples\CSVDATATest.csv  

But It gives below Error

Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x05400000, 1073741824, 0) failed; error='The paging file is too small for this operation to complet e' (DOS error/errno=1455)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1073741824 bytes for Failed 
to commit area from 0x05400000 to 0x45400000 of length 1073741824.
# An error report file with more information is saved as:
# C:\apache-jmeter-4.0\apache-jmeter-4.0\bin\hs_err_pid2076.log
 errorlevel=1 Press any key to continue . . .
prat22
  • 378
  • 1
  • 3
  • 18
  • Your system's RAM might already be occupied by other open applications. Close other unnecessary application while running JMeter app. Refer for more detail - https://stackoverflow.com/questions/22805552/insufficient-memory-for-the-java-runtime-environment-message-in-eclipse?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa – Mahendra Mar 27 '18 at 07:17
  • Can you show content of C:\apache-jmeter-4.0\apache-jmeter-4.0\bin\hs_err_pid2076.log ? – UBIK LOAD PACK Mar 27 '18 at 07:22

2 Answers2

7

According to the error you're getting:

The paging file is too small for this operation to complete

You need to increase size of virtual memory (swap file), see How to Change The Size of Virtual Memory (pagefile.sys) on Windows 8 or Windows Server 2012 guide for more details.


However be aware that using swap will dramatically negatively impact JMeter's performance so if you're running out of available physical RAM it is better to consider Distributed Testing - i.e. run JMeter slaves on multiple hosts as most likely you won't be able to create the required load from a single machine.

References:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • 1
    the link is not working. please check. hello good people, you can also follow this link: https://itproguru.com/expert/2013/01/how-to-change-the-size-of-virtual-memory-pagefile-sys-on-windows-8-or-windows-server-2012/ – SkyWalker Dec 23 '21 at 03:25
3

You can assign 80% of your memory to the JMeter and for that you need to enter below line to jmeter.bat file

Set HEAP=-Xms1024m –Xmx3072m [If you have 4 GB Ram]

You can adjust above heap size based on physical memory of your machine.

Mike Doe
  • 16,349
  • 11
  • 65
  • 88
Redefining QA
  • 382
  • 1
  • 2
  • 6