• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Jboss_SocketClient_WebApp

 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

We have an application j2ee , which has socketClient utility communicating to the legacy system sending byte of data
and reading the data

We face a latency in reading the response.

Analysis
a. We wrote a standalone and tried, the legacy system is responding in 1 or 2s and we are processing immediately
where as
the same request when hit from a servlet or application, it is sending correctly, but response reading takes time.

How to analysis or trouble shoot

Details
A. Jboss 4..0.5 GA
jdk1.6
Socket - Plain SocketClient . java.net.Socket

Regards
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few tools to try:

Wireshark (http://www.wireshark.org/) - use it to monitor what is really being sent across the network. If there are retries or other things like that, Wireshark will show them to you.

Fiddler (http://www.telerik.com/fiddler) - it will graphically show you the response timings for requests. I find this tool especially handy to find issues with slow web pages (and even slow REST API requests).

You should run the tools on your standalone app that is working correctly first so that you will know what a good result looks like, Then run them with the servlet environment.
 
Curse your sudden but inevitable betrayal! And this tiny ad too!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic