All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server > Loadtest gatling.io knowledge

Error: missing server' JVM jvm.dll'. Please install or use the JRE or JDK

(1/2) > >>

golfreeze:
ในกรณีที่ทำการรัน gatling.bat ใน window แล้วเกิด error ดังด้านล่างขึ้น
ถึงแม้ว่าจะทำการลง jre ไปแล้ว หรือติดตั้ง jdk ที่ version สูงกว่า 7 แล้ว

C:\Portable\gatling-charts-highcharts-bundle-2.1.7\bin>gatling.bat
GATLING_HOME is set to "C:\Portable\gatling-charts-highcharts-bundle-2.1.7"
Error: missing server' JVM at C:\Program Files (x86)\Java\jre1.8.0_66\bin\server\jvm.dll'.
Please install or use the JRE or JDK that contains these missing components.

ให้แก้ไขโดยเข้าไปที่
C:\Program Files (x86)\Java\jre1.8.0_66\bin\

แล้วทำการ copy Folder "client" ซึ่งด้านในจะมีไฟล์ jvm.dll อยู่ครับ ทำการ copy folder "client" แล้วตั้งชื่อว่า "server" อีก folder ครับ
แล้วทำการรัน gatling.bat อีกรอบดูครับ

golfreeze:
เชค java version โดย
#java -version

golfreeze:
###gatling.io 2.3.1 running on window 7 32bit when run gatling.bat
Unrecognized VM option 'OptimizeStringConcat'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.


You should be able to resolve this issue by removing a line from LaunchConfig.ini in both your client install folder and server.

By default it should look like this:
[VMParams]
JvmParam0=-XX:+OptimizeStringConcat
JvmParam1=-XX:+AggressiveOpts

Changing it to:
[VMParams]
JvmParam0=-XX:+AggressiveOpts

Should remove that error for you.

golfreeze:
vi gatling.bat

fixed by delete "-XX:+OptimizeStringConcat"

golfreeze:
when running gatling.bat and found error
####
java.lang.OutOfMemoryError: Java heap space

fixed by reduce -Xmx parameter on file "gatling.bat" script from 1G to 512M
then try run test again.

นำร่อง

[0] ดัชนีข้อความ

[#] หน้าถัดไป

Go to full version