# Unexpected behavior with atOnceUsers

**URL:** <https://community.gatling.io/t/unexpected-behavior-with-atonceusers/1774>\
**Category:** Gatling (Open-Source)\
**Created:** [December 2, 2014, 10:08pm UTC](https://community.gatling.io/t/unexpected-behavior-with-atonceusers/1774 "2014-12-02T22:08:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Nine](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@Todd\_Nine](https://community.gatling.io/u/Todd_Nine)\
**Post date:** [December 2, 2014, 10:08pm UTC](https://community.gatling.io/t/unexpected-behavior-with-atonceusers/1774/1 "2014-12-02T22:08:52Z")

</div>

Hey guys,  
Per this forum post,

[https://groups.google.com/forum/#!topic/gatling/JfYHaWCbA-w](https://groups.google.com/forum/#!topic/gatling/JfYHaWCbA-w)

I’m trying to perform the following.

1. Start with 1 user, then go to our max users over a ramp time
2. Continue load with our max users over a duration.

To accomplish this, I’ve perform the following.

```auto
setUp(
  UserScenarios.postUsersInfinitely
    .inject(
      /**
       * injection steps take from this forum post
       * https://groups.google.com/forum/#!topic/gatling/JfYHaWCbA-w
       */
      rampUsersPerSec(1) to (Settings.maxPossibleUsers) during Settings.rampTime,
      constantUsersPerSec(Settings.maxPossibleUsers) during Settings.duration

    )).protocols(Settings.httpConf.acceptHeader("application/json"))

```

```auto

```

```auto
However, when I look at my graphs, I see number of active users jump significantly past my setting of 10. In my tests, Settings.maxPossibleUsers = 10, Settings.rampTime = 60 and Settings.duration = 60. However, this is what my graph looks like.

```

```auto

```

```auto
<img src="https://lh6.googleusercontent.com/-AeKpPKBBGeU/VH44GKJ7x9I/AAAAAAAAASI/L9LQzvAxSrU/s320/Screen%2BShot%2B2014-12-02%2Bat%2B3.06.49%2BPM.png" border="0" width="320" height="121" style="font-size: 13px; line-height: 18px; text-align: center; color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;"> .

```

```auto

```

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [December 3, 2014, 6:26am UTC](https://community.gatling.io/t/unexpected-behavior-with-atonceusers/1774/2 "2014-12-03T06:26:02Z")

</div>

You’re confusing rampUsers and rampUsersPerSec. Please have a closer look at the documentation.
