On 24/12/2024 15:24, 'Hugo Larson' via firebird-java wrote:
> First noticed seen this slowness at many customer sites where they also
> use Wired lan so it's not something specific to my home Wlan, where
> signal is strong. access point Server and client meters away in my same
> room.
Then I'd look at things like firewalls (both local on the client, and
within the network), or virus scanners, that also attempt to scan
network traffic.
You could also try if setting the socketBufferSize connection property
to 16384, 32768, 65536, or even bigger has an effect. Jaybird normally
uses the OS default (the Windows default is 65536, at least on Windows 11).
You may also want to check what the actual size is on your OS:
```
import java.net.Socket;
public class SocketSize {
public static void main(String[] args) throws Exception {
try (var socket = new Socket()) {
System.out.println(socket.getReceiveBufferSize());
System.out.println(socket.getSendBufferSize());
}
}
}
```
On my machine it prints:
```
65536
65536
```
However, I'd be surprised if that would be different for you.
Alternatively, write a simple ping/pong client and server (i.e. the
client sends and flushes a message to the server, and the server
responds with a small message, and so forth), and set them on different
machines in your network, and see how they interact, that is what the
delay is between sending and receiving (make sure to set
TCP_NODELAY/setTcpNoDelay(true) on both client and server socket).
> I use FB 2.5. Don't think it has encryption connection which I guess
> should be fastest.
> What version of FB did you test with?
I tested it with Firebird 5.0.1, but I don't think there will be any
difference between versions in this regard.
Mark
--
Mark Rotteveel