あらすじ
macOS Mojave で JMeter をインストールしようと思ったが、インターネット上の情報は錯綜していたので最新のスムーズなインストール方法を残しておく。
現在の手軽な方法
$ brew cask install java $ brew install jmeter
以下細かい記録
JMeterインストール
Homebrew に JMeter があるようだったのでそちらをインストールすることにした。
$ brew install jmeter ==> Downloading https://homebrew.bintray.com/bottles/jmeter-5.1.1.mojave.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/75/75fe29e4b60b96e881c3b64475d4f7fc268cd405e300b31f1aa3ce6cb26c4211?__gda__=exp=1570438461~hmac=9517ddefa9f0b663e575518e6da1acaf ######################################################################## 100.0% ==> Pouring jmeter-5.1.1.mojave.bottle.tar.gz 🍺 /usr/local/Cellar/jmeter/5.1.1: 2,492 files, 121.8MB
その後、 JMeter を起動しようとしたが、JAVA環境が必要だと怒られたので環境を構築することにした
$ jmeter Unable to find any JVMs matching version "(null)". No Java runtime present, try --request to install. Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program $ jmeter --request Unable to find any JVMs matching version "(null)". No Java runtime present, try --request to install. Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
JAVA環境構築
2019年現在、Oracle JDK 有償化に伴い、Oracle のサイトからダウンロードしようとすると Oracle のアカウント作成またはサインインを求められてしまうので、 Open JDK をインストールする。
Open JDK は brew cask でインストール可能。
$ brew cask install java ==> Satisfying dependencies ==> Downloading https://download.java.net/java/GA/jdk13/5b8a42f3905b406298b72d750b6919f6/33/GPL/openjdk-13_osx-x64_bin.tar.gz ######################################################################## 100.0% ==> Verifying SHA-256 checksum for Cask 'java'. ==> Installing Cask java ==> Moving Generic Artifact 'jdk-13.jdk' to '/Library/Java/JavaVirtualMachines/openjdk-13.jdk'. Password: 🍺 java was successfully installed!
これで JMeter が起動できるようになった。
$ jmeter WARNING: package sun.awt.X11 not in java.desktop ================================================================================ Don't use GUI mode for load testing !, only for Test creation and Test debugging. For load testing, use CLI Mode (was NON GUI): jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder] & increase Java Heap to meet your test requirements: Modify current env variable HEAP="-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m" in the jmeter batch file Check : https://jmeter.apache.org/usermanual/best-practices.html ================================================================================ WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.bulenkov.darcula.DarculaLaf (file:/usr/local/Cellar/jmeter/5.1.1/libexec/lib/darcula.jar) to constructor com.apple.laf.AquaLookAndFeel() WARNING: Please consider reporting this to the maintainers of com.bulenkov.darcula.DarculaLaf WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

PFU Happy Hacking Keyboard Professional2 Type-S 英語配列/白 PD-KB400WS
- 出版社/メーカー: PFU
- 発売日: 2011/06/15
- メディア: Personal Computers
- この商品を含むブログを見る