Uploading large files

2013-05-29 Thread Mohit Anchlia
I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going t

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
Got it thanks! Will try that On Mon, Aug 15, 2011 at 12:54 PM, Mark Thomas wrote: > On 15/08/2011 20:39, Mohit Anchlia wrote: >> >> On Mon, Aug 15, 2011 at 12:17 PM, Pid  wrote: >>> >>> On 15/08/2011 18:05, Mohit Anchlia wrote: >>>> >>>>

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
On Mon, Aug 15, 2011 at 12:17 PM, Pid wrote: > On 15/08/2011 18:05, Mohit Anchlia wrote: >> Is this even possible with tomcat? > > In Tomcat 7.0: > >  abc##SNAPSHOT-01.war >  abc##SNAPSHOT-02.war >  abc##SNAPSHOT-03.war >  abc##SNAPSHOT-04.war > > etc Sorry

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
Is this even possible with tomcat? On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia wrote: > Currently when I deploy abc-SNAPSHOT-01.war I access is something like > http://localhost:8080/abc-SNAPSHOT-01.war > > How can I change the context root such that I can access it as > h

Tomcat war context path

2011-08-11 Thread Mohit Anchlia
Currently when I deploy abc-SNAPSHOT-01.war I access is something like http://localhost:8080/abc-SNAPSHOT-01.war How can I change the context root such that I can access it as http://localhost:8080/abc? Problem is that abc-SNAPSHOT-01.war name could change with the build version change.

getScheme

2011-08-09 Thread Mohit Anchlia
tomcat docs for connectors say: scheme: This sets the protocol name as accessed by the ServletRequest.getScheme method. The scheme defaults to http. Is there any other way scheme can be changed by using some Http Headers instead of doing it in connector? -

Re: Servlet Request URL

2011-08-09 Thread Mohit Anchlia
I think I resolved it. It looks like if I keep the "Host" header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. On Mon, Aug 8, 2011 at 10:50 PM, Moh

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid wrote: > On 08/08/2011 20:36, Mohit Anchlia wrote: >> I need to re-write URL using some Http Headers. Can I use any headers? >> Or only the one listed here? >> >> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html >> >

Servlet Request URL

2011-08-08 Thread Mohit Anchlia
I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a way I can keep the same h

URL rewrite

2011-08-08 Thread Mohit Anchlia
I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used getHeaders and iterate over it: I need to use host as

Re: Design Question

2011-08-06 Thread Mohit Anchlia
On Sat, Aug 6, 2011 at 6:10 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 8/5/2011 5:46 PM, Mohit Anchlia wrote: >> I also need to use mod_rewrite to direct request to new Servlet. Can >> I use rewrite to say abc

Re: Design Question

2011-08-05 Thread Mohit Anchlia
On Fri, Aug 5, 2011 at 2:41 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 8/5/2011 5:05 PM, Mohit Anchlia wrote: >> On Fri, Aug 5, 2011 at 1:37 PM, Christopher Schultz >>> Uh, why not use an HTTP proxy i

Re: Design Question

2011-08-05 Thread Mohit Anchlia
On Fri, Aug 5, 2011 at 1:37 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 8/5/2011 1:59 PM, Mohit Anchlia wrote: >> This switch calls HttpClient Post calls using thread pools to send >> the request to other system

Design Question

2011-08-05 Thread Mohit Anchlia
We are developing a new system that will run in parallel with old system. So some requests will go to new system and some old based on configuration. We will put software switch software which will read configuration and the request and decide which system this will go to. This switch calls HttpCli

Re: web.xml parse error

2011-06-26 Thread Mohit Anchlia
Thanks! that worked. On Sun, Jun 26, 2011 at 3:50 AM, Konstantin Kolinko wrote: >>   >            servlet-class="com.i.common.DataPlatformServlet"/> > > The above is wrong. You should use nested elements, not attributes.. > > Take a look at any existing webapp. E.g. the "examples" one that comes

