Re: Tomcat request hooks

2020-05-09 Thread Sriram Narayanan
On Sat, 9 May 2020 at 9:09 PM, Vikas Kumar wrote: > I did not know about the images being dropped. > > Here are the steps I depicted in the image: > > Step 0: Request accepted by OS > Step 1: Request sent to Tomcat. Tomcat accepts the request if it's internal > queue is not full, else rejects the

Re: Tomcat 9.0.26 best practices

2019-10-08 Thread Sriram Narayanan
I offer consultation on production ready setups and customisation. Let me know if you are interested Ram On Tue, 8 Oct 2019 at 8:04 PM, Raheem Soukath Ali < raheem.soukath...@gulfair.com> wrote: > Hello, > > Thanks for your suggestion. > > Soon we are planning to upgrade RHEL to 8 version and f

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-11 Thread Sriram Narayanan
On Sat, Jun 11, 2011 at 7:54 PM, Caldarale, Charles R wrote: >> From: Sriram Narayanan [mailto:sriram...@gmail.com] >> Subject: Re: Optimal Settings to use Tomcat as a HTTP File Server > >> I myself agree that common practice is not the same as best practice, >> t

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-11 Thread Sriram Narayanan
serving of static content from the service of application responses. -- Sriram On Sat, Jun 11, 2011 at 1:30 PM, Sriram Narayanan wrote: > On Sat, Jun 11, 2011 at 1:14 AM, Christopher Schultz > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Sriram, >

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-11 Thread Sriram Narayanan
On Sat, Jun 11, 2011 at 1:14 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Sriram, > > On 6/10/2011 1:49 PM, Sriram Narayanan wrote: >> Having one application serve static content, and having other >> applications serve other

Re: My web application to use SSL (JSSE - RSA)

2011-06-10 Thread Sriram Narayanan
Charles, you are facing multiple problems here. One is with the RSA, and the other is with starting Tomcat instances. On Fri, Jun 10, 2011 at 8:48 PM, Charles Van Damme wrote: > At which moment does NetBeans start the Tomcat server ? > If I operate a shutdown.bat and a startup.bat from start >

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-10 Thread Sriram Narayanan
On Fri, Jun 10, 2011 at 11:18 AM, Caldarale, Charles R wrote: >> From: Caldarale, Charles R >> Subject: RE: Optimal Settings to use Tomcat as a HTTP File Server > >> > We plan to use tomcat to let users download static content >> > ( media, executables etc.. ). > >> As much as I like Tomcat, I hav

Re: Question on WORK directory of tomcat container

2011-06-09 Thread Sriram Narayanan
On Fri, Jun 10, 2011 at 12:42 AM, Savoy, Melinda wrote: > Due to a conflict between the cached JSPs in the work directory of a tomcat > container on our app's QA Windows 2003 server, does the tomcat service have > to be restarted? > > Any help would be greatly appreciated.  Thanks. > I've faced

Re: Optimal Settings to use Tomcat as a HTTP File Server

2011-06-09 Thread Sriram Narayanan
On Fri, Jun 10, 2011 at 7:10 AM, Caldarale, Charles R wrote: >> From: Anand HS [mailto:anan...@gmail.com] >> Subject: Optimal Settings to use Tomcat as a HTTP File Server > >> We plan to use tomcat to let users download static content >> ( media, executables etc.. ). > > As much as I like Tomcat,

Re: Can HttpServletRequest.forward() work across different tomcat instances?

2008-11-02 Thread Sriram Narayanan
On Sun, Nov 2, 2008 at 2:41 PM, Sriram Kuna <[EMAIL PROTECTED]> wrote: > Hello, > > We have many Tomcat instances, each running on a different machine (they are > controlled by a load balancer). In this case, can a tomcat instance do > HttpServlet.forward() to some other tomcat instance? Please cla

When would Tomcat refuse to accept any further connections ?

2007-05-02 Thread Sriram Narayanan
Hello list: We're using Tomcat to host some web services. The nature of our application is such that a single web service receives a lot of requests in bursts. We use Cognos to connect to a data provider called Simba, which in turn makes the requests to the web service. Our customers are report

