Hello,
I am creating an application in Java 1.4 and I seem to be having trouble on latency.
What is the common latency that I should be getting if I am just sending Strings over a 100 LAN Ethernet?
I wrote a little test program that sent out 3 types of Strings to a simple server that spit back the strings to my client.
Here are the results:
Avg times
Short Strings (1 word) = 21 ms
Medium Strings (sentence) = 74ms
Long Strings (sample SOAP Message) = 97ms
To me these times are way too large. Does anyone know what my problem my be? Or is java really that slow in TCP? I will be making a test for UDP soon.
PS- for timing I used a DLL that provided must better results that Java's own System call to get the System time, so the times are pretty accurate
I am creating an application in Java 1.4 and I seem to be having trouble on latency.
What is the common latency that I should be getting if I am just sending Strings over a 100 LAN Ethernet?
I wrote a little test program that sent out 3 types of Strings to a simple server that spit back the strings to my client.
Here are the results:
Avg times
Short Strings (1 word) = 21 ms
Medium Strings (sentence) = 74ms
Long Strings (sample SOAP Message) = 97ms
To me these times are way too large. Does anyone know what my problem my be? Or is java really that slow in TCP? I will be making a test for UDP soon.
PS- for timing I used a DLL that provided must better results that Java's own System call to get the System time, so the times are pretty accurate