This was resolved in my case by stopping New Relic from instumenting custom applications. It looks like there is a bug in New Relic where it appends a request header X-NewRelic-ID
, which gets appended with the same data until it grows too long:
X-NewRelic-ID: <hash>, <samehash>, <samehash>,.....<samehash>
Disabling instrumentation of NServiceBus.Host in the NewRelic.xml file prevents the header being sent.
In NewRelic.xml, you might also disable crossApplicationTracingEnabled
.
To detect this, use tracing from System.Diagnostics:
<system.diagnostics>
<trace autoflush="true" />
<sources>
<source name="System.Net" maxdatasize="1024">
<listeners>
<add name="MyTraceFile"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add
name="MyTraceFile"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="System.Net.trace.log"
/>
</sharedListeners>
<switches>
<add name="System.Net" value="Verbose" />
</switches>