• Post Reply Bookmark Topic Watch Topic
  • New Topic

Profiling SOAP application

 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I have a simple SOAP Service published which just returns a string to the Client something like "Happy Soaping". I have also a RMI application which basically does the same.
I clearly find a difference between these two application executions. SOAP is very slow compared to RMI. So, for performance comparison I am using a freely available profiler named HProf.
Can anyone suggest me why and where SOAP gets slower compared to RMI?
Also, if anyone has profiled SOAP applications, please let me know.
Thankyou,
Kiran
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML Parsing. We've been running these kind of tests within IBM for months, and the time it takes is nearly all (well over 70%) spent in XML parsing and generation. That's why I don't recommend replacing RMI-IIOP calls with SOAP calls when RMI-IIOP will function.
Kyle
 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kyle,
Thanks a lot! I was wondering why I cant replace a SOAP client using simple Java Sockets for communication over HTTP with a SOAP Server. So that I can avoid the XML parsing and creation of the SOAP Envelope.
I have posted a new TOPIC regarding this lately. Please take a look at it.
I found that a simple Soap Client which sends no parameters to the SOAP server takes around
1. 40 - 45 % Establishing HTTP connection to POST, creation of SOAP Envelope.
2. 30 - 37% SOAPMappingRegistry, XMLserializers, marshalling, naming service etc.
3. 10 -15% XMLparsing.
I was just putting some results of my profiling of a SOAP client.
Thankyou for your time,
Sincerely,
Kiran Devaram
CIS dept.
Kansas State University
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kiran -- I'm not surprised with those numbers given no parameters (and thus nearly no XML). I'll think you'll find as you send increasingly complex XML in the SOAP envelope that you'll see the parsing time growing larger and larger while the other times hold constant.
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!