Re: Performance of java rmi
Gregg Wonderly <[email protected]> Mon, 15 Jun 2009 13:06:45 -0500
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Niclas Hedhman wrote: > On Fri, Jun 12, 2009 at 6:20 PM, lachhman<[email protected]> wrote: >> Hi, >> >> Why is that the first call to java remote object, especially rmi registry is >> far slower than subsequent calls? > > In my experience it is mostly due to DNS lookup & TCP connection > establishment, but YMMV. In particular, if there is not active DNS server, you can get long DNS timeouts on attempts to reverse lookup (PTR record query) from ip address to get names. There is also the download of the servers codebase jar files in the mix as well. There are TCP traffic monitoring tools available that you can run on the client and the server to see what types of network traffic are flowing and how long delays are. Gregg Wonderly =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html