Gatling.sh error Unrecognized VM option 'OptimizeStringConcat'

getting following error when adding maven-archetype manually

Can’t resolve Archetype io.gatling.highcharts:gatling-highcharts-maven-archetype:2.0.0.20130628

Please advice?

Sorry, I don’t get what you’re doing. Are you trying to generate a project from your IDE (that is?) or from the command line?

Are you used to maven?

I am only trying to setup my Eclipse so that I can run Gatling via my Eclipse so I have downloaded scala eclipse 4.3 IDE and installed it locally in my machine and now I am trying to setup Maven Archetype but not successful.

  1. When adding remote catalog (http://repository.excilys.com/content/groups/public/archetype-catalog.xml) then I am getting java.lang.nullpointer exception and also when verifying this URL then getting “Remote catalog is empty” message.

  2. When adding Maven Archetype manually then I am getting Error “Can’t resolve Archetype io.gatling.highcharts:gatling-highcharts-maven-archetype:2.0.0.20130628”

Please could you let me know how I can resolve these error and install maven Archetype successfully??

I just followed the procedure described in the wiki:

Note that (I didn’t do it in my test in order to reproduce the same thing as you) but when selecting the archetype version, you should display all versions, because the version you’re targeting was a temporary snapshot and not the latest (m2e bug). Latest version here is 2M3a.

If that doesn’t work for you, I’m afraid I won’t be able help.

i have now setup my IDE but when creating project then getting following error

grizzled-slf4j_2.9.2-0.6.10.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page.

redisclient_2.9.2-2.10.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page.

scalate-core_2.9-1.6.1.jar is cross-compiled with an incompatible version of Scala (2.9). In case of errorneous report, this check can be disabled in the compiler preference page.

Description Resource Path Location Type
scalate-util_2.9-1.6.1.jar is cross-compiled with an incompatible version of Scala (2.9). In case of errorneous report, this check can be disabled in the compiler preference page. gatling-highcharts-maven-archetype Unknown Scala Classpath Problem
Description Resource Path Location Type
scopt_2.9.2-2.1.0.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page. gatling-highcharts-maven-archetype Unknown Scala Classpath Problem

scala 2.10 library is already added in the eclipse class path. any idea how i can remove these errors?

Until now, you’ve been trying to install Gatling 2, which is compiled with Scala 2.10, so you installed ScalaIDE for this version.
But now, you’ve been trying to install Gatling 1, which is compiled with Scala 2.9. If that’s what you want to do, you have to install the proper ScalaIDE version.
Please properly read the ScalaIDE install page and pick the version that matched your eclipse and your Gatling version: http://scala-ide.org/download/current.html

  1. Install JDK 7 / & JRE7
  2. Install Eclipse 4.2 (Juno)
  3. Install Scala 2.10.x
    http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site
  4. Install Maven 1.5.3 from http://alchim31.free.fr/m2e-scala/update-site
  5. Add Remote Category http://repository.excilys.com/content/groups/public/archetype-catalog.xml
  6. Create Project, Select Excilys Remote Category and add following groupid and artifactid
    com.excilys.ebi.gatling.highcharts
    gatling-highcharts-maven-archetype

That’s all I have done till now I think I have not installed scala 2.9 and gatling 1 yet and can see the following error

grizzled-slf4j_2.9.2-0.6.10.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page.
redisclient_2.9.2-2.10.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page.
scalate-core_2.9-1.6.1.jar is cross-compiled with an incompatible version of Scala (2.9). In case of errorneous report, this check can be disabled in the compiler preference page.
Description Resource Path Location Type
scalate-util_2.9-1.6.1.jar is cross-compiled with an incompatible version of Scala (2.9). In case of errorneous report, this check can be disabled in the compiler preference page. gatling-highcharts-maven-archetype Unknown Scala Classpath Problem
Description Resource Path Location Type
scopt_2.9.2-2.1.0.jar is cross-compiled with an incompatible version of Scala (2.9.2). In case of errorneous report, this check can be disabled in the compiler preference page. gatling-highcharts-maven-archetype Unknown Scala Classpath Problem

6) Create Project, Select Excilys Remote Category and add following
groupid and artifactid

<groupId>*com.excilys.ebi.gatling.highcharts*</groupId>
    <artifactId>gatling-highcharts-maven-archetype</artifactId>

That's all I have done till now I think I have not installed scala 2.9 and
gatling 1 yet and can see the following error

Yes, you did tried to install Gatling 1.

