-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Object transfers over RMI
PostPosted: Mon Sep 15, 2008 8:36 pm 
Newbie

Joined: Mon Sep 15, 2008 8:23 pm
Posts: 1
Location: Boston
Hi,

We have a Rich Client Application running on a remote Weblogic 9.2 server. Recently we noticed some sort of slowness on the first invocation of a command from the client. The first instance was taking somewhere around 55 seconds for the serializable data transfer between server and client.While the same Object being transferred took 2 seconds on second command invocation.When debugged, the serialized size of the object was around 25 kb.When debugged , we saw that the object graph contained lazy initialized proxy objects and the same was present on the client too.

We changed the object to remove the proxy objects and that solved the problem. The first command invocation took 2 seconds same as the subsequent calls.

For Further analysis,We looked at the Network Packets between the server and the client - noticed that the first command invocation transferred data around 1 MB (though object size was 25 kb) while second invocation transferred 25 kb.The network packets showed some cglib related classes transferred from the server.

I am not sure, why the data transfer on the network layer was huge and cglib classes- and also the subsequent caching mechanism which helps the second command to complete in 2 seconds.Does anyone has any idea on this slowness and caching? Is it something to do with RMI?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.