web.xml parse error

2011-06-25 Thread Mohit Anchlia
I am getting following errors and not able to find what's missing: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"; versio

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
en you will likely be asked for logs on both your HTTPD, mod_jk and tomcat > sides. > > I think if you did that, you might get some help. > > On Mar 30, 2011, at 12:16 PM, Mohit Anchlia wrote: > >> Can someone please give some pointers? Connector document says that &

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
either so does it mean it will wait forever? Just trying to see what additional settings I need to put in place. On Tue, Mar 29, 2011 at 6:16 PM, Mohit Anchlia wrote: > In order to circimvent this bug > https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have > in apache 2 p

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
Can someone please help? On Tue, Mar 29, 2011 at 6:16 PM, Mohit Anchlia wrote: > In order to circimvent this bug > https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have > in apache 2 properties. > > We often see "cping/cpong after connecting to the backend se

Bug Help

2011-03-29 Thread Mohit Anchlia
In order to circimvent this bug https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have in apache 2 properties. We often see "cping/cpong after connecting to the backend server failed (errno=110)" and bunch of 503s Current worker.properties look something like this: worker.app1.typ

Re: Simple Question about reading http transmission using mod_jk

2011-01-07 Thread Mohit Anchlia
On Fri, Jan 7, 2011 at 7:22 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Chuck, > > On 1/6/2011 6:01 PM, Caldarale, Charles R wrote: >>> From: Mohit Anchlia [mailto:mohitanch...@gmail.com] >>> Subject: Simple Question a

Simple Question about reading http transmission using mod_jk

2011-01-06 Thread Mohit Anchlia
We are using mod_jk. My question is when apache receives a request with http payload does it first read the entire payload and then transfers it to tomcat or does it just sends the handle to the stream and then tomcat reads from it. It's little confusing. --

mod-jk not called after PerlHandler gets called

2010-11-22 Thread Mohit Anchlia
I posted this thread in mod_perl group: http://www.gossamer-threads.com/lists/modperl/modperl/102273 I thought I should ask here as well. I have a perl handler in VirtualHost: JkMount /bridge/* tc PerlModule Apache2::Rules2 SetHandler modperl PerlInitHandler Apache2::Rules2 PerlSendHeader On T

Logging hostname/virutal name in the log

2010-10-19 Thread Mohit Anchlia
Currently we use proxy and x-forwarded. Proxy uses snat so when it gets logged we see something like: 10.128.1.5 65.204.229.11 - - [14/Oct/2010:22:29:49 -0700] POST /adi.cgi HTTP/1.1 200 753 10.128.1.5 is proxy's ip 65.204.229.11 is browser client ip I also need the name of the hostname or vir

Re: Custom message instead of HTTP error on LimitRequestBody

2010-09-08 Thread Mohit Anchlia
Sorry wrong email group On Wed, Sep 8, 2010 at 1:37 PM, Mohit Anchlia wrote: > Apache 2: > > Is there a way to send custom message instead of just the Error Code > when there is an upload limit set using LimitRequestBody? > > Something like "You

Custom message instead of HTTP error on LimitRequestBody

2010-09-08 Thread Mohit Anchlia
Apache 2: Is there a way to send custom message instead of just the Error Code when there is an upload limit set using LimitRequestBody? Something like "You have exceeded the size" - To unsubscribe, e-mail: users-unsubscr...@tom

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel wrote: > > - Original Message - From: "Mohit Anchlia" > To: "Tomcat Users List" > Sent: Thursday, September 02, 2010 12:25 PM > Subject: Re: URL rewrite > > >> On Wed, Sep 1, 2010 at 6:21 PM, Hassan S

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 9/1/2010 9:10 PM, Mohit Anchlia wrote: >> Tomcat 6: >> >> Is there a way to change the URL for eg: >> >> http://abc.

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder wrote: >> Is there a way to change the URL for eg: >> >> http://abc.com/a >> to >> http://abc.com/b/a > > http://lmgtfy.com/?q=tomcat+url+rewrite > Is URL rewrite module inbuilt or is there something that need to get loaded > -- > Hassan Schroeder -

