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

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.

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.

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

Manage your Support cases online
Bookmark our FAQ page
Bookmark our Status page
Check out our Latest Release
Check out our Security Centre

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

Thanks.