This article applies to:
- WebMarshal 6.11 and above
Question:
- How do I change the TCP buffer size for WebMarshal proxy upload connections?
- Large files upload slowly
Procedure:
In WebMarshal 6.11 and above, by default WebMarshal uses a 16 KB buffer for upload TCP/IP data.
This is a change from earlier versions that had a 2 KB buffer. The upload performance should be significantly improved by default.
The buffer size has an impact on memory usage particularly when many users are browsing, because a buffer is used for each transmission thread. Testing suggests that the new default value offers the best balance between performance and memory usage.
You can change the buffer size with an entry in the WMProxy.config.xml file. You can set a value in Bytes between 2048 and 65536 (that is, between 2KB and 64 KB). If you enter a smaller value the value used will be 2048; if you enter a larger value the value used will be 65536.
For example:
<WebMarshal>
<Proxy>
<Config>
<ProxySettings tcpBufferSize="16384" [other attributes...] />
</Config>
</Proxy>
</WebMarshal>
Notes:
- XML file entries are CASE SENSITIVE. For general notes on editing XML, see article Q12705.
- You can also take policy based action on the protocol versions, with a HTTPS rule condition.
- Back up configuration before making changes.
- The file WMProxy.config.xml normally contains additional settings. The ProxySettings, SSL, and FTP nodes can have multiple attributes. Each of these nodes should only occur once.
- To adjust this setting, only add (or remove) the specific attributes as described above.
- This setting affects upload connections only. Download connections (most browsing content) have never been affected by the buffer limitation.