I'm using Tomcat 4.0.4 with Jdk1.4 (on both Linux-Server and Windows NT
client) and worrying about a quite similar problem. The server is extremely
fast (I'd say the answer takes some milliseconds) when I access it with a
browser (e.g. MS IE 5.0), but it takes about 20 seconds (!) when I try a
request using java code like this:
URL url = new URL("https://myserver/myresource");
URLConnection con = url.openConnection();
BufferedReader reader = new BufferedReader(new
InputStreamReader(con.getInputStream()));
StringBuffer resultbuffer = new StringBuffer();
String result = reader.readLine();
while (result!=null) {
resultbuffer.append(result);
resultbuffer.append("\n");
result = reader.readLine();
}
reader.close();
This is true for subsequent requests as well. The content consists of about
100 bytes which should be no problem.
So: yes, I'm experiencing a heavy performance problem. I can't say if it is
a performance decrease, though, since I did not test with older Jdk's and
jsse (perhaps I should...). Any solutions, hints or suggestions would be
very welcome!
greetings
Andreas Mohrig
-----Original Message-----
From: Wolfgang Stein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 12:15 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.2.4 slow with Jdk1.4 and SSL
Migrating from Jdk1.3 to Jdk1.4 we encountered a significant
performance decrease on SSL-communications (server certs) between
Applets and Tomcat 3.2.4.
Did anybody experience similar performance losses ?
Does this happen because of a low SSL implementation in jdk1.4 ?
Did anybody successfully provide a faster implementation?
We used jdk1.4 on client and server-side.
Thanks in advance,
Wolfgang
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>