Re: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Sriram Narayanan
On 3/7/07, Andrew Miehs <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This will work if you are only using 1 Apache HTTPD server Are you referring to the following ? Two httpd servers with mod_jk pointing to the same two tomcat instances. httpdA and mod_jkA have a r

Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Sriram Narayanan
Hi all: I'd posted sometime ago seeking help for a particular requirement. Rainer Jung replied to my post. The thread is here http://thread.gmane.org/gmane.comp.jakarta.tomcat.user/144823 Requirement: 1. Host an application on two tomcat instances. 2. Enable load balancing between these two Tomc

Re: Advanced mod_jk router configuration

2007-03-07 Thread Sriram Narayanan
On 2/28/07, Rainer Jung <[EMAIL PROTECTED]> wrote: worker 1 and worker2 distance=0 worker 3 distance=1 Thank you very much. This worked for us very well. Regards, Rainer -- Sriram - To start a new topic, e-mail: users@t

Re: [OT] Re: Lucene and DB speeds

2007-03-01 Thread Sriram Narayanan
On 3/1/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sriram, 400MB is not really that big of an index. A friend of mine runs a Lucene index at the US Library of Congress that is several GB and they search it /very/ quickly. Of course, they have

Lucene and DB speeds

2007-03-01 Thread Sriram Narayanan
Hi all: When I query for large datasets, I see a delay between the search and the results. For e.g., if I were to query a database containing about 2 GB of data, with a 400+ MB Licene index, then I get search results after anywhere between 5 seconds to 35 seconds. Any tips on how I could test fo

Advanced mod_jk router configuration

2007-02-28 Thread Sriram Narayanan
Hi: We have router1 doing load balancing and failover between worker1 and worker2. We would like to configure additional worker3 such that router1 will only forward the request to worker3 once all the failover attempts are exhausted for worker1 and worker2 combination How do we achieve this? Th

Re: [OT] A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication

2007-02-16 Thread Sriram Narayanan
t is possible you can add your server.xml of both tomcat. With regards, Babulal Satasiya Cisco System Inc. Sriram Narayanan wrote: > > On 2/14/07, Babu Satasiya <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> Please update about cluster option in server.xml, withou

Re: [OT] A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication

2007-02-15 Thread Sriram Narayanan
On 2/14/07, Babu Satasiya <[EMAIL PROTECTED]> wrote: Hi, Please update about cluster option in server.xml, without that how does it work. If you can post all the steps will help others, otherwise it may even confuse to others. I just looked over my previous post, and I see the following stat

Advice sought: Tomcat instances on separate machines join a cluster after considerable delay

2007-02-13 Thread Sriram Narayanan
Hi: Earlier today, I managed to get a Tomcat cluster fronted by httpd 2.2, and with mod_jk as the load balancer. I followed the documentation, had to change the worker from worker1 to router in one place, and was able to get everything working. When I run both the Tomcat instances on the same ma

A Howto for Tomcat 6.0.9, mod_jk, apache 2.2 load balancing + session replication

2007-02-13 Thread Sriram Narayanan
Hi all: I just got this working, so I thought of posting a small howto for the list :) An apache instance (httpd) that serves http://localhost/examples/ where /examples is served by two Tomcat instances (if one is down/unavailable, then httpd dec

Re: Executing binary from Servlet

2006-09-13 Thread Sriram Narayanan
On 9/12/06, Mark HB <[EMAIL PROTECTED]> wrote: I have ensured that the permissions are set to at least 755 and am now at a bit of a loss. Any ideas? I'd faced a similar problem yesterday when adding some features to Sahi (http://sahi.sourceforge.net/). But this was on Windows. I took the syst

How does one enter a non-ISO8859-1 character in the servlet path ?

2006-09-12 Thread Sriram Narayanan
Hi: I was having a look at the bugzilla, and chanced across this post http://issues.apache.org/bugzilla/show_bug.cgi?id=7013 I'm curious to know how one could enter a "non-ISO8859-1 character" in the request URL. An pointers to articles on the Internet would be appreciated. Thanks in advance.

Re: Embedded intance and server.xml

2006-01-16 Thread Sriram Narayanan
On 1/17/06, Claudio Sanchez <[EMAIL PROTECTED]> wrote: > Hi, > I want to configure an embedded server using an external configuration file. > Is there a way to configure an Embedded server instance using server.xml? > server.xml is digested. You can easily do something like this yourself by just c

