wood burning stoves 2.0*
The moose likes Tomcat and the fly likes how to enable fast cgi on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to enable fast cgi on Tomcat" Watch "how to enable fast cgi on Tomcat" New topic
Author

how to enable fast cgi on Tomcat

jamshaid ali
Greenhorn

Joined: Aug 28, 2009
Posts: 10
can any one help how can one setup FASTCGI on tomcat... please i am newbie so explain as much as possible....
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42356
    
  64
CGI (and its more modern variant FastCGI) are used in circumstances where the active web app component does not run in-process with the web server. That's not the case with Tomcat, though - it runs both web server and servlet container in the same process, so (Fast)CGI is not needed. What are you trying to do?


Ping & DNS - my free Android networking tools app
jamshaid ali
Greenhorn

Joined: Aug 28, 2009
Posts: 10
Ulf Dittmer wrote:CGI (and its more modern variant FastCGI) are used in circumstances where the active web app component does not run in-process with the web server. That's not the case with Tomcat, though - it runs both web server and servlet container in the same process, so (Fast)CGI is not needed. What are you trying to do?



Well i checked how they work.CGI creating a new process for every request and FASTCGI routing request to one process and not creating a new process everytime.
This is the reason i made the post.Well my tomcat is slow.We did load testing using HP load runner.And it wont take more than 25 requests.More so we do a lot of cgi calls.
Would you like to share how can one speed up tomcat and CGI calls.

The idea is to optimize i have gone through documentation.Increasing thread count,memory,minspare thread count.I am not very gud with linux and installation but i am working on it.Jamon was recommended for testing i will check that...

Meanwhile if you know things how can one optimize tomcat.Because there are always some basic steps that can be done to optimize i think .....we have 8GB of ram quard core processor.Resources is not an issue.CPU utilization doesnt go up, network is 1GB ethernet it works fine too,so does RAM.

Please do i let me know what you think about it more so if you want i can share settings too...thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42356
    
  64
OK, your web app is slow and you want to speed it up. The first step would be to measure where the slowness comes from - the network connection, or the application code, or any I/O or DB accesses the web app might be doing. Then you can start addressing the reason for the slowness.

What do you men by "we do a lot of cgi calls."? Tomcat itself doesn't use CGI (unless you're using the CGI Servlet to make Tomcat invoke some other process, which would be a very rare case indeed).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to enable fast cgi on Tomcat