RE: Horrible performance when publisher connects remotely
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
See inline. > From: Jacob Ven > > When I have all my subscribers, JMSserver and one publisher > running locally I am getting around 40+ events / second. > When I run my publisher on a different machine and connect to > the JMS server using the provider url tcp:ip address:port the > performance drops to 0.5 events/sec (that is one event every > 2 seconds). This is not due to network latency. Ideas? On windows (at least), communications within the local host is via shared memory, and therefore much faster than going over the network. I'd expect better performance however. How are you using connection and session instances? Connections are expensive to create, so its best to use one for all operations. Sessions are less expensive, but each time you create one, several calls need to be made to the server. > > Also is it possible to setup multiple servers where the > publishers/subscribers connect to their local server and the > server forwards the messages to each other ? No. You'd need to develop this yourself. -Tim ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642