Try set JVM_ARGS=-Xms1024m -Xmx2048m
Unlike Unix, it looks like Windows does not need the enclosing quotes. So when you add them it creates a syntax error. On 24 March 2016 at 15:39, jlp <jean-louis.pastu...@orange.fr> wrote: > > Did you have a space at the beginning and the end of the JVM_ARGS ? or > perhaps a masked character in your bat file? try to rewrite it carefully. > The syntax for Xms and Xmx are correct. > > > Le 24/03/2016 16:21, Ranieri Mazili a écrit : >> >> Same error: >> >> C:\Temp\apache-jmeter-2.13\bin>set JVM_ARGS="-Xms1024m -Xmx2048m" >> >> C:\Temp\apache-jmeter-2.13\bin>jmeter-server.bat >> Could not find ApacheJmeter_core.jar ... >> ... Trying JMETER_HOME=.. >> Found ApacheJMeter_core.jar >> Invalid initial heap size: -Xms1024m -Xmx2048m >> Error: Could not create the Java Virtual Machine. >> Error: A fatal exception has occurred. Program will exit. >> errorlevel=1 >> >> -- >> Ranieri >> >> On Thu, Mar 24, 2016 at 12:12 PM, Maxime Chassagneux < >> maxime.chassagn...@gmail.com> wrote: >> >>> The initial memory and the max memory can't be equal... try to put >>> Xmx2048m >>> >>> >>> 2016-03-24 16:04 GMT+01:00 Ranieri Mazili <ranier...@gmail.com>: >>> >>>> Hello, >>>> >>>> I need to run jmeter.bat and jmeter-server.bat with more memory because >>> >>> I'm >>>> >>>> receiving Out of memory with default settings. >>>> >>>> I've tried to set more memory with the command below before start >>>> jmeter-server.bat >>>> >>>> set JVM_ARGS="-Xms1024m -Xmx1024m" >>>> >>>> them I tried to run jmeter-server.bat, but I received the following >>>> message: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> *C:\Temp\apache-jmeter-2.13\bin>set JVM_ARGS="-Xms1024m >>>> -Xmx1024m"C:\Temp\apache-jmeter-2.13\bin>jmeter-server.batCould not find >>>> ApacheJmeter_core.jar ...... Trying JMETER_HOME=..Found >>>> ApacheJMeter_core.jarInvalid initial heap size: -Xms1024m >>>> -Xmx1024mError: >>>> Could not create the Java Virtual Machine.Error: A fatal exception has >>>> occurred. Program will exit.errorlevel=1Press any key to continue. . *. >>>> >>>> I've 8gb of memory, running on windows 7 64bits. What I'm doing wrong? >>>> >>>> Thanks >>>> -- >>>> Ranieri >>>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org > For additional commands, e-mail: user-h...@jmeter.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org For additional commands, e-mail: user-h...@jmeter.apache.org