URL rewrite

2010-09-01 Thread Mohit Anchlia
Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: fail_on_status question

2010-06-06 Thread Mohit Anchlia
On Sun, Jun 6, 2010 at 6:40 AM, Rainer Jung wrote: > On 06.06.2010 03:52, Mohit Anchlia wrote: >> >> On Sat, Jun 5, 2010 at 2:02 AM, Rainer Jung >>  wrote: >>> >>> On 04.06.2010 01:30, Mohit Anchlia wrote: >>>> >>>> In our present e

Re: fail_on_status question

2010-06-05 Thread Mohit Anchlia
On Sat, Jun 5, 2010 at 2:02 AM, Rainer Jung wrote: > On 04.06.2010 01:30, Mohit Anchlia wrote: >> >> In our present environment we have a WS and APP server. When request >> comes in, WS sends it to APP server using mod_jk and then APP server >> inserts it into JMS queue

Re: fail_on_status question

2010-06-04 Thread Mohit Anchlia
On Thu, Jun 3, 2010 at 4:30 PM, Mohit Anchlia wrote: > In our present environment we have a WS and APP server. When request > comes in, WS sends it to APP server using mod_jk and then APP server > inserts it into JMS queue. So essentially APP server is also dependent > on JMS server w

fail_on_status question

2010-06-03 Thread Mohit Anchlia
In our present environment we have a WS and APP server. When request comes in, WS sends it to APP server using mod_jk and then APP server inserts it into JMS queue. So essentially APP server is also dependent on JMS server which runs on the same box. My question is can I use fail_on_status in work

Re: mod_jk behaviour during failure

2010-04-03 Thread Mohit Anchlia
On Sat, Apr 3, 2010 at 9:44 AM, Rainer Jung wrote: > On 31.03.2010 23:33, Mohit Anchlia wrote: >> >> On Wed, Mar 31, 2010 at 2:27 PM, Rainer Jung >>  wrote: >>> >>> Which version? >>> >>> If 1.2.28 or newer, look for error_escalation

Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Thu, Apr 1, 2010 at 11:43 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 4/1/2010 11:35 AM, Mohit Anchlia wrote: >> I tested that leaving server down and in 15mt test the worker never >> went to ERR state while

Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Wed, Mar 31, 2010 at 3:35 PM, Mohit Anchlia wrote: > On Wed, Mar 31, 2010 at 3:29 PM, Christopher Schultz > wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Mohit, >> >> On 3/31/2010 5:33 PM, Mohit Anchlia wrote: >>> On We

Re: mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
On Wed, Mar 31, 2010 at 3:29 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 3/31/2010 5:33 PM, Mohit Anchlia wrote: >> On Wed, Mar 31, 2010 at 2:27 PM, Rainer Jung wrote: >>> Which version? >

