Maybe it helps you to check first the tcp/ip network to see if the network is the bottleneck.
- Try with a ping or even better with a tracert command ( windows ).
With the tracert you see each hup and the time that it takes for a
packet to go there and back. it’s a good way to see the delays. - Maybe the remote server is slow or has limits.
- Try your code on another server, just to distinguish with less effort, that
it has nothing to do with the server itself.
If this didn’t help. then it is maybe necessary to go into the java code.
1
solved long distanced server is taking too much time compared with my local server for getting the same response [closed]