Re: Question regarding tomcat class path handling

2006-01-16 Thread Sriram Narayanan
On 1/12/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > On Wednesday, 11 בJanuary 2006 18:38, Sriram Narayanan wrote: > > I wrote something that works for me: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 > > Thanks. I didn't use your implementation for t

Re: Question regarding tomcat class path handling

2006-01-12 Thread Sriram Narayanan
On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > > > What you could do is to write your own WebAppClassLoader that'd add > > these folders to its lookup list. > > Hmm. interesting. How can I let such a class loader implementation to be > used instead of tomcat's WebAppClassLoader ? > The fol

Re: Problems Using Context Loader

2006-01-12 Thread Sriram Narayanan
On 1/12/06, Michel Costa <[EMAIL PROTECTED]> wrote: > No, that is not a Tomcat problem... it's a specific application problem... I > saw some people complaining about the same things in applications similar to > mine. > By "No, that is not a Tomcat problem...", I believe you're saying that there

Re: Problems Using Context Loader

2006-01-11 Thread Sriram Narayanan
On 1/11/06, Michel Costa <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I am trying to create a ClassLoader for my application so then I will not > have to reload all the hibernate and struts when a new class is compiled. > Could you please explain why this is a problem ? Is the startup time an is

Re: Using a CustomClassLoader for my WebApp

2006-01-11 Thread Sriram Narayanan
On 1/11/06, Sriram Narayanan <[EMAIL PROTECTED]> wrote: > Hi: > > I'm trying to create a CustomClassLoader that I could use as my Web > App's classloader. > But I've been unsuccessful so far. > I forgot what I did wrong, but I've accomplished w

Re: Question regarding tomcat class path handling

2006-01-11 Thread Sriram Narayanan
On 1/10/06, Sriram Narayanan <[EMAIL PROTECTED]> wrote: > On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > > > > > > What you could do is to write your own WebAppClassLoader that'd add > > > these folders to its lookup list. > >

Using a CustomClassLoader for my WebApp

2006-01-10 Thread Sriram Narayanan
Hi: I'm trying to create a CustomClassLoader that I could use as my Web App's classloader. But I've been unsuccessful so far. The problem: == When I create a JSP with the content : <% Class clazz = Class.forName("com.testing.junk.Cy

Re: Question regarding tomcat class path handling

2006-01-10 Thread Sriram Narayanan
On 1/9/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > So now if an application uses a local library, and that library required > a third party jar, it can't find it. > The way I see it, I have two options - either put all the 3rd party > libraries back in the JVM classpath, or build jars from my lo

Re: Tomcat not relinquishing control of Jars.

2006-01-09 Thread Sriram Narayanan
On 1/10/06, Zach Moazeni <[EMAIL PROTECTED]> wrote: > I tried both attributes, which worked however the server doesn't detect > new pages like it used to. (If you update a jsp, it continues using the > cached version) > This is a documented bug according to http://tomcat.apache.org/tomcat-5.5-doc/

Re: Apache + Tomcat, Tomcat only handles JSP in localhost

2006-01-09 Thread Sriram Narayanan
On 1/10/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > For curiosity's sake, what "full-fledged" features do you think are > missing from Tomcat? > The link he gave talks about how to have PHP etc along side Tomcat. -- Sriram -

Re: forwarding JDOM-Objects

2006-01-09 Thread Sriram Narayanan
On 1/9/06, Christian Stalp <[EMAIL PROTECTED]> wrote: > Hello again, sorry for my late answer to this thread. > > I desided to forward the JDOM-Object via tge servelt-context. > This solution wrote me Frode Halvorsen of the jdom-interest mailling list. > > He wrote: > > >Hello. > > > >Why don't you

Re: Question regarding tomcat class path handling

2006-01-09 Thread Sriram Narayanan
On 1/10/06, Oded Arbel <[EMAIL PROTECTED]> wrote: > > An optimal setup for me, I think, is: > - for each application to put the 3rd party dependencies in WEB-INF/lib > (I'm using JPackage's build-jar-repository, which I auto invoke from > the ant script, so its even automatic). I thought you said