# \[Gatling 2\] Generate reports after simulation was interrupted

**URL:** <https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237>\
**Category:** Gatling (Open-Source)\
**Created:** [August 4, 2014, 10:51am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237 "2014-08-04T10:51:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uladzimir\_Kazimirchy](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@Uladzimir\_Kazimirchy](https://community.gatling.io/u/Uladzimir_Kazimirchy)\
**Post date:** [August 4, 2014, 10:51am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/1 "2014-08-04T10:51:11Z")

</div>

Hi,

is there any way i can generate html report after simulation was interrupted?  
I’ve come to an issue when simulation is “hanged”

Like here is the console log:

---

<div class="post-metadata">

**Author:** ![Uladzimir\_Kazimirchy](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@Uladzimir\_Kazimirchy](https://community.gatling.io/u/Uladzimir_Kazimirchy)\
**Post date:** [August 4, 2014, 11:13am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/2 "2014-08-04T11:13:51Z")

</div>

So as I thought… On rerun I got the same situation but now 58 threads “doing” something  
but simulation is not ending. It’s just throws new table to console and adds another 5 seconds to time elapsed…

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 4, 2014, 6:00pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/3 "2014-08-04T18:00:29Z")

</div>

Hi Uladzimir,

You can generate reports “by hand”, using the _reportsOnly_ option.  
When running, Gatling will create in your “results folder”, which is named “results” in the bundle, a folder named using the following convention : _nameofyoursimulation-dateOfRunStart,_ which contains the simulation’s log.  
If you run Gatling with the -ro option, followed by the folder’s name, e.g. : _gatling.sh -ro mysimulation-20140804195812,_ Gatling will generate the reports for your simulation in this folder.

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 4, 2014, 8:22pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/4 "2014-08-04T20:22:20Z")

</div>

However, the behaviour you’re getting is rather strange.  
What version of Gatling do you use ?  
If you’re using Gatling 2, can you add “leak” to the list of “writers” in gatling.conf and post the results here ?

---

<div class="post-metadata">

**Author:** ![Uladzimir\_Kazimirchy](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@Uladzimir\_Kazimirchy](https://community.gatling.io/u/Uladzimir_Kazimirchy)\
**Post date:** [August 5, 2014, 8:21am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/5 "2014-08-05T08:21:26Z")

</div>

I used 2.0.0-M3a and yesterday switched to RC1. I have not experienced that behaviour yet.

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 5, 2014, 12:16pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/6 "2014-08-05T12:16:59Z")

</div>

Glad to hear that this has been apparently fixed since 2.0.0-M3a 🙂

---

<div class="post-metadata">

**Author:** ![Uladzimir\_Kazimirchy](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@Uladzimir\_Kazimirchy](https://community.gatling.io/u/Uladzimir_Kazimirchy)\
**Post date:** [August 5, 2014, 12:29pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/7 "2014-08-05T12:29:20Z")

</div>

Thought I had

java.net.SocketException: Too many open files

java.net.SocketException: Too many open files in system  
Errors which is also strange… 🙂

---

<div class="post-metadata">

**Author:** ![Uladzimir\_Kazimirchy](https://avatars.discourse-cdn.com/v4/letter/u/f14d63/32.png) [@Uladzimir\_Kazimirchy](https://community.gatling.io/u/Uladzimir_Kazimirchy)\
**Post date:** [August 5, 2014, 12:45pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/8 "2014-08-05T12:45:14Z")

</div>

Already found a doc about tuning max opened files 🙂

---

<div class="post-metadata">

**Author:** ![Nadine\_Whitfield](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@Nadine\_Whitfield](https://community.gatling.io/u/Nadine_Whitfield)\
**Post date:** [August 23, 2014, 1:40am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/9 "2014-08-23T01:40:25Z")

</div>

This is great information! Thank you.

---

<div class="post-metadata">

**Author:** ![jcanavire](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jcanavire](https://community.gatling.io/u/jcanavire)\
**Post date:** [June 16, 2015, 9:11pm UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/10 "2015-06-16T21:11:34Z")

</div>

I am having the same issue, could you tell how did you solve it?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 18, 2015, 11:53am UTC](https://community.gatling.io/t/gatling-2-generate-reports-after-simulation-was-interrupted/1237/11 "2015-06-18T11:53:34Z")

</div>

See -ro: [http://gatling.io/docs/2.1.6/general/configuration.html#command-line-options](http://gatling.io/docs/2.1.6/general/configuration.html#command-line-options)
