Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Running with correct VM options

  • Loading branch information...
commit 37a2eacabd5cfa9550307952a608126ae306aa8d 1 parent c0709b5
@krishnenc authored
Showing with 14 additions and 9 deletions.
  1. +12 −1 README.md
  2. +2 −6 project/Build.scala
  3. +0 −2  project/plugins.sbt
View
13 README.md
@@ -11,13 +11,24 @@ Depends on :
* Scala 2.9.2
+Set Environment Variables:
+
To generate eclipse project:
sbt eclipse
-To run basic example:
+To run within sbt:
* sbt run
* Choose engine
* Data is generated in the results folder
+To run within standalone (with correct VM options):
+
+* sbt compile
+
+* export JAVA_OPTS="-XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -Xss1024k -XX:+HeapDumpOnOutOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccessorMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly"
+
+* sbt stage
+
+* target/start Engine
View
8 project/Build.scala
@@ -1,7 +1,6 @@
import sbt._
import Keys._
import com.typesafe.startscript.StartScriptPlugin
-import cc.spray.revolver.RevolverPlugin._
import classpath.ClasspathUtilities.isArchive
import java.io.FileOutputStream
import sbtassembly.Plugin._
@@ -10,7 +9,7 @@ import AssemblyKeys._
object BuildSettings {
import Dependencies._
- val buildOrganization = "org.krishnen.gatling"
+ val buildOrganization = "org.gatling"
val buildVersion = "0.0.1"
val buildScalaVersion = "2.9.2"
@@ -20,7 +19,6 @@ object BuildSettings {
scalaVersion := buildScalaVersion,
scalacOptions := Seq("-unchecked", "-deprecation", "-encoding", "utf8"),
javacOptions := Seq("-Xlint:unchecked", "-Xlint:deprecation","-encoding", "utf8"),
- fork in test := true,
resolvers ++= Dependencies.resolutionRepos)
val projectSettings = Defaults.defaultSettings ++ globalSettings
}
@@ -34,8 +32,7 @@ object Build extends sbt.Build {
lazy val gatlingTemplate = Project("gatling-template",
file("."),
settings = projectSettings ++ assemblySettings ++
- Revolver.settings ++
- StartScriptPlugin.startScriptForJarSettings ++
+ StartScriptPlugin.startScriptForClassesSettings ++
Seq(libraryDependencies ++= Seq(
Compile.logback,
Compile.gatlingApp,
@@ -48,7 +45,6 @@ object Dependencies {
val resolutionRepos = Seq(
"Scala Tools" at "http://scala-tools.org/repo-releases/",
"Typesafe repo" at "http://repo.typesafe.com/typesafe/releases",
- "Jboss repo" at "https://repository.jboss.org/nexus/content/groups/public-jboss/",
"Excilys" at "http://repository.excilys.com/content/groups/public")
object V {
View
2  project/plugins.sbt
@@ -6,8 +6,6 @@ addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0")
addSbtPlugin("com.typesafe.startscript" % "xsbt-start-script-plugin" % "0.5.2")
-addSbtPlugin("cc.spray" % "sbt-revolver" % "0.6.1")
-
resolvers += Resolver.url("sbt-plugin-releases",
new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
Please sign in to comment.
Something went wrong with that request. Please try again.