Re: mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
; > Regards, > > Rainer > > On 31.03.2010 23:09, Mohit Anchlia wrote: >> >> I am seeing weird behaviour here. >> >>  What I am seeing is that when server is not pingable (when I reboot >> or shutdown) anymore mod_jk keeps logging errors 111 (connection >

mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
I am seeing weird behaviour here. What I am seeing is that when server is not pingable (when I reboot or shutdown) anymore mod_jk keeps logging errors 111 (connection refused) and errors 115 continuously and during this timeperiod if I look at "JkStatus" the State of the corresponding worker is s

Re: Http 505

2010-02-11 Thread Mohit Anchlia
Is this going to log just too much? This is a production system so want to be careful. Is there any other way to enable it in valve or some other way that just gives the error logging? On Thu, Feb 11, 2010 at 8:21 AM, Mark Thomas wrote: > On 11/02/2010 16:05, Mohit Anchlia wrote: >> As

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 7:56 AM, Mark Thomas wrote: > On 11/02/2010 15:50, Hassan Schroeder wrote: >> On Thu, Feb 11, 2010 at 7:45 AM, Mohit Anchlia >> wrote: >> >>> [r...@e1 ~]# telnet ws1 8080 >>> Trying 10.10.50.55... >>> Connected to ws1 (10.

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 6:41 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 2/11/2010 1:41 AM, Mohit Anchlia wrote: >> On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz >> wrote: >> Mohit, >> &g

Re: Http 505

2010-02-10 Thread Mohit Anchlia
On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 2/10/2010 5:28 PM, Mohit Anchlia wrote: >> There is a proxy F5 in between. But this server sends 100s of request >> per sec. to the same

Re: Http 505

2010-02-10 Thread Mohit Anchlia
NED MESSAGE- > Hash: SHA1 > > Mohit, > > On 2/10/2010 5:28 PM, Mohit Anchlia wrote: >> There is a proxy F5 in between. But this server sends 100s of request >> per sec. to the same URL. Essentially it's the same code. Only few of >> them fail. This application is n

Re: Http 505

2010-02-10 Thread Mohit Anchlia
MESSAGE- > Hash: SHA1 > > Mohit, > > On 2/9/2010 11:01 PM, Mohit Anchlia wrote: >> Tomcat 6 > > Tomcat 6.what? > >> Our application non-java client (C/Java)  are occasionally seeing >> Http 505. > > Do you know what the HTTP 505 response code mean

Http 505

2010-02-09 Thread Mohit Anchlia
Tomcat 6 Our application non-java client (C/Java) are occassionally seeing Http 505. But there is no such error being logged in the tomcat access log. Clients are for sure seeing 505 but we are not so I am wondering if someone can help me understand why that might be occuring? In the response hea

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 2:00 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 1/20/2010 3:08 PM, Mohit Anchlia wrote: >>     >                connectionTimeout="12" >>                maxThreads

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On the same note. Is there a way to log in access log at what time the request was received and time response was sent? I am planning to add more debug to see how long it waits before timing out. On Wed, Jan 20, 2010 at 12:08 PM, Mohit Anchlia wrote: > On Wed, Jan 20, 2010 at 11:41

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 11:41 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 1/20/2010 2:11 PM, Mohit Anchlia wrote: >>> Server version: Apache Tomcat/6.0.18 >>> >>> We don't any other web s

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 10:47 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 1/20/2010 12:06 PM, Mohit Anchlia wrote: >> Tomcat 6: > > Which specific version, please. Also, what connector(s) are you using. > Ple

Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
Tomcat 6: I am seeing Exception in localhost java.net.SocketTimeoutException: Read time out. I looked at the access log and I see tomcat returning Http 500. Only thing in common is that "%b" (bytes sent) for all the timeouts are 2657. For rest of them where requests are successfull it's less than

Timeout

2010-01-20 Thread Mohit Anchlia
Tomcat 6: Are there any other kind of timeout values other than ConnectionTimeout? Does Connection Timeout come into affect when there is an ESTABLISHED socket connection from the client? - To unsubscribe, e-mail: users-unsubscr.

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
, please run "catalina.sh version" > > org.apache.juli.FileHandler uses java.util.logging.SimpleFormatter by default, > and you should look in your JDK sources to see how that class is implemented. > > As of 6u16 it calls printStackTrace(pw) on the exception. > > > > 201

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
I am looking at file in "vi" and don't see stack trace On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 1/11/2010 9:10 PM, Mohit Anchlia wrote: >> I am seeing following exceptio

Re: Exception in localhost file

2010-01-12 Thread Mohit Anchlia
-Original Message----- > From: Mohit Anchlia [mailto:mohitanch...@gmail.com] > Sent: Tuesday, January 12, 2010 9:58 AM > To: Tomcat Users List > Subject: Re: Exception in localhost file > > There seems to be no code. This is logging properties. I am not sure > why the exce

Re: Exception in localhost file

2010-01-12 Thread Mohit Anchlia
one may have > written code to trap an exception and then issue their own message. > > -Original Message- > From: Mohit Anchlia [mailto:mohitanch...@gmail.com] > Sent: Monday, January 11, 2010 8:10 PM > To: Tomcat Users List > Subject: Exception in localhost file > >

Exception in localhost file

2010-01-11 Thread Mohit Anchlia
tomcat 6: I am seeing following exception in localhost file with no stack trace. There is no clue as to why this might be happening. How do I get the full stack trace to narrow down the problem? We also have our application log where our application specific exceptions get logged with full stack t

Re: Changing request address to x-forwarded-for

2010-01-06 Thread Mohit Anchlia
I found this site http://code.google.com/p/xebia-france/wiki/RemoteIpValve Can I directly download and install it in 6.0.18? On Wed, Jan 6, 2010 at 7:41 AM, Mohit Anchlia wrote: > Could you please point me to an example of how I can do this? We are > using apache-tomcat-6.0.18 > >

Re: Changing request address to x-forwarded-for

2010-01-06 Thread Mohit Anchlia
Could you please point me to an example of how I can do this? We are using apache-tomcat-6.0.18 On Tue, Jan 5, 2010 at 11:41 PM, Mark Thomas wrote: > On 06/01/2010 04:14, Mohit Anchlia wrote: >> tomcat 6: >> >> Is it possible to inject or change remote address to what'

Changing request address to x-forwarded-for

2010-01-05 Thread Mohit Anchlia
tomcat 6: Is it possible to inject or change remote address to what's in x-forwaded-for in http header such that when Servlet received the request it's already in the request.getRemoteAddress()? Otherwise we'll need to make a urgent change to read from the HTTP header. We didn't realize it earlier

Re: errno 110 in mod_jk

2009-11-08 Thread Mohit Anchlia
of setting this value too low? On Sun, Nov 8, 2009 at 9:59 AM, Rainer Jung wrote: > On 08.11.2009 01:36, Mohit Anchlia wrote: >> Could someone please help me understand this? > > What about adding connectionTimeout to the JBoss Connector element (and > keep its value in sync with co

Re: errno 110 in mod_jk

2009-11-07 Thread Mohit Anchlia
Could someone please help me understand this? On Sat, Nov 7, 2009 at 8:50 AM, Mohit Anchlia wrote: > I am also seeing that in Jboss (Back End) that there are lot of keep > alive sessions and I think that's the reason I am seeing the timeout. > As I add new web server it hits the

Re: errno 110 in mod_jk

2009-11-07 Thread Mohit Anchlia
tried disabling keepalive in worker.properties but still those threads are not being freed up. Could someone please tell me why that might be happening? On Sat, Nov 7, 2009 at 7:25 AM, Mohit Anchlia wrote: > To narrow down I just left one node running and started test. When I > look at JkStatus w

Re: errno 110 in mod_jk

2009-11-07 Thread Mohit Anchlia
On Fri, Nov 6, 2009 at 6:30 PM, Mohit Anchlia wrote: > I am looking at the tcpdump but I don't see packet retransmits. What > should I expect to see in tcpdump? thanks for your help. > > On Fri, Nov 6, 2009 at 4:05 PM, Rainer Jung wrote: >> $ grep 110 /usr/include/*/

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
I actually have worked on C but didn't read the line about bit mask. Sorry. On Wed, Oct 28, 2009 at 12:44 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 10/28/2009 2:29 PM, Mohit Anchlia wrote: >> Regarding recover

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
Thanks. I couldn't find what option retry_options 7 in http://tomcat.apache.org/connectors-doc/reference/workers.html is for. On Wed, Oct 28, 2009 at 11:37 AM, Rainer Jung wrote: > On 28.10.2009 19:29, Mohit Anchlia wrote: >> Thanks a lot! >> >> Would this work w

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
ping_mode "C"? Does it send that user request that's using that connection to other lb node? Wouldn't using "Pre Post" be the best thing to do? On Wed, Oct 28, 2009 at 10:55 AM, Rainer Jung wrote: > On 28.10.2009 17:29, Mohit Anchlia wrote: >> Based on

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
.appfe4.recycle_timeout=900 On Tue, Oct 27, 2009 at 1:01 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 10/26/2009 6:40 PM, Mohit Anchlia wrote: >> Christopher in one of his earlier replies mentioned that we don't

Re: So many timeout values

2009-10-26 Thread Mohit Anchlia
at because we have worker.list and also we have loadbalancer set in our worker.properties. On Mon, Oct 26, 2009 at 10:54 AM, Mohit Anchlia wrote: > thanks I'll read that and let you know if I have any questions. > > On Mon, Oct 26, 2009 at 9:21 AM, Rainer Jung wrote: >> On

Re: So many timeout values

2009-10-26 Thread Mohit Anchlia
thanks I'll read that and let you know if I have any questions. On Mon, Oct 26, 2009 at 9:21 AM, Rainer Jung wrote: > On 26.10.2009 16:19, Christopher Schultz wrote: >> On 10/25/2009 12:12 PM, Mohit Anchlia wrote: >>> I also trying to understand cpong, prepost and

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
Thanks. Is the JkShmfile something new? It worked when we had mod_jk 1.25. What is JkshmFile used for? On Sun, Oct 25, 2009 at 8:42 AM, Rainer Jung wrote: > On 25.10.2009 16:00, Mohit Anchlia wrote: >> I think I got it. It was JkShmFile that was missing. > > yes, and the default d

So many timeout values

2009-10-25 Thread Mohit Anchlia
Apache 2.2.11 I also trying to understand cpong, prepost and all other timeouts. But it's confusing in terms of which one should be used and which ones can be left alone. We currently have following values, do you see any problem? worker.host2533.type=ajp13 worker.host2533.port=8009 worker.host25

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
I think I got it. It was JkShmFile that was missing. Do you know how load balancing was working then if the status worker wasn't running? During our perf test I did see that it was getting load balanced. On Sun, Oct 25, 2009 at 7:50 AM, Mohit Anchlia wrote: > mod_jk 1.27 came with the

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
g wrote: > What's you operating system and how exactly did you configure and make > mod_jk? > > What JK directives do you use in your httpd configuration? > > If you set JkLogLevel to info, are there any log messages during startup? > > Regards, > > Rainer > &g

Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
I posted this earlier to old thread. I am posting it with new thread. Apache 2.2.11, mod_jk/1.2.28: There seems to be a problem with activation of status worker JkStatus. Even after explicitly saying "stopped" for one of the workers the "Act" keeps going back and forth. When I refresh that page i

Re: mod_jk not working as expected - is there a bug??

2009-10-24 Thread Mohit Anchlia
s "STP" and then you refresh again it shows "ACT". Nothing seems to be working. Is this a known bug? Earlier when we were on previous version of mod_jk this used to work fine. Attached is the screen shot On Sat, Oct 24, 2009 at 7:51 AM, Mohit Anchlia wrote: > Apache 2.11, mod_jk

Re: mod_jk not working as expected - is there a bug??

2009-10-24 Thread Mohit Anchlia
STP". And I still see traffic being sent to that worker. Is this a known bug? Earlier when we were on previous version of mod_jk this On Fri, Mar 6, 2009 at 2:02 PM, Rainer Jung wrote: > On 06.03.2009 21:42, Mohit Anchlia wrote: >> >> In addition to questions that I hav

Re: Using multiple DataSource's for fail-over.

2009-09-05 Thread Mohit Anchlia
I don't think. Did you try shutting down one node? You can also look at netadmin tutorial to see what "FAILOVER" means. On Fri, Sep 4, 2009 at 11:58 AM, Bill Davidson wrote: > Mohit Anchlia wrote: >> >> Something like this: >> >> >> (DESCRIP

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Mohit Anchlia
Something like this: (DESCRIPTION=(FAILOVER=ON)(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1526))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1526)))(CONNECT_DATA=(SERVICE_NAME=somesid))) On Wed, Sep 2, 2009 at 11:53 AM, Mohit Anchlia wrote: > Did you look at Oracle

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Mohit Anchlia
Did you look at Oracle RAC docs? On Wed, Sep 2, 2009 at 11:10 AM, Bill Davidson wrote: > Tim Funk wrote: >>I thought the Oracle JDBC driver allowed for all the nodes to be placed >>into the connect string and the driver was smart enough to detect failover. >>[So its a configuration exercise on the

Re: Access to home page

2009-08-03 Thread Mohit Anchlia
t; > On 7/31/2009 1:07 AM, Mohit Anchlia wrote: >> And you do feel forced to comment. This is a forum and no one is >> forcing you to answer. > > My last post wasn't a complete troll: there's actually good information > in there. But you're right: I'm free

Re: Access to home page

2009-07-30 Thread Mohit Anchlia
And you do feel forced to comment. This is a forum and no one is forcing you to answer. On Wed, Jul 29, 2009 at 7:01 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohit, > > On 7/29/2009 12:49 AM, Mohit Anchlia wrote: >> How d

Re: Access to home page

2009-07-28 Thread Mohit Anchlia
How do I setup authentication? On Tue, Jul 28, 2009 at 9:32 PM, wrote: > You want authentication > --Original Message-- > From: Mohit Anchlia > To: Tomcat Users List > ReplyTo: Tomcat Users List > Subject: Access to home page > Sent: Jul 28, 2009 21:27 > > to

Access to home page

2009-07-28 Thread Mohit Anchlia
tomcat 6: How can I limit access to the home page so that people are not able to access the home page? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Stable tomcat release

2009-06-10 Thread Mohit Anchlia
We are currently using tomcat 6. How do I determine the most recent stable release of tomcat. I am looking at upgrading our tomcat with most recent stable release. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Throttling in mod_jk - Is it possible ?

2009-03-17 Thread Mohit Anchlia
mod_jk 1.2.25 - Is there a way to throttle traffic in apache. Something where we mention if requests on particular URL exceeded 'x' number then return 'y' message? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: mod_jk not working as expected - is there a bug??

2009-03-10 Thread Mohit Anchlia
2009 at 2:02 PM, Rainer Jung wrote: > On 06.03.2009 21:42, Mohit Anchlia wrote: >> >> In addition to questions that I have in below email, I have couple of >> question. >> >> 1. activation property disable - Does it first turn off new requests >> to t

Re: mod_jk not working as expected - is there a bug??

2009-03-06 Thread Mohit Anchlia
stopped - Does it throw away existing sessions and also stop taking new requests. Also I couldn't find way to see how mod_jk is behaving in the log file. I turned tracing on for JkLogLevel. On Fri, Mar 6, 2009 at 10:41 AM, Mohit Anchlia wrote: > Thanks ..I got following URL from the browser,

Re: mod_jk not working as expected - is there a bug??

2009-03-06 Thread Mohit Anchlia
: 01b022 49 01 CE CF 52 91 12 E4 48 49 A4 2A E0 82 00 - "I...R...HI.*... But I can't tell if the requests to appfe1 are no longer being directed to appfe1 node. On Fri, Mar 6, 2009 at 10:14 AM, Rainer Jung wrote: > On 06.03.2009 18:57, Mohit Anchlia wrote: >> >> S

Re: mod_jk not working as expected - is there a bug??

2009-03-06 Thread Mohit Anchlia
ill change the activiation as I move servers in and out of service? On Fri, Mar 6, 2009 at 12:35 AM, Rainer Jung wrote: > On 06.03.2009 09:27, Mohit Anchlia wrote: >> >> Is there a way to dynamically move workers in and out of service using >> status worker. > > Please firs

Re: mod_jk not working as expected - is there a bug??

2009-03-06 Thread Mohit Anchlia
I was looking at the manual and didn't see a way to automatically set the worker to stop. I'll test it today with the way you suggested and post more questions .. On Fri, Mar 6, 2009 at 12:35 AM, Rainer Jung wrote: > On 06.03.2009 09:27, Mohit Anchlia wrote: >> >> Is t

Re: mod_jk not working as expected - is there a bug??

2009-03-06 Thread Mohit Anchlia
Is there a way to dynamically move workers in and out of service using status worker. On Thu, Mar 5, 2009 at 10:34 PM, Rainer Jung wrote: > On 06.03.2009 01:44, Mohit Anchlia wrote: >> >> Thanks ..But how do I tie the status worker to the list of nodes that >> I have. For e

Re: mod_jk not working as expected - is there a bug??

2009-03-05 Thread Mohit Anchlia
fe3,appfe4 worker.tc.sticky_session=true On Thu, Mar 5, 2009 at 4:07 PM, Rainer Jung wrote: > On 05.03.2009 23:57, Mohit Anchlia wrote: >> >> So I tested again and it looks like Jboss accepts new connection when >> it already undeployed the service. Do you have any advice of how I can >

Re: mod_jk not working as expected - is there a bug??

2009-03-05 Thread Mohit Anchlia
ervice (This application is not currently available) is not currently available.JBossWeb/2.0.0.GA_CP01 On Mon, Mar 2, 2009 at 5:01 PM, Rainer Jung wrote: > On 03.03.2009 01:45, Mohit Anchlia wrote: >> >> Is there a way to configure ping in workers.properties to also check >> f

Re: mod_jk not working as expected - is there a bug??

2009-03-02 Thread Mohit Anchlia
Is there a way to configure ping in workers.properties to also check for 503 in addition to cping/cpong? I am sure you are going to laugh at me. On Mon, Mar 2, 2009 at 1:26 PM, Rainer Jung wrote: > On 02.03.2009 20:28, Mohit Anchlia wrote: >> >> I will change the JkLogLevel and p

Re: mod_jk not working as expected - is there a bug??

2009-03-02 Thread Mohit Anchlia
I will change the JkLogLevel and post the results. I have a question though: Does prepost_timeout also detect if it received http code such as 503 from app server. On Wed, Feb 25, 2009 at 9:05 AM, Rainer Jung wrote: > On 25.02.2009 17:10, Mohit Anchlia wrote: >> >> you are right

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Mohit Anchlia
ng wrote: > On 25.02.2009 02:47, Mohit Anchlia wrote: >> >> In httpd conf I just see JkMount and no other directive. I searched for >> Jk. > > There should be others as well, for instance JkWorkersFile to point to your > workers.properties. The names of the directive

Re: mod_jk not working as expected - is there a bug??

2009-02-24 Thread Mohit Anchlia
r.appfe4.prepost_timeout=5 worker.appfe4.connect_timeout=5000 worker.appfe4.retries=3 worker.appfe4.recycle_timeout=900 # Refererence BHP Apache tuning guide before uncomment the following line. The unit of reply_timeout is millisecond. #worker.appfe4.reply_timeout=0 On Tue, Feb 24, 2009 at 4:50 PM, Rainer J

mod_jk not working as expected - is there a bug??

2009-02-24 Thread Mohit Anchlia
mcat is probably not started or is listening on the wrong port On Tue, Feb 24, 2009 at 1:41 PM, Rainer Jung wrote: > On 24.02.2009 19:18, Mohit Anchlia wrote: >> >> We have Web Servers talking to Jboss App Servers over mod_jk. When we >> do our patch or upgrade of softwa

  1   2   >