RE: RE: Horrible performance when publisher connects remotely

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Any chance you can profile your code and see where the time is
being taken? 

> From: Jacob Ven
> 
> Mmm, I am pretty frugal, only one connection and one session 
> are created by the publisher and subscriber at startup time 
> (each running in their own jvm)
> 
>  
> > Message: 1
> > From: "Tim Anderson" <[email protected]>
> > To: <[email protected]>
> > Subject: RE: [openjms-user] Horrible performance when publisher 
> > connects remotely
> > Date: Thu, 2 Feb 2006 20:48:33 +1100
> > Reply-To: [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
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> 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
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.