[ome-devel] Blitz sessions

Woodbridge, Mark R m.woodbridge at imperial.ac.uk
Wed Nov 11 22:38:00 GMT 2009


Hello Josh,

I have attached the logs. There are only three projects in the database. The tcpdump when running on the local machine is almost identical to when running on the remote machines - but in the latter case there seems to a be a extra long pause after the query is run but before the server acknowledges the closeSession request. Perhaps this is just something to do with my server or network setup, but it's a bit strange.

Mark.

-----Original Message-----
From: josh.moore at gmx.de [mailto:josh.moore at gmx.de] 
Sent: 11 November 2009 20:42
To: Woodbridge, Mark R
Cc: ome-devel at lists.openmicroscopy.org.uk
Subject: [ome-devel] Blitz sessions

Woodbridge, Mark R writes:
 > Hi,

Hi Mark,

 > If I run the following program on the OMERO server machine it takes about half a second:
 > 
 > public class Test {
 >     public static void main(String[] args) throws Exception {
 >         omero.client client = new omero.client(args);
 >         try {
 >             client.createSession().getQueryService().findAllByQuery("select p from Project p", null);
 >         } finally {
 >             client.closeSession();
 >         }
 >     }
 > }
 > 
 > But if I run it on another machine on the local network (have tried
 > Windows and Linux) the results are returned almost as fast but the
 > client.closeSessionCall() takes 10 seconds rather than being
 > instant. Am I missing something from my code? Would be very
 > grateful for any pointers...

I don't know of a specific reason that close session should be slower
from another machine, i.e. I don't think you're doing anything wrong.

Can you maybe run the Test with either:

  java -agentlib:hprof=cpu=times Test

or 

  java -Xprof Test

(or both) and send the results? Also, how many projects are we talking
about here?

 > Mark.

~J.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: java.hprof.txt
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20091111/cee98a9c/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Xprof.txt
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20091111/cee98a9c/attachment-0003.txt>


More information about the ome-devel mailing list