# HLS stalls on Windows with ~2,000 applications: VHost directory scans under a write lock in WSE 4.12.2

**URL:** <https://community.wowza.com/t/hls-stalls-on-windows-with-2-000-applications-vhost-directory-scans-under-a-write-lock-in-wse-4-12-2/102885>\
**Category:** Wowza Streaming Engine\
**Created:** [November 23, 2026, 12:17pm UTC](https://community.wowza.com/t/hls-stalls-on-windows-with-2-000-applications-vhost-directory-scans-under-a-write-lock-in-wse-4-12-2/102885 "2026-11-23T12:17:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marek\_Marciniak](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Marek\_Marciniak](https://community.wowza.com/u/Marek_Marciniak)\
**Post date:** [November 23, 2026, 12:17pm UTC](https://community.wowza.com/t/hls-stalls-on-windows-with-2-000-applications-vhost-directory-scans-under-a-write-lock-in-wse-4-12-2/102885/1 "2026-11-23T12:17:20Z")

</div>

We experienced repeated HLS playback interruptions after upgrading to Wowza Streaming Engine 4.12.2. During one incident, JVM thread dumps showed that all 1,600 `ServerTransport` workers were waiting, directly or indirectly, for a VHost write lock held by a REST worker collecting Test Playback metadata. Restarting Engine restored service.

I’m sharing the thread-dump findings and a comparison of three WSE releases because the cost of checking whether an application exists appears to have changed.

### Environment

- Windows Server 2022, Eclipse Adoptium OpenJDK 21.0.3+9-LTS
- Wowza Streaming Engine and Engine Manager 4.12.2, build `20261029155418`
- Approximately 2,000 configured applications across the installation, including live and VOD
- Incidents on November 23, 2026. All times below are CET.

### What the thread dumps showed

We captured four full JVM thread dumps from the same Engine process. Playback was still working when we took the first two.

| Time | Transport workers blocked on the same HLS session monitor | Idle transport workers | REST workers in `TestPlaybackInfoConfig.loadObject()` |
| --- | --- | --- | --- |
| 11:10:47 | 564 | 1,029 | 5 |
| 11:10:54 | 588 | 1,006 | 5 |
| 11:14:35 | 1,599 | 0 | 9 |
| 11:14:43 | 1,598 | 0 | 9 |

At **11:14:35** , the lock ownership chain was visible in the dump:

1. A REST worker held the **VHost write lock**. Its stack went through `TestPlaybackInfoConfig.loadObject()`, `InstancesConfig.loadObject()`, `VHost.getApplication()`, `VHost.applicationExists()` and `VHost.getApplicationFolderNames()`. At the instant of capture it was inside `java.io.File.exists()` on Windows.
2. `ServerTransport.636` was waiting for that VHost lock in `getApplicationInstance()` while holding the **HLS session monitor**.
3. The other **1,599 transport workers** were blocked on that session monitor. Their stacks accounted for **1,136 playlist requests and 463 media requests**.

Eight seconds later, both locks had changed owners, but the pool still had no idle workers. A different REST worker held the VHost lock while executing `File.isDirectory()` in the same directory scan. This points to severe contention with some forward progress.

### What changed between versions

We compared the vendor update packages for **4.10.0+14, 4.12.2 and 4.12.3**. The Manager home template, shared application toolbar, Test Playback JavaScript and controller were byte-for-byte identical across all three. The stock Manager already fetched playback metadata during ordinary navigation, before the operator opened the Test Playback dialog.

The relevant difference was in Engine’s local implementation of `VHost.applicationExists(name)`:

- **4.10.0+14** resolved the requested application’s directory and called `exists()` and `isDirectory()` on that specific path.
- **4.12.2 and 4.12.3** call `getApplicationFolderNames().contains(name)`. The helper lists the `applications` directory, checks its entries and builds the complete list before testing membership.

When `getApplication()` misses the application in its in-memory map, this check runs under the VHost write lock. With approximately 2,000 configured applications, repeated misses during metadata collection could make that lock expensive to hold. We confirmed the code path and lock ownership in production on **4.12.2**. We have not measured the number of scans per request or tested **4.12.3** under the same load.

### Later incident and workaround

During a later interruption, Chrome showed two pending `TestPlayback.jsdata` requests during ordinary Manager navigation. Over six minutes, Engine’s successful HLS session connections fell from **140 per minute to 4** , and it logged **26 `Invalid session` warnings across 11 applications**. We did not capture a JVM dump during that incident, so we cannot confirm it had the same lock chain.

Our temporary workaround is a Manager-side change that defers playback metadata retrieval until an operator explicitly opens **Test Playback**. We confirmed that ordinary navigation no longer sends those requests. We are monitoring for recurrence.

**Has anyone seen this lock chain on a deployment with a large application count?** Can Wowza confirm when the local existence check changed to a full directory scan, and whether there is a supported fix that avoids directory enumeration while holding the VHost write lock? We have provided the four full JVM dumps to Wowza Support.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [November 24, 2026, 9:20am UTC](https://community.wowza.com/t/hls-stalls-on-windows-with-2-000-applications-vhost-directory-scans-under-a-write-lock-in-wse-4-12-2/102885/2 "2026-11-24T09:20:26Z")

</div>

Hi Marek,  
Thank you for reaching out via our forum. I see you also created a ticket (51731424014) where we can troubleshoot this issue further as needed.

At the moment, our Development Team believes they have identified the issue and resolved it in the latest development build. This means a fix for this particular issue should be available in the next public version, which will be 4.13.0.

If there aren’t any unexpected delays, version 4.13.0 of the Wowza Streaming Engine software is planned to be released on the 1st of December 2026 (1 week from the date of this post).

For anyone else that is seeing the same issue, please update to version 4.13.0 and let us know if the issue continues by posting in this thread and creating a new ticket via your [account portal](https://www.wowza.com/portal/account).

Regards,  
**Jason Hilton**  
Senior Technical Support Engineer  
**WOWZA** | _The **solution** you start with, the **partner** you scale with._

**[Manage your Support cases online](https://urldefense.com/v3/ __https://portal.wowza.com/account/support__ ;!!GFN0sa3rsbfR8OLyAw!b21Ye3sPxunm4p5NSvmBLvIcMnA6OS9j4Q6GGF5By3Zd2KpmqFACOzAHUWnC8Y2Wwq_lhoVkvzxWGfdtbeYvJI9QnQ$)**  
**Bookmark our [FAQ page](https://urldefense.com/v3/ __https://support.wowza.com/hc/en-us__ ;!!GFN0sa3rsbfR8OLyAw!b21Ye3sPxunm4p5NSvmBLvIcMnA6OS9j4Q6GGF5By3Zd2KpmqFACOzAHUWnC8Y2Wwq_lhoVkvzxWGfdtbeZS3JTgtA$)**  
**Bookmark our[Status page](https://urldefense.com/v3/ __https://status.wowza.com/__ ;!!GFN0sa3rsbfR8OLyAw!b21Ye3sPxunm4p5NSvmBLvIcMnA6OS9j4Q6GGF5By3Zd2KpmqFACOzAHUWnC8Y2Wwq_lhoVkvzxWGfdtbebL9JPWqQ$)**  
**Check out our [Latest Release](https://www.wowza.com/docs/wowza-streaming-engine-4-12-2-release-notes)**  
**Check out our [Security Centre](https://www.wowza.com/docs/wse-security-advisories)**  
 ![](https://api-na1.hubspot.com/filemanager/api/v2/files/222360291434/signed-url-redirect?portalId=229276)

---

<div class="post-metadata">

**Author:** ![Marek\_Marciniak](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Marek\_Marciniak](https://community.wowza.com/u/Marek_Marciniak)\
**Post date:** [November 24, 2026, 9:32am UTC](https://community.wowza.com/t/hls-stalls-on-windows-with-2-000-applications-vhost-directory-scans-under-a-write-lock-in-wse-4-12-2/102885/3 "2026-11-24T09:32:37Z")

</div>

Yes indeed, I’ve already received the fix and it is fine.

Thanks.
