Ok, so this is an interesting tip. Some of you may have read my last post on my blog about a serious delay issue I've been having with an XPage application. Through some hard work with Nathan T Freeman (Mr NTF himself) and the XPages Team at IBM, namely Philippe Riand, Mike Kerrigan and more, we've discovered a bit of an interesting issue.
The problem lies in DNS name resolution on your server. XPages uses "server" as a server name for some internal URLs to access resources within the NSF. We found that the server may try to resolve this name using DNS. If your server has a DNS server that is reachable, and fast, and your computer is not set to automatically append your domain to a DNS query, then the lookup fails immediately (usually within 0 milliseconds), and life is hunky dorey.
HOWEVER, if your DNS server is unreachable, or your client is set to automatically append your domain, such as ".zetaone.com" the query becomes "server.zetaone.com" and if either of these conditions lead to a delay in DNS resolution for the lookup, that delay is added directly to the initialization time of your application.
Whatever time your query takes, say 500ms to resolve, then that adds a 1/2 second delay to your application's initialization time. If your DNS servers are unreachable, or have problems resolving the name, this can add precious time to your application's load time. On Windows servers, the default time out is 2 seconds per DNS server your server is set to query, and on *NIX platforms (Unix, Linux), its usually 10 seconds by default.
Now, this only affects your user the first time they open an application within a session, after that further tries within the same application the lookup is cached. But, if the user opens another aplication (different database) then they will experience the delay all over again.
A fix is in the works for 8.5.2 FP1 (hopefully) to resolve the issue, but in the mean time, to resolve/prevent the problem, the best thing to do is to add two lines to your hosts file that resolve to 127.0.0.1, like this:
server. 127.0.0.1
server.yourdomain.tld. 127.0.0.1
You can find out if you are experiencing this delay by doing an nslookup/dig for "server." and "server.yourdomain.tld." on your domino server. Whatever the response times for those queries are, you can potentially subtract them from your load time with the above fix.