File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes How to speed up AXIS2 HTTPS/SSL connection? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to speed up AXIS2 HTTPS/SSL connection?" Watch "How to speed up AXIS2 HTTPS/SSL connection?" New topic

How to speed up AXIS2 HTTPS/SSL connection?

Jim Smithian

Joined: Sep 21, 2004
Posts: 18
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 (non-SLL) connection which is not acceptable!.

I'm wondering if there are ways to improve the https performance and whether there are configurable parameters in AXIS server or client 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!

Based on the SSL logs, apparently axis uses shared SSL sessions, but still each SAOP operation takes more than 4 seconds.

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.

I'd appreciate your help.

Steve Wu

Joined: Nov 28, 2007
Posts: 4
Hi Jim,
I am using the same configuration as you are, using a java client SSL/HTTPS connection. When I use HTTPS connection I need to open a browser with a https url "https://localhost:8443/mytest/Services". If I don't I got a null pointer exception. Is there any initialization I need to do in Axis2 or in Tomcat to overcome this?
Appreciate any help.

I agree. Here's the link:
subject: How to speed up AXIS2 HTTPS/SSL connection?
It's not a secret anymore!