users@glassfish.java.net

Re: Glassfish IIOP performance problem

From: Harshad Vilekar <harshad.vilekar_at_oracle.com>
Date: Mon, 20 Aug 2012 12:27:44 -0700

In addition to serialization / de-serialization, there are other
overheads like ORB initialization, GIOP protocol overheads - including
message fragmentation if the data size is more than 4K, Object waits on
the socket listener thread etc. Did you try performance profiling the
client's VM to get more insight on where the time is being spent ?

On 08/17/2012 11:30 AM, forums_at_java.net wrote:
> I am experiencing some strange performance problem, probably related
> somehow
> to IIOP/Corba. I am retrieving some objects from the server by some
> standalone client, which does a lookup on the InitialContext. It
> retrieves
> around 10k objects. I added time measuring in some AroundInvoke
> interceptor
> (the outer-most I have) and it takes 10s on the server side. On the
> client
> side it takes 18s to retrieve the data. Initially I was thinking it is
> just
> too many objects, so for testing I serialized them into an object
> stream and
> read them back of that object stream again. This takes just 2s, the
> size of
> the serialized objects is 2MB. 10s for the server, 18s for the client and
> just 2s for serialize/deserialize. There are 6s missing! Any ideas
> welcome!
> Client and server are on the same machine in my setup, so there is no
> network
> communication. I am using glassfish v3.
>
> --
>
> [Message sent by forum member 'ztangm']
>
> View Post: http://forums.java.net/node/889314
>
>