can't find users in ScenarioBuilder..is the doc updated?? and error: to many open files

Hi…I’m just trying the samples in the doc and in other sites than I found but I get error with this line

   setUp(scenario1.users(10))

seems than scenario1 has not any users method…

my escenario is pretty simple

        val scenario1 = scenario("Test time!!!")
        .repeat(10) {
        exec(
              http("Home page")
                    .get("http://localhost:8080/")
                    .check(status.is(200))
        )
  }

using google I found this other way

  setUp(scenario1
        .inject(rampRate(100 usersPerSec) to(1000 usersPerSec) during new  FiniteDuration(10, SECONDS)))

compiles fine but I get this error when I run
i.g.h.a.AsyncHandlerActor - Request ‘Home page’ failed : Too many open files

thanks!!

Most wiki pages start with:
This page is about Gatling 1. About Gatling 2, see here.

You seem to be using some version version of Gatling 2, but setUp(scenario1.users(10)) is for Gatling 1.
See Gatling 2 temp page on how to migrate: github.com/excilys/gatling/wiki/Gatling 2

.inject(rampRate(100 usersPerSec) to(1000 usersPerSec) during new FiniteDuration(10, SECONDS))

This is for Gatling 2M3a

i.g.h.a.AsyncHandlerActor - Request ‘Home page’ failed : Too many open files

See https://github.com/excilys/gatling/wiki/Getting-Started#os-config
The message is explicit: you run out of file descriptors.

Cheers,

Stéphane