I am facing performance issue in HttpTunneling .Needs help.
I am using java.net.URLConnection(); and Object
outputstram and object inputsteam for getting data
from servlet.But after some hit.In Lotus server
its getting slower and ultimately getting thread block for servlet.
In tomcat,Resin,Weblogic there was no problem.But
in Lotus server.After few hits its saying the thread is blocked.
And i am also thinking that URLConnection does not have anything called
So when hit increases.What kind of optimization could be done to get the
1) Should i go for SingleThreadModel interaface???
2) Should in put synchronised block with this object around the dataaccess and tree generation part??
3) But what about creating too many socket connection ?I mean
opening the URLConnection??How do i get the best optimized one.
So that none of the server complains me.??If you have any kind of
sol/idea pls let me know.
if any better optimisation can be possible or any other way
so that it works in best way.Since applet has to be downloaded very
fast and its carrying bit larg jar and doing operations.
Time being I ahave hardcoded the url for servlet .I can use the getcodebase() then the servlet path.But what about the connection and performance related sol.
How to optimise in several connection
related and stream related issues.