Focal Point
Servlet Performance Much Worse Than CGI

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6731014831

November 25, 2005, 12:57 PM
smiths
Servlet Performance Much Worse Than CGI
When switching from CGI to servlet, I found that performance went from reasonable to extremely poor, with some reports that ran in 5-7 seconds with CGI taking minutes to run with servlet (or timing out).

Has anyone else experienced this problem, or know what might be causing it? Is it a known problem that has been fixed with a more recent software version?

Here is my WebFocus environment:
WebFocus 5.2.3
Unix - IBM AIX 5.2
Apache 1.3.27
Tomcat 4.1.24
Oracle 9.2.0.6

Any help/suggestions would be appreciated!

Thanks,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
November 27, 2005, 11:23 PM
susannah
generally speaking, ISAPI beats CGI (by miles), and Servlet is sometimes better than ISAPI (or at least equals); but that opinion is a win2k one; Perhaps you should open a case with tech support and have them take a look at your install and config, since your findings seem to be counter to the norm. They'll be best able to help you.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
November 28, 2005, 09:28 AM
smiths
Thanks Susannah,

I actually have a case open, but they're starting by looking at some code and not the config. I agree that there may be something wrong with the config, especially when you say that you expect Servlet to be faster than CGI.

Thanks for your input!


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
November 29, 2005, 01:16 PM
Carol Dobson
I'm using release 5.2.4 and though Information Builders claims that Servlet is faster, I always find CGI to be faster. I'd be interested to know what the outcome is.

Thanks much,
Carol



WebFOCUS 7.6.6/TomCat/Win2k3
November 29, 2005, 01:26 PM
smiths
Carol,

I'll post a note if we find a solution.

We've reverted our Prod env back to CGI in the interim.

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
December 05, 2005, 03:37 PM
smiths
The solution was to set &ECHO off. For fexes that perform a lot of processing, Servlet couldn't handle it. But this has been fixed in WF 5.2.7.

But it's a good idea to turn off &ECHO for Production anyways.

Also, I am told to refrain from the use of -TYPE.

I've also been told that Servlet performance (in general) is much better in 5.2.7 than 5.2.3.

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
December 06, 2005, 08:19 AM
Carol Dobson
Sean,
Many thanks for posting the outcome. I use &ECHO in EVERYTHING! It's good to know it's not the installation, and for this release we'll stick with CGI.

Thanks again!
Carol



WebFOCUS 7.6.6/TomCat/Win2k3
December 09, 2005, 03:14 PM
MTracker
Just curious what method are you specifying when calling WFServlet? Get or Post?

We are starting to explore implementing 7.1 under websphere. Any performance tuning tips would be appreciated.
December 13, 2005, 10:19 AM
smiths
We use POST.

Regards,
Sean


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
December 13, 2005, 12:02 PM
Carol Dobson
We use POST also, but with CGI



WebFOCUS 7.6.6/TomCat/Win2k3