64-bit Apache with 32-bit Tomcat

2007-03-14 Thread Sharma, Siddharth
Is it possible to use a 64-bit Apache (consequently 64-bit mod-jk) with
32-bit Tomcat instances?
Some Tomcats will be co-located with the Apache on the same box and some
will be remote. But all the Tomcats will run on 64-bit Linux kernel?




RE: Load balancing mark down question

2006-11-08 Thread Sharma, Siddharth
Hey Rainer
I currently have 1.2.15.
Do I need to install all the interim releases or 1.2.19 is all encompassing?
Thanks
Sidd


Ref:
http://www.nabble.com/Load-balancing-mark-down-question-t2590766.html 

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 08, 2006 11:52 AM
To: Tomcat Users List
Subject: Re: Load balancing mark down question

Sharma,

from the 1.2.19 code the request should also work by completely omitting
the id  parameter and only using the worker name :)

Regards,

Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Load balancing mark down question

2006-11-07 Thread Sharma, Siddharth
Hi

We have a cluster of Linux (RedHat) machines each housing an apache, 4
tomcat instances and 4 other jvms that run our custom servers.
Each tomcat has a corresponding custom server that it delegates requests to.
In other words, there is one to one correspondence between a tomcat instance
and a custom server instance.
Problem is that when a custom server crashes and its tomcat is still
accepting, mod_jk does not mark it down. Consequently users continue to be
directed to that tomcat even though they are experiencing errors.
In mod_jk, we have defined a load balancing worker that fronts the 4 tomcat
workers.
So questions are:

1. On what basis does mod_jk mark a tomcat worker down? Is it http return
codes?

2. Some load balancers allow scraping of the http body to see if there is an
error in addition to relying on http codes. Is that possible in mod_jk? Is
it configurable?

3. Is it possible to stop|start a mod_jk worker via an http call? Or some
other programmable way? 

Any ideas on how to solve this problem?

Thanks
Sidd

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing mark down question

2006-11-07 Thread Sharma, Siddharth
Hi Rainer
Thx for the response.

What does missing answers mean?
If there is no http body, will it be marked down?

Yea, I figured that status is probably the best way to do it.
I already have status configured and I figured out the request parameters.
Only complication is the id parameter. 
Even if I provide the w parameter as the worker name, it does not update
its status unless the 'correct' id value is provided.
id value seems to be a positional index of the worker in the configuration
or something.
This sort of sucks for me because my coding will not be straightforward and
I will have to maintain the mapping of worker name and id.



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 3:58 PM
To: Tomcat Users List
Subject: Re: Load balancing mark down question

Hi,

Sharma, Siddharth schrieb:
 Hi
 
 We have a cluster of Linux (RedHat) machines each housing an apache, 4
 tomcat instances and 4 other jvms that run our custom servers.
 Each tomcat has a corresponding custom server that it delegates requests
to.
 In other words, there is one to one correspondence between a tomcat
instance
 and a custom server instance.
 Problem is that when a custom server crashes and its tomcat is still
 accepting, mod_jk does not mark it down. Consequently users continue to be
 directed to that tomcat even though they are experiencing errors.
 In mod_jk, we have defined a load balancing worker that fronts the 4
tomcat
 workers.
 So questions are:
 
 1. On what basis does mod_jk mark a tomcat worker down? Is it http return
 codes?

Never http return code. jk detects communication failures betwenn apache
and tomcat:

- timeouts
- connection problems
- missing answers
- client (browser) aborts

 
 2. Some load balancers allow scraping of the http body to see if there is
an
 error in addition to relying on http codes. Is that possible in mod_jk? Is
 it configurable?

No. You need to do that externally.

 
 3. Is it possible to stop|start a mod_jk worker via an http call? Or some
 other programmable way? 

Yes. Configure a status worker:

worker.list=admin
worker.admin.type=status

The name of the worker (here: admin) is arbitrary.
Map the worker to a url in your web server, e.g. using JkMount in
Apache. Add access control to the URL (using web server methods).

Then open the URL in your browser and get used to its features. You can
click on the individual worker members of a balancer and a form will pop
up, allowing to disable (no more new sessions) or stop (no more
requests) this worker. The request when sending the form is a GET
request, so you can learn the URL syntax easily.

Be careful: these changes are not persistant. Apache restart, even
graceful, throws you back to your config file settings.

Regards,

Rainer

 
 Any ideas on how to solve this problem?
 
 Thanks
 Sidd
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: mod_jk affinity for a lamed tomcat instance

2006-11-07 Thread Sharma, Siddharth
To enable/disable via the status worker:

Start 
/status_worker_uri?cmd=updatew=workerNameid=workerPosIndexlb=0wf=1
wr=wc=

Stop
/status_worker_uri?cmd=updatew=workerNameid=workerPosIndexlb=0wf=1
wr=wc=ws=on




-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 07, 2006 5:04 PM
To: Tomcat Users List
Subject: Re: mod_jk affinity for a lamed tomcat instance

From the docs about DisableReuse: Using this option will have a strong
performance penalty for Apache and Tomcat. Use this only as a last
resort in case of unfixable network problems..

Concerning the original queation: I don't see any clean and direct way
of doing that.

What's possible though is making an http request to the status worker to
disable or stop a worker. Unfortunately this change is not persistant
concerning apache restarts.

The status worker is completely GET based, so you can look at your
browsers URL line, how the request for disabling a worker would look
like by doing it once in a browser.

Regards,

Rainer

Martin Gainty schrieb:
 Dan-
 the only way I could see accomplishing this task to programmatically
support socket_keepalive on the connection and use default config of quiesce
connection when not use ...as in this parameter which requests mod_jk to
close connections immediately after use as in this option
 
 JkOptions +DisableReuse
 
 Caveat:This is only one option amongst many
 
 Anyone else?
 M-
 This e-mail communication and any attachments may contain confidential and
privileged information for the use of the 
 designated recipients named above. If you are not the intended recipient,
you are hereby notified that you have received
 this communication in error and that any review, disclosure,
