This covers 2 known issues:
- Slow File Upload– resolved by increasing AJP
packetSize="65536"
. - 1‑Second Delay – fixed by changing
name="127.0.0.1"
toname="::1"
in the AJP connector.
1‑Second Delay confirm only on Windows(BonCode AJP)
Please try uploading a big file( > 500 MB ) on Linux to verify with AJP w/o packetSize:
- AJP using
packetSize=65536
- AJP using the default
packetSize=8192
What is BonCode AJP?
BonCode AJP is a lightweight AJP 1.3 connector for IIS → Apache Tomcat/Lucee/CFML, developed for Windows.
- Acts as a reverse proxy using the binary AJP protocol between IIS and Tomcat
- Replaces legacy ISAPI connectors with a managed .NET module
- Supports streaming, SSL header forwarding, IPv6, load balancing
Memory Usage During Upload/Download
On Windows, using BonCode AJP for file transfers causes the w3wp.exe
IIS worker process to consume large amounts of memory—generally proportional to the file size. After the transfer completes, memory is only freed after a delay, not immediately. This significantly increases resource pressure.
In contrast, both IIS reverse proxy setups and Nginx → Tomcat direct proxies do not exhibit this memory spike during upload or download operations
Performance Test: 500 MB File Upload (Windows, IIS + AJP BonCode)
Configuration | Upload Time |
---|---|
1. IIS Rewrite with port 8888 | 5 seconds |
2. AJP BonCode with packetSize=65536 |
15.4 seconds |
3. AJP BonCode default packetSize=8192 |
130 seconds |