Couldn't run even a Basic Simulation

48 views
Skip to first unread message

nenaviju...@gmail.com

unread,
Jun 19, 2018, 3:40:33 AM6/19/18
to Gatling User Group
Hello, I'm using Gatling 2.3.1 with Java 8. Gatling recorder worked for me perfectly, but I can't run gatling neither with recorded script nor with basic simulation. I get an error.

GATLING_HOME is set to /opt/gatling-charts-highcharts-bundle-2.3.1
There is no simulation script. Please check that your scripts are in user-files/simulations


echo $JAVA_HOME returns me /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin - I've set it so
 
I've also set memory heap to 2G

my gatling.sh config:

if [ -n "$JAVA_HOME" ]; then
    JAVA="$JAVA_HOME"/java
else
    JAVA="/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java"
fi

OLDDIR=`pwd`
BIN_DIR=`dirname $0`
cd "${BIN_DIR}/.." && DEFAULT_GATLING_HOME=`pwd` && cd "${OLDDIR}"

GATLING_HOME="${GATLING_HOME:=${DEFAULT_GATLING_HOME}}"
GATLING_CONF="${GATLING_CONF:=$GATLING_HOME/conf}"

export GATLING_HOME GATLING_CONF

echo "GATLING_HOME is set to ${GATLING_HOME}"

DEFAULT_JAVA_OPTS="-server"
DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} -Xmx2G"
DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} -XX:+UseG1GC -XX:MaxGCPauseMillis=30 -XX:G1HeapRegionSize=16m -XX:InitiatingHeapOccupancyPercent=75 -XX:+ParallelRefProcEnabled"
DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} -XX:+PerfDisableSharedMem -XX:+AggressiveOpts -XX:+OptimizeStringConcat"
DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} -XX:+HeapDumpOnOutOfMemoryError"
DEFAULT_JAVA_OPTS="${DEFAULT_JAVA_OPTS} -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv6Addresses=false"
COMPILER_OPTS="-Xss100M $DEFAULT_JAVA_OPTS $JAVA_OPTS"

# Setup classpaths
COMMON_CLASSPATH="$GATLING_CONF:${JAVA_CLASSPATH}"
COMPILER_CLASSPATH="$GATLING_HOME/lib/zinc/*:$COMMON_CLASSPATH"
GATLING_CLASSPATH="$GATLING_HOME/lib/*:$GATLING_HOME/user-files:$COMMON_CLASSPATH"



Structure of my gatling directory - here're the files:


Nachiket Kshirsagar

unread,
Jun 19, 2018, 5:38:15 AM6/19/18
to gat...@googlegroups.com
Your .scala files should be at user-files/simulations

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Best Regards,

Nachiket Kshirsagar

QA Lead

Zinrelo (formerly ShopSocially)


102 Persian Drive, Suite #101, Sunnyvale, CA 94089

Tel: | www.zinrelo.com

request a demo | loyalty best practices guide | success stories

nenaviju...@gmail.com

unread,
Jun 20, 2018, 1:51:20 AM6/20/18
to Gatling User Group
So they're there.What's the problem then?

вторник, 19 июня 2018 г., 12:38:15 UTC+3 пользователь Nachiket Kshirsagar написал:
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages