1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JMeter起動しようとするとheapのエラーが出る

Last updated at Posted at 2020-01-09

JMeter起動しようとするとheapのエラーが出る

新しいWindows PCにJMeterをインストールしました。

起動してみたところ、以下のようなエラーが出ました。

Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
errorlevel=1

どうやらJMeterのデフォルトのヒープサイズが1GBになっていて、JVMでエラーが発生しているようです。

ヒープサイズを少なくした

JMeterを起動する前に、以下のように HEAP を設定したところ、私の環境では改善しました。

rem ヒープサイズを変更
set HEAP=-Xms512m -Xmx512m -XX:MaxMetaspaceSize=256m

rem JMeterを起動
jmeter.bat

jmeter.bat は、JMeterのインストール先にあるバッチファイルです。

以下の記事と同じようにJMeterをインストールした場合、 C:\apache-jmeter-4.0\bin\jmeter.bat にあります。

さいごに

本記事作成にあたり、以下のサイトを参考にしました。ありがとうございました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?