[jboss-user] [Performance Tuning] - Re: Client JBOSS Communication takes long time on threaded remote calls

Hardik Shah do-not-reply at jboss.com
Thu Feb 16 00:55:05 EST 2012


Hardik Shah [https://community.jboss.org/people/hardikshah] created the discussion

"Re: Client JBOSS Communication takes long time on threaded remote calls"

To view the discussion, visit: https://community.jboss.org/message/716998#716998

--------------------------------------------------------------
Thank you for your response.

My client program and jboss resides on the same server, so there should not be any network latency issue.
Below is just to provide the idea about how i execute and calculate my test result.

*Client Program:*

LongAttribute nanoTime = new LongAttribute();
nanoTime.setID(54);
nanoTime.setLongValue(System.nanoTime()); //setting the timestamp value on client side.
requestPacket.addAttribute(nanoTime);

responsePacket = SessionBeanRemote.onlineService(requestPacket);

*Server Side:*

ArrayList<IRatingAttribute> Attribute = requestPacket.getAttribute(CommunicationConstant.RequestPacketAttributes.QUEUE_WAIT.getAttributeId());

double waitInQueue = 0;
String sessionID = null;

if(Attribute != null && Attribute.size()>0){
          waitInQueue = Math.ceil(((System.nanoTime() - ((LongAttribute)Attribute.get(0)).getLongValue()) / 1000000d));
}

if(Logger.isWarnEnabled()) Logger.logWarn(MODULE,"Wait In Que : " + waitInQueue);
*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/716998#716998]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120216/5d0102fe/attachment-0001.html 


More information about the jboss-user mailing list