Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTPS connection using AXIS-2 and Tomcat is very very slow  RSS feed

 
Jim Smithian
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

We have implemented a SOAP Web Services server and client using Java 1.6, Apache Axis 2 v1.3 and Tomcat 6. We have also implemented a client in C# and .NET. The http connection using Java is slower than .NET but still acceptable. The https/SSL connection using Java client is much slower than .NET and about 100 times slower than http (no SLL) connection which is not acceptable!.

I'm wondering what's the reason for this huge difference in performance and whether there are configurable parameters which can improve https speed in Java clients. (e.g. less strong encryption in SSL).

We even replaced the Tomcat Java SSL library with native C library but it didn't help that much!

I'd appreciate your help.

Thanks
Jim
 
Jim Smithian
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I did a search in Google and found that the reason for slow SSL connection might be because it tries to establish a new SSL session for each SOَََAP request. According to Sun's document(http://java.sun.com/j2se/1.4.2/docs/api/javax/net/ssl/SSLSession.html) there are ways to share SSL keys in different sessions to avoid overhead of establishing new sessions.

I'm wondering if that can solve my SSL speed problem and how can I configure Tomcat and clients to use shared SSL sessions.

Note that I don't specifically create HTTPS/SSL connections in my code. I use the AXIS2 libraries and the Java classes generated from the WSDL file using wsdl2java.

Thanks in advance for your help.

Jim
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!