• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling a url from a servlet in Websphere 3.2

 
Prasanth Varma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling an external url from a servlet, which is running on Websphere, using the URL class. The call is taking much more time than it takes from the browser. Does anybody have any idea as to how to improve the performance??
Thanks in advance.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might start by timing the various parts of the process using System.currentTimeMillis(). How are you treating the InputStream from the connection? If you have to read more than a few bytes, some sort of buffered input is in order.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic