# Gatling Hanging??? No response...No Console Logs..

**URL:** <https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527>\
**Category:** Gatling (Open-Source)\
**Created:** [October 10, 2014, 9:37am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527 "2014-10-10T09:37:41Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dinesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Dinesh\_Reddy](https://community.gatling.io/u/Dinesh_Reddy)\
**Post date:** [October 10, 2014, 9:37am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/1 "2014-10-10T09:37:41Z")

</div>

Hi,

I am using the gatling for stress testing in our project. I have defined the scenarios and prepared the injection profile. All the scenarios are working properly and gatling gave nice report when the number of users is less, but when I run with large number of users, say 200 users/sec, execution hung in just 2 mints and nothing happened visibly (no console logs/response).

I have modified the following JVM variables to provide enough memory to gatling to run the scenarios.

-Xms1024M  
-Xmx4096M  
-Xmn100M

The Java process of the gatling is 99% CPU Usage and been running but there is no console logs which shows the progress of the execution.

I am just trying to figure out what could be the problem. Can someone help me out?

Regards  
Dinesh

---

<div class="post-metadata">

**Author:** ![Alex\_Bagehot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Alex\_Bagehot](https://community.gatling.io/u/Alex_Bagehot)\
**Post date:** [October 10, 2014, 10:22am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/2 "2014-10-10T10:22:36Z")

</div>

Hi Dinesh,  
Per my other email, I suspect you have overloaded the system under test and also your load injector machine.  
Review once you inject 0.056 users per second, per your original requirement, or restate the requirements.

Also I wouldn’t set the new space to 100M (the -Xmn). likely worth removing that setting.

thanks,  
Alex

---

<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:** [October 10, 2014, 11:43am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/3 "2014-10-10T11:43:54Z")

</div>

99% CPU usage seems crazy.  
Looks like a JDK bug. Which version do you run? On which platform? Could you try getting a thread dump and see what happens here, please?

---

<div class="post-metadata">

**Author:** ![Dinesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Dinesh\_Reddy](https://community.gatling.io/u/Dinesh_Reddy)\
**Post date:** [October 14, 2014, 6:59am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/4 "2014-10-14T06:59:15Z")

</div>

My Test actually ran for about 6 to 8 hours and then gatling crashes with out of memory errors. The thread dump was huge, around 6 GB. Even compressed file is about 600 MB.

My JDK is 1.7.0\_51 (64-bit)

As suggested by Alex, I am planning to run the test with the reduced load and see if both the systems sustain the load. If the systems can sustain the load I am planning to run couple of gatling instances which can pump in the targeted load on my application under test.

Please drop your suggestions.

Thanks in advance.  
Regards  
Dinesh

---

<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:** [October 14, 2014, 7:10am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/5 "2014-10-14T07:10:09Z")

</div>

This can happen for many reasons. Usually a misusage.  
Could you upload the compressed heapdump somewhere, please? Impossible to tell without it.

---

<div class="post-metadata">

**Author:** ![Dinesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Dinesh\_Reddy](https://community.gatling.io/u/Dinesh_Reddy)\
**Post date:** [October 14, 2014, 10:30am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/6 "2014-10-14T10:30:02Z")

</div>

Thanks for your quick reply. I have uploaded the compressed java dump file on the dropbox and copied the link below.

[https://www.dropbox.com/s/t6jrg8puwjt95ls/java\_pid4900.rar?dl=0](https://www.dropbox.com/s/t6jrg8puwjt95ls/java_pid4900.rar?dl=0)

Thanks  
Regards  
Dinesh

---

<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:** [October 14, 2014, 11:28am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/7 "2014-10-14T11:28:59Z")

</div>

ETA: 7hrs  
Will probably have to download tonight… 😉

---

<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:** [October 14, 2014, 2:41pm UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/8 "2014-10-14T14:41:21Z")

</div>

@Dinesh: Which version of Gatling do you use and what does your injection profile look like?

---

<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:** [October 14, 2014, 2:50pm UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/9 "2014-10-14T14:50:26Z")

</div>

Honestly, I suspect that you’re running a version prior to RC3: [https://github.com/gatling/gatling/issues/2129](https://github.com/gatling/gatling/issues/2129)

---

<div class="post-metadata">

**Author:** ![Dinesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Dinesh\_Reddy](https://community.gatling.io/u/Dinesh_Reddy)\
**Post date:** [October 15, 2014, 10:00am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/10 "2014-10-15T10:00:05Z")

</div>

Hi Stéphane,

As you rightly said, I am using an older version (2.0 RC2) of gatling. I just now upgraded to 2.0.1 and restarted my test. Test seems running fine. I will keep you updated on the progress.

Thank you for your time!!!

Regards  
Dinesh

---

<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:** [October 15, 2014, 10:09am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/11 "2014-10-15T10:09:38Z")

</div>

I was pretty sure of it.  
Have fun!

---

<div class="post-metadata">

**Author:** ![Dinesh\_Reddy](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@Dinesh\_Reddy](https://community.gatling.io/u/Dinesh_Reddy)\
**Post date:** [October 16, 2014, 7:57am UTC](https://community.gatling.io/t/gatling-hanging-no-response-no-console-logs/1527/12 "2014-10-16T07:57:24Z")

</div>

It worked fine. There were no memory issues. Thanks a lot for your support.

Regards  
Dinesh
