Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Jboss_SocketClient_WebApp  RSS feed

 
Ranch Hand
Posts: 221
  • 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.
 
Evil is afoot. But this tiny ad is just an ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!