First thing on this
page<GitHub - gatling/gatling: Modern Load Testing as Code to
warn that it's about Gatling 1, so if you want to use Gatling 2,
you'd better check the Gatling 2 page too.
And one of the first things on Gatling 2
page<GitHub - gatling/gatling: Modern Load Testing as Code
to warn that groupId has changed and is now "io.gatling".

  <groupId>*io.gatling.highcharts*</groupId>
  <artifactId>gatling-highcharts-maven-archetype</artifactId>
  <version>*2.0.0-M3a*</version>

ok fine thanks and please don’t be update about my question. Once I will get some expertise in this area then hopefully I will ask these kind of question again. :slight_smile:

Regards

KAPIL

No problem.
I know the Gatling 2 documentation is lacking for now.

OK Finally, I managed to setup Gatling 2 on my eclipse and no error occurring in my environment. how ever when I recording a script then I can see script is recorded on Gatling Recorder but when when click on save and stop recording then nothing is getting saved and I can not see any recorded script on my eclipse also getting following error during recording on eclipse

Feb 13, 2014 1:15:32 PM org.jboss.netty.channel.SimpleChannelHandler
WARNING: EXCEPTION, please implement io.gatling.recorder.http.handler.ServerHttpResponseHandler.exceptionCaught() for proper handling.
org.jboss.netty.channel.ConnectTimeoutException: connection timed out: api29.thetrafficstat.net/206.222.30.34:80
at org.jboss.netty.channel.socket.nio.NioClientBoss.processConnectTimeout(NioClientBoss.java:137)
at org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:83)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Any idea?

Regards

KAPIL

This was completely refactored in next version. However, that’s just a warning and wouldn’t explain why you don’t get anything saved.
Could you try upgrading to Gatling 2 snapshot, please?

Just change the version in your pom.xml to 2.0.0-SNAPSHOT (hosted on Sonatype: https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT/)

Thanks, Before I start play with Gatling scripting and execution. I would like to integrate Graphite as well so that i can monitor transaction summary, resource utilization etc during my execution.

Graphiteintegration docs are not clear in the wiki so could you please send the instaruction for
Graphite integration and how i need to run it for monitoring purpose?

Graphite is just a dashboard. If you want to monitor various things on your system, you’ll have to do some lego and have some plugs report to Graphite.
For example, you can use jmxtrans: https://github.com/jmxtrans/jmxtrans

When recording the gatling recording some http request which is not related to application under test so i added those request in filter and selected EXCEPT but not successfuly. it is still recording unnecessary request. could you please advise how to define filder on record so that gatling can record only application request and not other??

I am capturing dynamic values using following command randomly.i.e.,

check(
  regex("""<a href="/excilys-bank-web/private/bank/account/(ACC[0-9]*)/operations.html">""")
  .saveAs("acc1"))

if I am getting let say more then one value for parameter acc1. now I want to select any one value randomly but don’t know how we can select random value from dynamically created parameter? Please advise?

Recorder was only filtering on path, not full uri. We changed this in master.
Could it explain your problem?

Extract all the results (findAll), then transform in order to get a single random result:
https://github.com/excilys/gatling/wiki/Checks#wiki-transforming

alrite let say I am recording my application http:///xyz.com/index.html then getling recorder currently recording all request related to my application which is fine but it also recording some additional http request i.e., www.google.com etc and i don’t want gatling to record these additional request and want to define these as some kind of filter to ignore this kind of traffic. how I can define these kind of filters in gatling?

another question:

  1. I am capturing some value dynamically during runtime and want to select this value randomly. how I can select value randomly during rin time for any parameter?

  2. I am using Eclipse IDE but where I can see my test related log etc, parameter value etc? in my gatling log?

alrite let say I am recording my application http:///xyz.com/index.htmlthen getling recorder currently recording all request related to my
application which is fine but it also recording some additional http
request i.e., www.google.com etc and i don't want gatling to record these
additional request and want to define these as some kind of filter to
ignore this kind of traffic. how I can define these kind of filters in
gatling?

You'd have to use Gatling 2 snapshot:

Since this version, you can define white and black lists based on regular
expressions that match the full url and not only the path.

another question:

2) I am capturing some value dynamically during runtime and want to select
this value randomly. how I can select value randomly during rin time for
any parameter?

See my previous email.

3) I am using Eclipse IDE but where I can see my test related log etc,
parameter value etc? in my gatling log?

See logback.xml file for configuring logging.