# All threads getting locked in VHost lock

**URL:** https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336
**Category:** Wowza Streaming Engine
**Created:** [May 16, 2014, 1:10am UTC](https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336 "2014-05-16T01:10:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rafael\_Sobral](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rafael\_Sobral](https://community.wowza.com/u/Rafael_Sobral)
#### Post date: [May 16, 2014, 1:10am UTC](https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336/1 "2014-05-16T01:10:12Z")

</div>

Hi,

My systems is going down because all thread are waiting on the lock of the VHost object.

I am using jstack to dump the threads. I can not find any thread holding the holds.

Do you have any suggestion?

Aloha,

Rafael Sobral

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [May 16, 2014, 2:53am UTC](https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336/2 "2014-05-16T02:53:42Z")

</div>

It may be of use to grab a [thread dump](https://www.wowza.com/docs/how-to-create-a-java-stack-trace-on-wowza-media-server) and zip up your conf/ and logs/ directories and send them to support@wowza.com for further review and analysis.

---

<div class="post-metadata">

### Author: ![Rafael\_Sobral](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rafael\_Sobral](https://community.wowza.com/u/Rafael_Sobral)
#### Post date: [May 16, 2014, 11:18am UTC](https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336/3 "2014-05-16T11:18:45Z")

</div>

I am sending. But here is a list of Threads waiting it.

ServerHandler…

at com.wowza.wms.vhost.VHost.getClient(VHost.java:1443)

at com.wowza.wms.vhost.VHost.getClient(VHost.java:1502)

at com.wowza.wms.request.RTMPRequestAdapter.service(RTMPRequestAdapter.java:175)

at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:653)

at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:401)

at com.wowza.wms.server.ServerHandler.sessionIdle(ServerHandler.java:537)

at com.wowza.wms.server.ServerHandlerThreadedSession.run(ServerHandlerThreadedSession.java:111)

StatsManager

at com.wowza.wms.vhost.VHost.isApplicationLoaded(VHost.java:1969)

at com.wowza.wms.stats.StatsManager.run(Unknown Source)

MyThread

at com.wowza.wms.vhost.VHost.getApplication(VHost.java:1998)

serverWatchdog

at com.wowza.wms.vhost.VHost.updateIOPerformance(VHost.java:2379)

at com.wowza.wms.server.Server.updateIOPerformance(Server.java:2861)

at com.wowza.wms.server.Server.doWatchdog(Server.java:2806)

at com.wowza.wms.server.ServerWatchdog.run(ServerWatchdog.java:40)

Most of BLOCKED threads are on logging.

BLOCKED

at org.apache.log4j.Category.forcedLog(Category.java:391)

at org.apache.log4j.Category.log(Category.java:856)

at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:199)

Is the log Thread-safe?

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [May 19, 2014, 4:58am UTC](https://community.wowza.com/t/all-threads-getting-locked-in-vhost-lock/36336/4 "2014-05-19T04:58:18Z")

</div>

Please refer to ticket

```auto
#91708

```
