After moving the Content Server to a different country it now takes me about 50 ms to reach it from my workstation. It seems like this might be a killer for a DFC application because of its chattiness. Does anyone know if there's some settings I could look at to improve the performance? It's kinda pain to develop with these performances. I'm running 6.7SP2 with patch 16 on both the server and client side.
For reference I've created a very simple console application to illustrate the difference of running with 50 ms latency (from my workstation) vs 1 ms latency (from another server in the same network). They both use identical libraries and dfc.properties.
This is the application:
This is the application
public class Main {
public static void main(String[] args) {
IDfClientX clientX = new DfClientX();
System.out.println("Starting measurement. Please wait...");
long timestamp = currentTimeInMs();
try {
clientX.getLocalClient();
} catch (DfException e) {
System.exit(1);
}
System.out.println("Runtime in millis " + (currentTimeInMs() - timestamp));
}
private static long currentTimeInMs() {
return System.nanoTime() / 1000000;
}
}
Running locally with 50 ms results in:
Runtime in millis 27846
While running on the application server with 1 ms results in:
Runtime in millis 4803
Other operations like getSession also takes forever some times (probably when there's no session in the session pool).