dissemination, distribution or copying of it or its 
 contents
 - Original Message - 
 From: Dan Ackerson [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 07, 2006 11:19 AM
 Subject: Re: mod_jk affinity for a lamed tomcat instance
 
 
 Sorry if I wasn't clear - I wanted to know if their was a way I could
 programmatically alert mod_jk from Tomcat that this worker should be
 disabled.  This way, the worker could automatically signal to mod_jk that
it
 was lamed and I wouldn't have to run over to the jk-status page to
 manually disable it.

 For example : MyOutOfMemoryListener.class { setAJPErrorState(true); }

 -- 
 View this message in context:
http://www.nabble.com/mod_jk-affinity-for-a-lamed-tomcat-instance-tf2581047.
html#a7221335
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JK 1.2.18

2006-08-21 Thread Sharma, Siddharth
I am using mod_jk 1.2.15 on RedHat Linux with Tomcat 5.5 and Apache 2.0.x.
I noticed the current stable release of jk is 1.2.18.
Where can I find information on the differences between the two releases to
see if I should be thinking of upgrading at all?

Thanks
Sidd


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: solution to this scenario

2006-08-10 Thread Sharma, Siddharth
ftp? You mean telnet or rsh or ssh or something right?

Anyhow, create a different instance of tomcat for each user:

Recursively copy the following directories from CATALINA_HOME to a new
location (say /usr/tomcat/instance_n) to create a new instance:
webapps
temp
shared
conf
logs

Then change the conf/server.xml to configure unique ports.

Then in the user's profile in the user's home directory 
export CATALINA_BASE=/usr/tomcat/instance_n

Now when the user executes $CATALINA_HOME/startup.sh or shutdown.sh, it will
stop and start his/her instance only.

Additionally, you can configure permissions to disallow users to change
other user's server.xml

Did I understand your question?


-Original Message-
From: Pratap Parne [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 10, 2006 1:25 PM
To: users@tomcat.apache.org
Subject: solution to this scenario

can any one tellme how do i implement this using
tomcat


tomcat would be running on a server.a user would log
into the server using ftp and he has his own version
of server.xml.he some how starts the tomcat runs his
application and shuts it down.when other user logs
into the server he should be having his own server.xml.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connector Problems -

2006-08-08 Thread Sharma, Siddharth
 LoadModule jk_module C:/Program Files/Apache 
 Group/Apache2/modules/mod_jk.so

Since you have windows, shouldn't the mod_jk load library be a dll rather
than so?
I believe you have referenced the incorrect mod_jk.





-Original Message-
From: M. Goodell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 3:15 PM
To: Tomcat Questions
Subject: Connector Problems - 

I am unable to get the tomcat connectors to work after spending hours 
reading docs and scouring google in search of answers. 
   
I have seen the problem I am having posted all over the web but there 
are no solutions to it that I have seen.
   
  Here is the summary of the problem:
   
  Component information:
   
  - MS Windows XP
  - Tomcat-5.5.17
  - Apache 2.0.58
  - mod_jk-1.2.18
   
I define the workers.properties file as specified per the 
documentation which resides in:
  C:/Program Files/Apache Group/Apache2/conf/workers.properties
   
  worker.list = worker1
worker.worker1.type = ajp13
  
(according to the docs type is the only mandatory element)
   
And the VirtualHost portion of httpd.conf looks like this:
   
VirtualHost 172.27.224.236:80
  ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/sandbox
ServerName dummy-host.example.com
ErrorLog logs/172.27.224.236.error.log
CustomLog logs/172.27.224.236.access.log common
LoadModule jk_module C:/Program Files/Apache 
Group/Apache2/modules/mod_jk.so
JkWorkersFile C:/Program Files/Apache
Group/Apache2/conf/workers.properties
JkLogFile C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/logs/mod_jk.log
  JkLogLevel debug
  JkMount /axis ajp13
JkMount /axis/* ajp13
  JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13
  JkMount /jsp-examples ajp13
JkMount /jsp-examples/* ajp13
  JkMount /MGGWebApp worker1
JkMount /MGGWebApp/* worker1
  
/VirtualHost
  When I attempt to access http://172.27.224.236/MGGWebApp/  I get an 
Internal Server Error page and the error info is dumped to the log. The
regular ajp13 references work perfect.
   
  Alas, Here is the log entry:
   
  [Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(508): Attempting to map URI '/MGGWebApp/index.jsp' from 8 maps
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/servlets-examples/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/jsp-examples/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/MGGWebApp/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(534): Found a wildchar match worker1 - /MGGWebApp/*
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] mod_jk.c (1832): Into 
handler jakarta-servlet worker=worker1 r-proxyreq=0
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_worker.c (111): did 
not find a worker worker1
[Tue Aug 08 12:47:16 2006] [1988:0324] [info]  mod_jk.c (1986): Could 
not find a worker for worker name=worker1
   
 It seems to me, from the log file information, that it simply cannot 
find the workers.properties file. Also, it looks as though the mod_jk 
is loading due to Apaches lack of complaining.
   
 Any help / direction or chastisment on this would be welcomed.

  Many thanks! 
   
 M Goodell



-
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Connector Problems -

2006-08-08 Thread Sharma, Siddharth
Hmm. Interesting. My bad. Maybe the web page is not updated.
I was only going by 
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s61 
which states:

linux/i386 Contains mod_jk.so for Apache 1.3 for the standard API as well as
EAPI and mod_jk.so for Apache 2.0 

netware/i386 Contains the mod_jk.nlm and nsapi.nlm 

win32/i386 Contains the mod_jk.dll for Windows as well as other useful
binaries.



-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 3:39 PM
To: Tomcat Users List
Subject: Re: Connector Problems -

Past thread have effectively said use the .so with Apache even though 
you might be on Windows.  In reality I would think the error would be 
much different if Apache couldn't load mod_jk.so.

Your Apache config mentions use of a worker named ajp13.  Is that one 
working, and if so, where is it configured?

--David

M. Goodell wrote:

I used the .so file from the following link:
   

http://apache.seekmeup.com/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2
.18/
   
  where there are no .DLL files only .so files. Also, there are several .so
files in my apache/modules directory.

Sharma, Siddharth [EMAIL PROTECTED] wrote:
   LoadModule jk_module C:/Program Files/Apache 
  

Group/Apache2/modules/mod_jk.so



Since you have windows, shouldn't the mod_jk load library be a dll rather
than so?
I believe you have referenced the incorrect mod_jk.





-Original Message-
From: M. Goodell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 08, 2006 3:15 PM
To: Tomcat Questions
Subject: Connector Problems - 

I am unable to get the tomcat connectors to work after spending hours 
reading docs and scouring google in search of answers. 

I have seen the problem I am having posted all over the web but there 
are no solutions to it that I have seen.

Here is the summary of the problem:

Component information:

- MS Windows XP
- Tomcat-5.5.17
- Apache 2.0.58
- mod_jk-1.2.18

I define the workers.properties file as specified per the 
documentation which resides in:
C:/Program Files/Apache Group/Apache2/conf/workers.properties

worker.list = worker1
worker.worker1.type = ajp13

(according to the docs type is the only mandatory element)

And the VirtualHost portion of httpd.conf looks like this:


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/sandbox
ServerName dummy-host.example.com
ErrorLog logs/172.27.224.236.error.log
CustomLog logs/172.27.224.236.access.log common
LoadModule jk_module C:/Program Files/Apache 
Group/Apache2/modules/mod_jk.so
JkWorkersFile C:/Program Files/Apache
Group/Apache2/conf/workers.properties
JkLogFile C:/Program Files/Apache 
Group/apache-tomcat-5.5.17/logs/mod_jk.log
JkLogLevel debug
JkMount /axis ajp13
JkMount /axis/* ajp13
JkMount /servlets-examples ajp13
JkMount /servlets-examples/* ajp13
JkMount /jsp-examples ajp13
JkMount /jsp-examples/* ajp13
JkMount /MGGWebApp worker1
JkMount /MGGWebApp/* worker1


When I attempt to access http://172.27.224.236/MGGWebApp/ I get an 
Internal Server Error page and the error info is dumped to the log. The
regular ajp13 references work perfect.

Alas, Here is the log entry:

[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(508): Attempting to map URI '/MGGWebApp/index.jsp' from 8 maps
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/servlets-examples/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/jsp-examples/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(520): Attempting to map context URI '/MGGWebApp/*'
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_uri_worker_map.c 
(534): Found a wildchar match worker1 - /MGGWebApp/*
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] mod_jk.c (1832): Into 
handler jakarta-servlet worker=worker1 r-proxyreq=0
[Tue Aug 08 12:47:16 2006] [1988:0324] [debug] jk_worker.c (111): did 
not find a worker worker1
[Tue Aug 08 12:47:16 2006] [1988:0324] [info] mod_jk.c (1986): Could 
not find a worker for worker name=worker1

It seems to me, from the log file information, that it simply cannot 
find the workers.properties file. Also, it looks as though the mod_jk 
is loading due to Apaches lack of complaining.

Any help / direction or chastisment on this would be welcomed.

Many thanks! 

M Goodell



-
Stay in the know. Pulse on the new Yahoo.com. Check it out. 

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates
starting at 1¢/min

Mod_jk load balacing algorithm

2006-08-07 Thread Sharma, Siddharth
Is it possible to change mod_jk's load-balacing algorithm to random (from
round robin)?
If yes, how?

TIA
Sidd


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mod_jk load balacing algorithm

2006-08-07 Thread Sharma, Siddharth
Oh ok. I am not sure how I got the round-robin thing in my head.
Anyhow, how does one configure this? 
I assume this is load balancer worker type configuration.



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 07, 2006 1:15 PM
To: Tomcat Users List
Subject: Re: Mod_jk load balacing algorithm

mod_jk neither supports round-robin, nor random load-balancing.

Currently you can choose between three algorithms:

method=B (busyness): choose the worker with the lowwest number of 
requests currently in processing.

method=R (requests): choose the worker that did the lowest number of 
requests until now

method=T (traffic): choose the worker that received+sent the lowwest 
number of bytes until now

In case you use busyness, you might observe behaviour that's very 
close to round-robin during times of very low load. If load is very low, 
most of the time all workers will have no request in processing. So the 
busyness counter will always be equal to zero. Then mod_jk will pick on 
worker after the other, similar to round-robin.

As soon as there will be real load, behaviour will differ.

Regards,

Rainer

Sharma, Siddharth wrote:
 Is it possible to change mod_jk's load-balacing algorithm to random (from
 round robin)?
 If yes, how?
 
 TIA
 Sidd
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Load balancing question

2006-08-07 Thread Sharma, Siddharth
We have a 12 (tomcat 5.5.16) instance cluster on 4 physical machines running
redhat linux. There is an Apache installed on each machine (4 mod_jks). Each
mod_jk's worker.properties is configured exactly the same way i.e. each
mod-jk load-balances across all 12 tomcat instances. All instances have the
same weights in each mod_jk and sticky sessions are enabled.
From Rainer Jung's email, I understand now that there are three
load-balancing algorithms and 'busyness' seems to be the default.
But with this algorithm, the workload distribution is uneven during a load
test.
The reason I can think of is that since there are 4 mod_jk load balancers
with no knowledge of each other's counts, the distribution is getting
screwed up. Is this a fair assessment? Is there a way to solve it?
We do need this redundancy in load balancers, so cannot get rid of any.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: configuring 2 servlets on different ports

2006-08-01 Thread Sharma, Siddharth
All webapps listen on the same http port if deployed within the same tomcat
instance.
Your option is to deploy each webapp on its own instance of tomcat, each
listening on a different port. Creating a new instance of tomcat means a
separate JVM with all the additional needs from system resource perspective.
Is this an option for you?



-Original Message-
From: Williams, Jim [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 9:20 AM
To: Tomcat Users List
Subject: RE: configuring 2 servlets on different ports

actually, they are already in separate webapps,
and I still can't find a way to configure them to 
bind to separate ports.



-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 31, 2006 4:57 PM
To: Tomcat Users List
Subject: Re: configuring 2 servlets on different ports

Jim,

 I'm using tomcat 5.5, and tried creating 2 services, each with a 
 connector that used a different port.
 
 Whatever I try for the context within these services, it appears as
 if both servlets are available on both ports.
  
 Is there a magic combination of Context elements that would allow
this?

I think you'd need separate web.xml files for each context: one that
maps only servlet #1 and one that maps only servlet #2. But that means
that you aren't using the same exact configuration for both contexts,
which might be a deal-breaker for you.

-chris 
 
 
 
NOTICE:  This message, including all attachments transmitted with it, is for
the use of the addressee only. It may contain proprietary, confidential
and/or legally privileged information belonging to Litle  Co. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, you must not, directly or indirectly,
use, disclose, distribute, print or copy any part of this message.  If you
believe you have received this message in error, please delete it and all
copies of it from your system and notify the sender immediately by reply
e-mail.  Thank you. 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: clustering problem

2006-08-01 Thread Sharma, Siddharth
Which part? 
The apache tomcat specific stuff? This is available on the tomcat website.
Look at the connectors section. That's how I configured everything.

The proxy? That's proprietary. Sorry cannot divulge.



-Original Message-
From: MW Janssen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 2:22 PM
To: 'Tomcat Users List'
Subject: RE: clustering problem

 
I have a question of the architecture you created..i am interseting in it.
Do you have a document how you did this?

thx

Maarten


-Oorspronkelijk bericht-
Van: Sharma, Siddharth [mailto:[EMAIL PROTECTED] 
Verzonden: maandag 31 juli 2006 23:06
Aan: Tomcat Users List
Onderwerp: clustering problem

Hi

We have a 4 machine configuration.
Each machine has:
1. 3 Tomcat instances (so total 12 instances) 2. 1 Apache with mod_jk (so
total 4 Apaches)

The Apaches/mod_jks are fronted by a hardware load balancer.
Each mod_jk load balances across all 12 tomcats.
In other words, you could hit any one of the four Apaches/mod_jks and get
load balanced to any one of the 12 tomcats. Once you hit one tomcat, you are
sticky to it.
All this works, but I am wondering if there is a way to do tomcat instance
targeting. 
In other words, indicate to mod_jk that the request should be sent to a
specific tomcat instance.
This is useful to check if each instance is up and accepting. 
I am not worried about DoS since a proxy sits between the client and the
Apaches that maintains the jsessionid cookie for the client and does not
accept it from the client.

Any ideas?
Thanks
-Sidd 

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/403 - Release Date: 28-7-2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/404 - Release Date: 31-7-2006
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Shared code but different pages on different virtual hosts? W AS: RE: BOOBIES!

2006-07-21 Thread Sharma, Siddharth
Jar up the common code into one or more libraries.
Put them somewhere (possibly at the enterprise app level) and add each jar
in each webapp's MANIFEST file.


-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:19 PM
To: Tomcat Users List
Subject: Shared code but different pages on different virtual hosts? WAS:
RE: BOOBIES!


I wanted to have multiple web applications defined, all using the same
core Java code, but each having different JSP and tag file folders. I
tried following the example in the Tomcat Wiki at
http://wiki.apache.org/tomcat/CreateVirtualHosts, but it assumes all the
web apps have the same JSP and tag files, inside a WAR. I would like to
package up all of the common code for all the sites in a WAR file, then
point each separate web app to private JSP and tag file folders. What I
was trying to determine is:

1. Is it even possible?
2. If so, how could it be done?

As for the subject line, my previous email sat with the subject Shared
code but different pages on different virtual hosts? for two weeks
without a single response, and I'm still waiting so that my project can
continue down it's path. No offense is meant, and it should be pretty
obvious, I think, that I just wanted a little attention for my issue.
Sorry for any offense it may have caused.

Tom

-Original Message-
From: Mike Wannamaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:09 PM
To: 'Tomcat Users List'
Subject: RE: BOOBIES!

I believe the subject was posted under different subject heading with no
response and he's trying to get people looking at it, which I'm sure he
will now.

That said, some proper netiquette is appreciated in forums.

I believe that I'm doing something similar, but using a different
approach.
I too want to have some common resources that all webapps use.  To do
this I'm installing my own FileDirContext for web apps which I inject
what we call aliases.

IE:  /basefiles = /home/tomcat/basefiles

Thus when someone in the webapp makes a request for
/basefiles/common.css it looks it up in /home/tomcat/basefiles, which is
outside of any web app context.

Is this what you want to do?

Mike Wannamaker

-Original Message-
From: Mead, Jennifer L - VSCM [mailto:[EMAIL PROTECTED]
Sent: July 21, 2006 2:01 PM
To: Tomcat Users List
Subject: RE: BOOBIES!

Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.  

Jennifer 

-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 10:59 AM
To: users@tomcat.apache.org
Subject: BOOBIES!


I have been trying to determine how to configure Tomcat 5.5.17 to have a
shared appBase on multiple webapps, but have a different set of JSPs for
each web app. I've followed the Wiki's CreateVirtualHosts page to
configure multiple webapps that use exactly the same WAR file. But, I
would like to share the Java, but supply a different docBase for each
site. Is this possible?

Reference:
http://wiki.apache.org/tomcat/CreateVirtualHosts

Thanks!

Tom Harris

This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This communication is intended solely for the addressee and is confidential
and not for third party unauthorized distribution

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Shared code but different pages on different virtual hosts? W AS: RE: BOOBIES!

2006-07-21 Thread Sharma, Siddharth
Why can't you just put the jars in the WEB-INF/lib of each webapp then?
Then you can have a different version of the jar for each webapp.
Unless of course, tomcat uses the same classloader to load classes for all
webapps.



-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:36 PM
To: Tomcat Users List
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!


If I create a single jar and put it into shared/lib, then if I need to
support more than one version of the core code, I can't. With each
webapp/virtual host alias list specifying which WAR file to use, it'll
allow me to run two versions of the core code at one time, with
different sets of sites on one or the other version, at least until
we've had time to test all the sites on the new version, etc. I think
I've made my point.

Tom

-Original Message-
From: Mike Wannamaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:25 PM
To: 'Tomcat Users List'
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!

Can't you just put the jar files into tomcat/shared/lib

Mike Wannamaker
Senior Software Developer
Hummingbird Ltd.
552 Princess St, Kingston, ON, K7L 1C7
Tel: (613) 548-4355 x4535
Fax (613) 548-7801
E-Mail: Mike Wannamaker
 
www.hummingbird.com
 
IMPORTANT NOTICE: This communication is privileged and contains
confidential information for the sole use of the intended recipient(s).
Any unauthorized disclosure, copying or use of this communication is
strictly prohibited. If you have received this message in error, please
contact the sender and delete this message without printing it or
otherwise retaining a copy.

-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: July 21, 2006 2:19 PM
To: Tomcat Users List
Subject: Shared code but different pages on different virtual hosts?
WAS:
RE: BOOBIES!


I wanted to have multiple web applications defined, all using the same
core Java code, but each having different JSP and tag file folders. I
tried following the example in the Tomcat Wiki at
http://wiki.apache.org/tomcat/CreateVirtualHosts, but it assumes all the
web apps have the same JSP and tag files, inside a WAR. I would like to
package up all of the common code for all the sites in a WAR file, then
point each separate web app to private JSP and tag file folders. What I
was trying to determine is:

1. Is it even possible?
2. If so, how could it be done?

As for the subject line, my previous email sat with the subject Shared
code but different pages on different virtual hosts? for two weeks
without a single response, and I'm still waiting so that my project can
continue down it's path. No offense is meant, and it should be pretty
obvious, I think, that I just wanted a little attention for my issue.
Sorry for any offense it may have caused.

Tom

-Original Message-
From: Mike Wannamaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:09 PM
To: 'Tomcat Users List'
Subject: RE: BOOBIES!

I believe the subject was posted under different subject heading with no
response and he's trying to get people looking at it, which I'm sure he
will now.

That said, some proper netiquette is appreciated in forums.

I believe that I'm doing something similar, but using a different
approach.
I too want to have some common resources that all webapps use.  To do
this I'm installing my own FileDirContext for web apps which I inject
what we call aliases.

IE:  /basefiles = /home/tomcat/basefiles

Thus when someone in the webapp makes a request for
/basefiles/common.css it looks it up in /home/tomcat/basefiles, which is
outside of any web app context.

Is this what you want to do?

Mike Wannamaker

-Original Message-
From: Mead, Jennifer L - VSCM [mailto:[EMAIL PROTECTED]
Sent: July 21, 2006 2:01 PM
To: Tomcat Users List
Subject: RE: BOOBIES!

Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.  

Jennifer 

-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 10:59 AM
To: users@tomcat.apache.org
Subject: BOOBIES!


I have been trying to determine how to configure Tomcat 5.5.17 to have a
shared appBase on multiple webapps, but have a different set of JSPs for
each web app. I've followed the Wiki's CreateVirtualHosts page to
configure multiple webapps that use exactly the same WAR file. But, I
would like to share the Java, but supply a different docBase for each
site. Is this possible?

Reference:
http://wiki.apache.org/tomcat/CreateVirtualHosts

Thanks!

Tom Harris

This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, 

RE: Shared code but different pages on different virtual hosts? W AS: RE: BOOBIES!

2006-07-21 Thread Sharma, Siddharth
No you don't copy. 
My suggestion was to have one physical jar(s) referenced in the manifest of
all webapps.


-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:40 PM
To: Tomcat Users List
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!


That means that for each change of the core code, I have to copy a jar
to each of 40 web apps. That's what I've been trying to avoid... A
maintenance nightmare. I want a single copy of each version of the core
code (in a WAR file, or something) sitting on it's own, and each of the
web apps refers to it. The web apps need to have their own JSP and tag
file folders, since they are different sites.

Tom

-Original Message-
From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:32 PM
To: Tomcat Users List
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!

Jar up the common code into one or more libraries.
Put them somewhere (possibly at the enterprise app level) and add each
jar in each webapp's MANIFEST file.


-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 2:19 PM
To: Tomcat Users List
Subject: Shared code but different pages on different virtual hosts?
WAS:
RE: BOOBIES!


I wanted to have multiple web applications defined, all using the same
core Java code, but each having different JSP and tag file folders. I
tried following the example in the Tomcat Wiki at
http://wiki.apache.org/tomcat/CreateVirtualHosts, but it assumes all the
web apps have the same JSP and tag files, inside a WAR. I would like to
package up all of the common code for all the sites in a WAR file, then
point each separate web app to private JSP and tag file folders. What I
was trying to determine is:

1. Is it even possible?
2. If so, how could it be done?

As for the subject line, my previous email sat with the subject Shared
code but different pages on different virtual hosts? for two weeks
without a single response, and I'm still waiting so that my project can
continue down it's path. No offense is meant, and it should be pretty
obvious, I think, that I just wanted a little attention for my issue.
Sorry for any offense it may have caused.

Tom

-Original Message-
From: Mike Wannamaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:09 PM
To: 'Tomcat Users List'
Subject: RE: BOOBIES!

I believe the subject was posted under different subject heading with no
response and he's trying to get people looking at it, which I'm sure he
will now.

That said, some proper netiquette is appreciated in forums.

I believe that I'm doing something similar, but using a different
approach.
I too want to have some common resources that all webapps use.  To do
this I'm installing my own FileDirContext for web apps which I inject
what we call aliases.

IE:  /basefiles = /home/tomcat/basefiles

Thus when someone in the webapp makes a request for
/basefiles/common.css it looks it up in /home/tomcat/basefiles, which is
outside of any web app context.

Is this what you want to do?

Mike Wannamaker

-Original Message-
From: Mead, Jennifer L - VSCM [mailto:[EMAIL PROTECTED]
Sent: July 21, 2006 2:01 PM
To: Tomcat Users List
Subject: RE: BOOBIES!

Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.  

Jennifer 

-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 10:59 AM
To: users@tomcat.apache.org
Subject: BOOBIES!


I have been trying to determine how to configure Tomcat 5.5.17 to have a
shared appBase on multiple webapps, but have a different set of JSPs for
each web app. I've followed the Wiki's CreateVirtualHosts page to
configure multiple webapps that use exactly the same WAR file. But, I
would like to share the Java, but supply a different docBase for each
site. Is this possible?

Reference:
http://wiki.apache.org/tomcat/CreateVirtualHosts

Thanks!

Tom Harris

This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This communication is intended solely for the addressee and is
confidential
and not for third party unauthorized distribution

RE: Shared code but different pages on different virtual hosts? W AS: RE: BOOBIES!

2006-07-21 Thread Sharma, Siddharth
Another way could be to deploy a single webapp in a single Tomcat instance
so there are no classloading issues.
But of course that will create as many VMs as there are webapps.


-Original Message-
From: Sharma, Siddharth 
Sent: Friday, July 21, 2006 3:04 PM
To: 'Tomcat Users List'
Subject: RE: Shared code but different pages on different virtual hosts? W
AS: RE: BOOBIES!

No, don't put the jars anywhere where a classloader looks for them
automatically (such as extension dirs).
Create a different name of the same jar for each version.
Put them at the enterprise app level.
my_ent_app/myJar1_ver1.jar
my_ent_app/myJar1_ver2.jar
my_ent_app/myJar2_ver1.jar
my_ent_app/myJar2_ver2.jar

in webapp1's manifest add 
 myJar1_ver1.jar 
 myJar2_ver1.jar 

in webapp2's manifest add
 myJar1_ver2.jar 
 myJar2_ver2.jar 

This will only work if Tomcat uses a different classloader for each webapp,
each with its unique classpath. I do not know enough about Tomcat to know
the answer.




-Original Message-
From: Avi Deitcher [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:53 PM
To: Tomcat Users List
Subject: Re: Shared code but different pages on different virtual hosts? W
AS: RE: BOOBIES!

Ah, that is nice and simple. Put versionized by name jars in
/shared/lib/, but reference the specific versions in the manifest?

But how do you ensure that the jars won't be loaded anyways?

Sharma, Siddharth wrote:

No you don't copy. 
My suggestion was to have one physical jar(s) referenced in the manifest of
all webapps.


-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:40 PM
To: Tomcat Users List
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!


That means that for each change of the core code, I have to copy a jar
to each of 40 web apps. That's what I've been trying to avoid... A
maintenance nightmare. I want a single copy of each version of the core
code (in a WAR file, or something) sitting on it's own, and each of the
web apps refers to it. The web apps need to have their own JSP and tag
file folders, since they are different sites.

Tom

-Original Message-
From: Sharma, Siddharth [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:32 PM
To: Tomcat Users List
Subject: RE: Shared code but different pages on different virtual hosts?
WAS: RE: BOOBIES!

Jar up the common code into one or more libraries.
Put them somewhere (possibly at the enterprise app level) and add each
jar in each webapp's MANIFEST file.


-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 2:19 PM
To: Tomcat Users List
Subject: Shared code but different pages on different virtual hosts?
WAS:
RE: BOOBIES!


I wanted to have multiple web applications defined, all using the same
core Java code, but each having different JSP and tag file folders. I
tried following the example in the Tomcat Wiki at
http://wiki.apache.org/tomcat/CreateVirtualHosts, but it assumes all the
web apps have the same JSP and tag files, inside a WAR. I would like to
package up all of the common code for all the sites in a WAR file, then
point each separate web app to private JSP and tag file folders. What I
was trying to determine is:

1. Is it even possible?
2. If so, how could it be done?

As for the subject line, my previous email sat with the subject Shared
code but different pages on different virtual hosts? for two weeks
without a single response, and I'm still waiting so that my project can
continue down it's path. No offense is meant, and it should be pretty
obvious, I think, that I just wanted a little attention for my issue.
Sorry for any offense it may have caused.

Tom

-Original Message-
From: Mike Wannamaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 2:09 PM
To: 'Tomcat Users List'
Subject: RE: BOOBIES!

I believe the subject was posted under different subject heading with no
response and he's trying to get people looking at it, which I'm sure he
will now.

That said, some proper netiquette is appreciated in forums.

I believe that I'm doing something similar, but using a different
approach.
I too want to have some common resources that all webapps use.  To do
this I'm installing my own FileDirContext for web apps which I inject
what we call aliases.

IE:  /basefiles = /home/tomcat/basefiles

Thus when someone in the webapp makes a request for
/basefiles/common.css it looks it up in /home/tomcat/basefiles, which is
outside of any web app context.

Is this what you want to do?

Mike Wannamaker

-Original Message-
From: Mead, Jennifer L - VSCM [mailto:[EMAIL PROTECTED]
Sent: July 21, 2006 2:01 PM
To: Tomcat Users List
Subject: RE: BOOBIES!

Could this person (inject other undesirable word) please consider the
fact that women are in the user's group also.  

Jennifer 

-Original Message-
From: Harris, Thomas [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 10

RE: NEW : Tomcat Performance Monitoring

2006-07-17 Thread Sharma, Siddharth
You can use sar or vmstat
They give you system level health.
If you need inside the jvm health you can run the jvm in hprof mode. It adds
plenty of overhead so beware.
Try checking out
http://www.javaperformancetuning.com/resources.shtml#PerfTools 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 1:35 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Only one I know of is top which gives me cpu/memory/disk usage;
wondering if there was freeware on the web or other commands anyone knew 
of?






Propes, Barry L [EMAIL PROTECTED]
07/17/2006 10:29 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


you might try looking within the server it's (Tomcat) residing on -- be it 
Unix or IIS. Either might have some non-sophisticated, built-in tools to 
help gauge it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 12:24 PM
To: users@tomcat.apache.org
Subject: Re: NEW : Tomcat Performance Monitoring


Hello.
I'm creating a new thread regarding tomcat performance monitoring.
I am using Tomcat 4.0.6 in a Vignette content management application.
I need to monitor Tomcats performance real time.
Could someone suggest any answers?
Up till now, the only sure way was to do a kill -3 JVM-PID and get a 
thread dump,
which gives ample information but it is post-incident.
Are there any tools I can download and use or any commands someone can 
suggest?


Thanks,
Ibrahim

**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly 
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: NEW : Tomcat Performance Monitoring

2006-07-17 Thread Sharma, Siddharth
Pls look at the man pages and decide what you want.
You should probably pipe the output of these commands to a log file, so it
is running all the time and logging to a file and then whoever needs to see
this info, simply tails the log rather than running another sar or vmstat
session.

Ex. Vmstat gives you a bunch of information such as CPU idle % time, system
and user CPU utilization, paging, I/O Wait etc. You can pick and choose.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:01 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Sid,

I know of sar but how do I run it?
just by 'sar' command or any other parameters?
I can't afford overhead as this is production;
as to vmstat: just by command or anything else?


Thanks,
Ibrahim




Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 10:49 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


You can use sar or vmstat
They give you system level health.
If you need inside the jvm health you can run the jvm in hprof mode. It 
adds
plenty of overhead so beware.
Try checking out
http://www.javaperformancetuning.com/resources.shtml#PerfTools 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 1:35 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Only one I know of is top which gives me cpu/memory/disk usage;
wondering if there was freeware on the web or other commands anyone knew 
of?






Propes, Barry L [EMAIL PROTECTED]
07/17/2006 10:29 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


you might try looking within the server it's (Tomcat) residing on -- be it 

Unix or IIS. Either might have some non-sophisticated, built-in tools to 
help gauge it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 12:24 PM
To: users@tomcat.apache.org
Subject: Re: NEW : Tomcat Performance Monitoring


Hello.
I'm creating a new thread regarding tomcat performance monitoring.
I am using Tomcat 4.0.6 in a Vignette content management application.
I need to monitor Tomcats performance real time.
Could someone suggest any answers?
Up till now, the only sure way was to do a kill -3 JVM-PID and get a 
thread dump,
which gives ample information but it is post-incident.
Are there any tools I can download and use or any commands someone can 
suggest?


Thanks,
Ibrahim

**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly 
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL

RE: NEW : Tomcat Performance Monitoring

2006-07-17 Thread Sharma, Siddharth
Everything does. You have to figure out how much it adds in your
environment.
I'd be surprised if it adds even 1% as long as you do not have a
ridiculously low delay.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:41 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

does sar effect the system as in imposing an overload?





Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 11:30 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


Pls look at the man pages and decide what you want.
You should probably pipe the output of these commands to a log file, so it
is running all the time and logging to a file and then whoever needs to 
see
this info, simply tails the log rather than running another sar or vmstat
session.

Ex. Vmstat gives you a bunch of information such as CPU idle % time, 
system
and user CPU utilization, paging, I/O Wait etc. You can pick and choose.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:01 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Sid,

I know of sar but how do I run it?
just by 'sar' command or any other parameters?
I can't afford overhead as this is production;
as to vmstat: just by command or anything else?


Thanks,
Ibrahim




Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 10:49 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


You can use sar or vmstat
They give you system level health.
If you need inside the jvm health you can run the jvm in hprof mode. It 
adds
plenty of overhead so beware.
Try checking out
http://www.javaperformancetuning.com/resources.shtml#PerfTools 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 1:35 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Only one I know of is top which gives me cpu/memory/disk usage;
wondering if there was freeware on the web or other commands anyone knew 
of?






Propes, Barry L [EMAIL PROTECTED]
07/17/2006 10:29 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


you might try looking within the server it's (Tomcat) residing on -- be it 


Unix or IIS. Either might have some non-sophisticated, built-in tools to 
help gauge it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 12:24 PM
To: users@tomcat.apache.org
Subject: Re: NEW : Tomcat Performance Monitoring


Hello.
I'm creating a new thread regarding tomcat performance monitoring.
I am using Tomcat 4.0.6 in a Vignette content management application.
I need to monitor Tomcats performance real time.
Could someone suggest any answers?
Up till now, the only sure way was to do a kill -3 JVM-PID and get a 
thread dump,
which gives ample information but it is post-incident.
Are there any tools I can download and use or any commands someone can 
suggest?


Thanks,
Ibrahim

**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly 
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

RE: NEW : Tomcat Performance Monitoring

2006-07-17 Thread Sharma, Siddharth
Nope. No tomcat info. System-info only


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:53 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

but would sar  vmstat give me monitoring info on tomcat?
or just system usage or webserver usage?






Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 11:51 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


Everything does. You have to figure out how much it adds in your
environment.
I'd be surprised if it adds even 1% as long as you do not have a
ridiculously low delay.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:41 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

does sar effect the system as in imposing an overload?





Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 11:30 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


Pls look at the man pages and decide what you want.
You should probably pipe the output of these commands to a log file, so it
is running all the time and logging to a file and then whoever needs to 
see
this info, simply tails the log rather than running another sar or vmstat
session.

Ex. Vmstat gives you a bunch of information such as CPU idle % time, 
system
and user CPU utilization, paging, I/O Wait etc. You can pick and choose.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 2:01 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Sid,

I know of sar but how do I run it?
just by 'sar' command or any other parameters?
I can't afford overhead as this is production;
as to vmstat: just by command or anything else?


Thanks,
Ibrahim




Sharma, Siddharth [EMAIL PROTECTED]
07/17/2006 10:49 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


You can use sar or vmstat
They give you system level health.
If you need inside the jvm health you can run the jvm in hprof mode. It 
adds
plenty of overhead so beware.
Try checking out
http://www.javaperformancetuning.com/resources.shtml#PerfTools 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 17, 2006 1:35 PM
To: Tomcat Users List
Cc: Tomcat Users List
Subject: RE: NEW : Tomcat Performance Monitoring

Only one I know of is top which gives me cpu/memory/disk usage;
wondering if there was freeware on the web or other commands anyone knew 
of?






Propes, Barry L [EMAIL PROTECTED]
07/17/2006 10:29 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:RE: NEW : Tomcat Performance Monitoring


you might try looking within the server it's (Tomcat) residing on -- be it 



Unix or IIS. Either might have some non-sophisticated, built-in tools to 
help gauge it.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, July 17, 2006 12:24 PM
To: users@tomcat.apache.org
Subject: Re: NEW : Tomcat Performance Monitoring


Hello.
I'm creating a new thread regarding tomcat performance monitoring.
I am using Tomcat 4.0.6 in a Vignette content management application.
I need to monitor Tomcats performance real time.
Could someone suggest any answers?
Up till now, the only sure way was to do a kill -3 JVM-PID and get a 
thread dump,
which gives ample information but it is post-incident.
Are there any tools I can download and use or any commands someone can 
suggest?


Thanks,
Ibrahim

**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you 
should
delete this communication and/or shred the materials and any attachments 
and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly 
prohibited.

Thank you.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





**
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:15 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox. 
In Firefox go to Tools-Options, Options Popup appears.
Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node Cookies and click on button View Cookies.
You can see the cookie JSESSIONID with its value.
 
If you don't see the cookie, then definitely there is some issue.
 



From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:
  
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am

 not
  
 sure if it is maintaining session affinity.
 I have configured the load balancer worker for session affinity with this
 directive in worker.properties:
 worker.lb_worker.sticky_session=True

 What am I missing?
 What is the exact name of the cookie that mod_jk injects?

 I apologize if this is not the right mailing list for connector questions
 and will appreciate if someone could point me to it.

 Thanks in advance
 -Sidd



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  



  


--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER:

---
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have 
received this email in error please delete it and notify the sender
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
Ok here's a little confusion:

In server.xml, there are two Engine tags, one of them is commented out by
default.
As can be seen I left the commented out 'standalone' engine as is and added
jvmRoute to engine named 'Catalina'.
Is that the problem?
Should I add it to the 'standalone' engine and uncomment it and comment out
the 'Catalina' engine? 
Or should I have both uncommented?

I will try the permutations but if someone knows, it will save me some time
;)

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost
jvmRoute=tomcat_worker_2 
-- 
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost
jvmRoute=tomcat_worker_2

-Original Message-
From: Sharma, Siddharth 
Sent: Friday, June 16, 2006 10:40 AM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:15 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox. 
In Firefox go to Tools-Options, Options Popup appears.
Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node Cookies and click on button View Cookies.
You can see the cookie JSESSIONID with its value.
 
If you don't see the cookie, then definitely there is some issue.
 



From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:
  
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am

 not
  
 sure if it is maintaining session affinity.
 I have configured the load balancer worker for session affinity with this
 directive in worker.properties:
 worker.lb_worker.sticky_session=True

 What am I missing?
 What is the exact name of the cookie that mod_jk injects?

 I apologize if this is not the right mailing list for connector questions
 and will appreciate if someone could point me to it.

 Thanks in advance
 -Sidd



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  



  


--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER:

---
The contents of this e-mail and any attachment(s) are confidential and
intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its
affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect
the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail
is strictly prohibited. If you have 
received this email in error please delete it and notify

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
It is slightly more complicated that that.
We are creating a session but not an HttpSession, a C++ session.
The Tomcat web app essentially has a servlet that delegates to the C++
component using JNI.

Should we create an HttpSession before delegating?
Is that the missing link?

Thanks
Sidd

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 10:59 AM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

is your webapplication creating a session? if not, then there wont be a 
cookie, and mod_jk uses this cookie to determine server affinity.

and if you dont have sessions, you don't need session affinity

Filip


Sharma, Siddharth wrote:
 I have an http packet sniffer and it is reporting that there are no
cookies
 returned by apache.

 Just to recap what I have done:
 1. IBM HttpServer 2.0 with mod_jk on redhat linux
 2. worker.properties has a load-balancer worker fronting two tomcat
workers
 over ajp13. it's sticky session property is set to True.
 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
 instances) have their respective worker names (no case difference or silly
 spelling mistakes).

 There is no cookie. Is there another step that I am missing to enable
 session affinity?




 -Original Message-
 From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 16, 2006 10:15 AM
 To: Tomcat Users List; Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem


 JSESSIONID is a non-persistent cookie and you can check its presence
easily
 using a Netscape Navigator or FireFox. 
 In Firefox go to Tools-Options, Options Popup appears.
 Select Privacy in the left section, to get the privacy options on the
right
 side of the popup
 Expand the Node Cookies and click on button View Cookies.
 You can see the cookie JSESSIONID with its value.
  
 If you don't see the cookie, then definitely there is some issue.
  

 

 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Fri 6/16/2006 7:21 PM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem



 how do you verify that you don't have a cookie?

 I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

 Filip


 Sharma, Siddharth wrote:
   
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:
  
 
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two
workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am

   
 not
  
 
 sure if it is maintaining session affinity.
 I have configured the load balancer worker for session affinity with
this
 directive in worker.properties:
 worker.lb_worker.sticky_session=True

 What am I missing?
 What is the exact name of the cookie that mod_jk injects?

 I apologize if this is not the right mailing list for connector
questions
 and will appreciate if someone could point me to it.

 Thanks in advance
 -Sidd



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


  

   
  
 


 --


 Filip Hanik

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 DISCLAIMER:


 ---
 The contents of this e-mail and any attachment(s) are confidential and
 intended for the named recipient(s) only. 
 It shall not attach any liability on the originator or HCL or its
 affiliates. Any views or opinions presented in 
 this email are solely those of the author and may not necessarily reflect
 the opinions of HCL or its affiliates. 
 Any form of reproduction, dissemination, copying, disclosure,
modification,
 distribution and / or publication of 
 this message without the prior written consent of the author of this
e-mail
 is strictly prohibited. If you have 
 received this email in error please delete it and notify the sender
 immediately. Before opening any mail and 
 attachments please check them for viruses and defect

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
My bad. Did not read documentation.

Thanks


-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 12:31 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


 
The names of your workers are not correct. It should be alphanumeric only.
Refer to http://tomcat.apache.org/connectors-doc/config/workers.html
 
Sanjeev



From: Sharma, Siddharth [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 8:23 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem



Ok here's a little confusion:

In server.xml, there are two Engine tags, one of them is commented out by
default.
As can be seen I left the commented out 'standalone' engine as is and added
jvmRoute to engine named 'Catalina'.
Is that the problem?
Should I add it to the 'standalone' engine and uncomment it and comment out
the 'Catalina' engine?
Or should I have both uncommented?

I will try the permutations but if someone knows, it will save me some time
;)

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost
jvmRoute=tomcat_worker_2
--

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost
jvmRoute=tomcat_worker_2

-Original Message-
From: Sharma, Siddharth
Sent: Friday, June 16, 2006 10:40 AM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 10:15 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox.
In Firefox go to Tools-Options, Options Popup appears.
Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node Cookies and click on button View Cookies.
You can see the cookie JSESSIONID with its value.

If you don't see the cookie, then definitely there is some issue.




From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:
 
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am
   
 not
 
 sure if it is maintaining session affinity.
 I have configured the load balancer worker for session affinity with this
 directive in worker.properties:
 worker.lb_worker.sticky_session=True

 What am I missing?
 What is the exact name of the cookie that mod_jk injects?

 I apologize if this is not the right mailing list for connector questions
 and will appreciate if someone could point me to it.

 Thanks in advance
 -Sidd



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
   


 


--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





DISCLAIMER:

---
The contents of this e-mail and any

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
Ok, the httpsession is enabled with the code 
request.getSession(true);

but I still do not see a jsessionid cookie, even if tomcat is hit directly.
Same if hit via apache.

Do I have to enable sessions in Tomcat? How do I do that?
I do not want to enable session persistence.

Thanks
Sidd


-Original Message-
From: Sharma, Siddharth 
Sent: Friday, June 16, 2006 1:28 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

My bad. Did not read documentation.

Thanks


-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 12:31 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


 
The names of your workers are not correct. It should be alphanumeric only.
Refer to http://tomcat.apache.org/connectors-doc/config/workers.html
 
Sanjeev



From: Sharma, Siddharth [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 8:23 PM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem



Ok here's a little confusion:

In server.xml, there are two Engine tags, one of them is commented out by
default.
As can be seen I left the commented out 'standalone' engine as is and added
jvmRoute to engine named 'Catalina'.
Is that the problem?
Should I add it to the 'standalone' engine and uncomment it and comment out
the 'Catalina' engine?
Or should I have both uncommented?

I will try the permutations but if someone knows, it will save me some time
;)

!-- You should set jvmRoute to support load-balancing via AJP ie :
Engine name=Standalone defaultHost=localhost
jvmRoute=tomcat_worker_2
--

!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost
jvmRoute=tomcat_worker_2

-Original Message-
From: Sharma, Siddharth
Sent: Friday, June 16, 2006 10:40 AM
To: Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem

I have an http packet sniffer and it is reporting that there are no cookies
returned by apache.

Just to recap what I have done:
1. IBM HttpServer 2.0 with mod_jk on redhat linux
2. worker.properties has a load-balancer worker fronting two tomcat workers
over ajp13. it's sticky session property is set to True.
3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
instances) have their respective worker names (no case difference or silly
spelling mistakes).

There is no cookie. Is there another step that I am missing to enable
session affinity?




-Original Message-
From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 10:15 AM
To: Tomcat Users List; Tomcat Users List
Subject: RE: Apache with Tomcat and session affinity problem


JSESSIONID is a non-persistent cookie and you can check its presence easily
using a Netscape Navigator or FireFox.
In Firefox go to Tools-Options, Options Popup appears.
Select Privacy in the left section, to get the privacy options on the right
side of the popup
Expand the Node Cookies and click on button View Cookies.
You can see the cookie JSESSIONID with its value.

If you don't see the cookie, then definitely there is some issue.




From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Fri 6/16/2006 7:21 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem



how do you verify that you don't have a cookie?

I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

Filip


Sharma, Siddharth wrote:
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:
 
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am
   
 not
 
 sure if it is maintaining session affinity.
 I have configured the load balancer worker for session affinity with this
 directive in worker.properties:
 worker.lb_worker.sticky_session=True

 What am I missing?
 What is the exact name of the cookie that mod_jk injects?

 I apologize if this is not the right mailing list for connector questions
 and will appreciate if someone could point me to it.

 Thanks in advance
 -Sidd



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Apache with Tomcat and session affinity problem

2006-06-16 Thread Sharma, Siddharth
I do now.
It's all working now.

Thanks a bunch
Sidd

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 2:06 PM
To: Tomcat Users List
Subject: Re: Apache with Tomcat and session affinity problem

so if you create a jsp(or servlet) that looks like

%=request.getSession(true).getId()%

and run it, you get nothing?

Filip


Sharma, Siddharth wrote:
 Ok, the httpsession is enabled with the code 
 request.getSession(true);

 but I still do not see a jsessionid cookie, even if tomcat is hit
directly.
 Same if hit via apache.

 Do I have to enable sessions in Tomcat? How do I do that?
 I do not want to enable session persistence.

 Thanks
 Sidd


 -Original Message-
 From: Sharma, Siddharth 
 Sent: Friday, June 16, 2006 1:28 PM
 To: Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem

 My bad. Did not read documentation.

 Thanks


 -Original Message-
 From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 16, 2006 12:31 PM
 To: Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem


  
 The names of your workers are not correct. It should be alphanumeric only.
 Refer to http://tomcat.apache.org/connectors-doc/config/workers.html
  
 Sanjeev

 

 From: Sharma, Siddharth [mailto:[EMAIL PROTECTED]
 Sent: Fri 6/16/2006 8:23 PM
 To: Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem



 Ok here's a little confusion:

 In server.xml, there are two Engine tags, one of them is commented out by
 default.
 As can be seen I left the commented out 'standalone' engine as is and
added
 jvmRoute to engine named 'Catalina'.
 Is that the problem?
 Should I add it to the 'standalone' engine and uncomment it and comment
out
 the 'Catalina' engine?
 Or should I have both uncommented?

 I will try the permutations but if someone knows, it will save me some
time
 ;)

 !-- You should set jvmRoute to support load-balancing via AJP ie :
 Engine name=Standalone defaultHost=localhost
 jvmRoute=tomcat_worker_2
 --
 
 !-- Define the top level container in our container hierarchy --
 Engine name=Catalina defaultHost=localhost
 jvmRoute=tomcat_worker_2

 -Original Message-
 From: Sharma, Siddharth
 Sent: Friday, June 16, 2006 10:40 AM
 To: Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem

 I have an http packet sniffer and it is reporting that there are no
cookies
 returned by apache.

 Just to recap what I have done:
 1. IBM HttpServer 2.0 with mod_jk on redhat linux
 2. worker.properties has a load-balancer worker fronting two tomcat
workers
 over ajp13. it's sticky session property is set to True.
 3. In the server.xml, the jvMRoute attribute of Engine (in both tomcat
 instances) have their respective worker names (no case difference or silly
 spelling mistakes).

 There is no cookie. Is there another step that I am missing to enable
 session affinity?




 -Original Message-
 From: Sanjeev Kumar Bhat, Noida [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 10:15 AM
 To: Tomcat Users List; Tomcat Users List
 Subject: RE: Apache with Tomcat and session affinity problem


 JSESSIONID is a non-persistent cookie and you can check its presence
easily
 using a Netscape Navigator or FireFox.
 In Firefox go to Tools-Options, Options Popup appears.
 Select Privacy in the left section, to get the privacy options on the
right
 side of the popup
 Expand the Node Cookies and click on button View Cookies.
 You can see the cookie JSESSIONID with its value.

 If you don't see the cookie, then definitely there is some issue.


 

 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Fri 6/16/2006 7:21 PM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem



 how do you verify that you don't have a cookie?

 I suggest using LiveHttpHeaders (firefox/mozilla) or TCPMonitor

 Filip


 Sharma, Siddharth wrote:
   
 Yes I did
 jvmRoute is set to the worker name.
 still, no jsessionid cookie.





 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 16, 2006 7:18 AM
 To: Tomcat Users List
 Subject: Re: Apache with Tomcat and session affinity problem

 have you set jvmRoute in your engine element (server.xml)?
 this is how mod_jk does session affinity

 filipp



 Sharma, Siddharth wrote:

 
 I have IBM HttpServer 2.0 (it is an apache essentially) fronting two
 tomcat instances (version 5.5.16) using mod_jk over ajp13.
 I have configured a load balancer worker to spray load across two
workers
 representing these two tomcat instances.
 And it works.
 The problem is I do not see a session id cookie in the response, so I am
   
   
 not

 
 sure if it is maintaining session affinity.
 I have configured the load balancer worker

Apache with Tomcat and session affinity problem

2006-06-15 Thread Sharma, Siddharth
I have IBM HttpServer 2.0 (it is an apache essentially) fronting two 
tomcat instances (version 5.5.16) using mod_jk over ajp13. 
I have configured a load balancer worker to spray load across two workers
representing these two tomcat instances. 
And it works. 
The problem is I do not see a session id cookie in the response, so I am not
sure if it is maintaining session affinity. 
I have configured the load balancer worker for session affinity with this
directive in worker.properties: 
worker.lb_worker.sticky_session=True 

What am I missing? 
What is the exact name of the cookie that mod_jk injects?

I apologize if this is not the right mailing list for connector questions
and will appreciate if someone could point me to it.

Thanks in advance
-Sidd 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]