File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to enable fast cgi on Tomcat

 
jamshaid ali
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one help how can one setup FASTCGI on tomcat... please i am newbie so explain as much as possible....
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
jamshaid ali
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic