Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Implementing filters

Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am in a situation where I have to choose between a devil and deep see J
The situation is I have 200 users connecting to my http server (maximum users may go upto 300-500). Due to licensing issues and economical thingies, we have decided to use latest versions of Linux+Apache+Postgresql+Tomcat. Ported the database from MSSQL 2000 successfully and with little modifications my system works just fine on new setup (Thanks to java, I don’t need to change any of my Servlets, jsp or beans)
Now comes the choice issue - We have some homemade ISAPI filters sitting on top of IIS on Win2K policing every request and determine what to serve. Equivalent to this are Apache modules where we have no expertise to get our hands dirty and customize readily available apache filters such as mod_filter, mod_tracker etc. The way out – Timely introduced filters in Servlet 2.3 – They came as a savior. I wanted to adopt them quickly and boot out apache as a middleman and make Tomcat 4.x as a stand alone server. This gives me ability to write my filters to police every request as ISAPI filters and perform whatever we were doing with ISAPI filters.
My concerns here are summarized as below:
1.Removing Apache as a http server will have any adverse effect on performance and is it scalable in case concurrent users go upto 500 or over. (Precisely can Tomcat 4.0 alone handle the load for static as well as dynamic content?)
2.Is it a good solution to depend on Tomcat 4.0 without a http server to serve static content if concurrent users are restricted to a maximum of 300
Any advice from experts and gurus are highly appreciated.
(Don't fume - I am aware that there exists a topic for Apache/Tomcat. But looking at the level of posts there, I have decided to do it here as experts are flocking here this week )
[ April 23, 2002: Message edited by: sita kodali ]
Saloon Keeper
Posts: 21139
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really, now. Just because there are more postings in THIS forum doesn't mean you'll get better service than in the Apache/Tomcat one!
Short answer: If you are primarily serving active content, Apache is actually going to be a performance drag, since servlet requests have to go through an extra layer. Apache is preferred primarily if you have lots of static content like pictures, audio, animations or long HTML-only pages.
Another possiblity is to use Apache 2.0 and convert your ISAPI stuff to its Apache equivalents.
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!