• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown


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.

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

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

Posts: 5856
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
    Bookmark Topic Watch Topic
  • New Topic