Network performance issues when running application

Performance of JNBridgePro over the network seems slow. What can I do about it?

By default, JNBridgePro sends out network packets between the .NET and Java sides as soon as they are created. In most cases, this leads to improved performance. However, this behavior means that the typical JNBridgePro-generated network packet is small, and in some cases this may lead to network congestion and degraded performance. If you encounter network performance degradation, you can turn off this NoDelay option so that packets are aggregated before they go out. In some cases this may improve network performance. Typically, if calls or returns contain a large amount of data (for example, if you are passing large arrays, or large by-value objects), turning NoDelay off may improve performance. The NoDelay option can also be controlled independently in the .NET-to-Java and Java-to-.NET directions.

To turn the NoDelay option off in the .NET-to-Java direction add the following to your .NET application's configuration file. That is, if your application is x.exe, create or open the file x.exe.config in the same folder as x.exe and add the following to the file:

   <sectionGroup name="jnbridge">
      <section name="dotNetToJavaConfig"
         type="System.Configuration.SingleTagSectionHandler" />
      <section name="javaToDotNetConfig"
         type="System.Configuration.SingleTagSectionHandler" />
      <section name="tcpNoDelay"
         type="System.Configuration.SingleTagSectionHandler" />
      <section name="javaSideDeclarations"
         type="System.Configuration.NameValueSectionHandler" />
      <section name="assemblyList"
         type="com.jnbridge.jnbcore.AssemblyListHandler, JNBShare,
         Version=, Culture=neutral,
         PublicKeyToken=b18a44fb28aea122" />
      <tcpNoDelay noDelay="false" />

To turn the NoDelay option off in the Java-to-.NET direction, add the following line to your file:


See the Users' Guide ("Tuning Network Performance") for more information.