RE: Tomcat 6.0.18 Caching Question

2012-11-22 Thread Sekar, Vasanth
Hi, 
Please see my inline comments.

Thank you,
Regards,
Vasanth Sekar


-Original Message-
From: Pid * [mailto:p...@pidster.com] 
Sent: Thursday, November 22, 2012 1:28 AM
To: Tomcat Users List
Subject: Re: Tomcat 6.0.18 Caching Question

On 22 Nov 2012, at 07:15, Sekar, Vasanth vasanth.se...@supervalu.com wrote:

 Hello-
 I am working on a project where we are migrating a web app from JRUN 4.0
 to Tomcat 6.0 and facing some sort of caching problem with one of the
 functionality.

You refer to Tomcat 6.0.18 in the subject, why would you 'upgrade' to
a really old version of Tomcat when 6.0.36 is available with very many
important fixes?

That's the standard version that we have inside our environment for Prod move 
at this point.
Tomcat 7.0.8 build is underway but not in our Prod environment yet. So, for now
I have to use the current standard version and hence using this particular 
version 6.0.18.

 The same jsp:include code works fine in JRUN server but
 in Tomcat for the page to work properly I have to clear the cache under
 work/catalina before accessing the page every time.

 I thought initially it was some browser cache but that doesn't seem to
 be the case. Clearing the browser cache did not help and only emptying
 the contents in work/catalina seems to do the trick. I understand that
 there is a way to prevent this caching under work/catalina but trying to
 figure out if there is a way where I can explicitly tell Tomcat to
 recompile this particular jsp file upon each request. I looked at JRUN
 to see if it was caching that particular JSP page and even it does it as
 well.

 Issue details:
 We are having a list that populates the data from database. For example:
 page number field with values 0,1,2,3,4 

Ok so far.

 On first time, it does show the proper page selected value - say 4.

Not enough information to understand what this means. Can you post
code or explain in more detail please?

Sorry, about that. Here is the detailed explanation. 
html:options collection=pages property=pageNumber styleClass=textbody/

So, during first time access - html view source
option value=0 class=textbody0/option
option value=1 selected=selected class=textbody1/option
option value=2 class=textbody2/option
option value=3 class=textbody3/option
option value=4 class=textbody4/option
option value=5 class=textbody5/option

If you notice there is a selected on option value=1 and default option on 
page load will be selected to option value 1

 The
 next time when we try to access it the selected value does not show up
 correctly and it just defaults the first record in the drop down - 0.

 I did view source of the html and see the select tag not present upon
 future requests.

So the entire SELECT form element is missing?

The selected selected is missing upon future requests. This is how it will be 
and since selected is not there it would default to first record 0.
option value=0 class=textbody0/option
option value=1 class=textbody1/option
option value=2 class=textbody2/option
option value=3 class=textbody3/option
option value=4 class=textbody4/option
option value=5 class=textbody5/option

 When I empty the content in nwork/catalina (no tomcat
 restart) then it recompiles the file and would show up the proper value.

Still pretty vague as to what you are doing...

I cannot get it show proper selected value on screen until I go to
work\Catalina\localhost\ and delete the previous xyz_jsp.java compiled version. 
I go here and delete this cached file. Then access the same screen again 
This time it would show up like before. Selected option on option value =1 and 
will default correctly.

Please let me know if you need further inputs or if am still unclear in trying 
to explain the whole problem. 

p


 The same code works fine in JRUN and am trying to figure out how to get
 this working in Tomcat without having to clear Tomcat cache.

 If anyone has some thoughts to debug this situation further, please shed
 some light.

 Thank you,
 Regards,
 Vasanth Sekar



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




RE: Tomcat 6.0.18 Caching Question

2012-11-22 Thread Sekar, Vasanth
I very well understand the point everyone are trying to make here . But, 
unfortunately I have to go with the approved version with in our environment. I 
believe there were also talks about 7.0.26 but it will be quite some time 
before they pilot everything and approve the version for Prod usage :(. I don't 
have any authority to change how things work but will for sure bring that 
concern up to the architect team when I meet with them next time.

That being said, any thoughts on the original problem though :)

Thank you,
Regards,
Vasanth Sekar


-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, November 22, 2012 9:50 AM
To: Tomcat Users List
Subject: Re: Tomcat 6.0.18 Caching Question

On 22/11/2012 16:29, Mark Thomas wrote:
 On 22/11/2012 15:39, Sekar, Vasanth wrote:
 That's the standard version that we have inside our environment for Prod 
 move at this point.
 Tomcat 7.0.8 build is underway but not in our Prod environment yet. 
 So, for now I have to use the current standard version and hence using this 
 particular version 6.0.18.

If the Tomcat 7.x build is still underway, why don't pop over to whoever's desk 
it is that's doing the work and point out that 7.0.33, (that's *thirty-three* 
on the end there), is 25 releases after the out of date one that they're 
planning to install... ?


 6.0.18 and 7.0.8?
 
 Have you read the security vulnerability pages?

Maybe he's emailing us from the year 2008.


p


-- 

[key:62590808]


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6.0.18 Caching Question

2012-11-22 Thread Sekar, Vasanth
I am trying to disable the caching under work/catalina - _jsp.java 
_jsp.class by doing the following

In context added the following cachingAllowed = false parameter

Context path=/test
docBase=test
cachingAllowed=false
Deleted the work/catalina cache and restarted the tomcat server. Tired
to access the app and _jsp.java  _jsp.class showed up again.

So, tried the additional following as well

In tomcat/conf - context.xml did the following

!-- Default set of monitored resources --
 WatchedResourceWEB-INF/web.xml/WatchedResource
WatchedResourceWEB-INF/classes/WatchedResource

In tomcat/conf - web.xml following is the entry
servlet
servlet-namejsp/servlet-name
 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
/servlet

Still not able to avoid the Tomcat JSP cache under work/catalina - not
entirely sure if I am missing some entries or step here. Please advise.

Thank you,
Regards,
Vasanth Sekar


-Original Message-
From: Sekar, Vasanth 
Sent: Thursday, November 22, 2012 12:15 AM
To: 'Tomcat Users List'
Subject: Tomcat 6.0.18 Caching Question

Hello-
I am working on a project where we are migrating a web app from JRUN 4.0
to Tomcat 6.0 and facing some sort of caching problem with one of the
functionality. The same jsp:include code works fine in JRUN server but
in Tomcat for the page to work properly I have to clear the cache under
work/catalina before accessing the page every time.

I thought initially it was some browser cache but that doesn't seem to
be the case. Clearing the browser cache did not help and only emptying
the contents in work/catalina seems to do the trick. I understand that
there is a way to prevent this caching under work/catalina but trying to
figure out if there is a way where I can explicitly tell Tomcat to
recompile this particular jsp file upon each request. I looked at JRUN
to see if it was caching that particular JSP page and even it does it as
well. 

Issue details:
We are having a list that populates the data from database. For example:
page number field with values 0,1,2,3,4 
On first time, it does show the proper page selected value - say 4. The
next time when we try to access it the selected value does not show up
correctly and it just defaults the first record in the drop down - 0.

I did view source of the html and see the select tag not present upon
future requests. When I empty the content in work/catalina (no tomcat
restart) then it recompiles the file and would show up the proper value.
The same code works fine in JRUN and am trying to figure out how to get
this working in Tomcat without having to clear Tomcat cache. 

If anyone has some thoughts to debug this situation further, please shed
some light.

Thank you,
Regards,
Vasanth Sekar



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6.0.18 Caching Question

2012-11-22 Thread Sekar, Vasanth

 All evidence at the moment indicates that your JSP code is the most
likely suspect.
Okay, I will scan through the logic in the code once again very closely.
Like I said before the same code works fine in JRUN and also in Tomcat
for the first time. This problem occurs only in Tomcat upon subsequent
access. If I get rid of the jsp_java then in work/catalina then it would
start working again properly. So, I was under the impression that some
kind of a cache problem.

And again, at least trying it on a current version would either confirm
or eliminate the possibility that the problem has been fixed sometime in
the past four years (if it is a Tomcat problem).
Sure, I will try to download the latest version and give it a shot to
see if the problem manifests in there. Sorry, did not interpret from
your original response that you want me to try in latest Tomcat version.
I have no problems in doing so and am not against it. It is just that I
was trying to explain the reasons for this particular version usage.  

PS: Hoping that I am not asking any questions on a version that is EOL.
Lastly, I am not trying to be irresponsible or willing to post
ill-described questions:( Just thought of getting some experts advise
here and no other intentions:) 

THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 6.0.18 Caching Question

2012-11-21 Thread Sekar, Vasanth
Hello-
I am working on a project where we are migrating a web app from JRUN 4.0
to Tomcat 6.0 and facing some sort of caching problem with one of the
functionality. The same jsp:include code works fine in JRUN server but
in Tomcat for the page to work properly I have to clear the cache under
work/catalina before accessing the page every time.

I thought initially it was some browser cache but that doesn't seem to
be the case. Clearing the browser cache did not help and only emptying
the contents in work/catalina seems to do the trick. I understand that
there is a way to prevent this caching under work/catalina but trying to
figure out if there is a way where I can explicitly tell Tomcat to
recompile this particular jsp file upon each request. I looked at JRUN
to see if it was caching that particular JSP page and even it does it as
well. 

Issue details:
We are having a list that populates the data from database. For example:
page number field with values 0,1,2,3,4 
On first time, it does show the proper page selected value - say 4. The
next time when we try to access it the selected value does not show up
correctly and it just defaults the first record in the drop down - 0.

I did view source of the html and see the select tag not present upon
future requests. When I empty the content in work/catalina (no tomcat
restart) then it recompiles the file and would show up the proper value.
The same code works fine in JRUN and am trying to figure out how to get
this working in Tomcat without having to clear Tomcat cache. 

If anyone has some thoughts to debug this situation further, please shed
some light.

Thank you,
Regards,
Vasanth Sekar



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 4.0 Tomcat 6.0 AuthenticatorBase

2012-05-20 Thread Sekar, Vasanth
Thanks Mark. Sorry, was just an oversight.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Saturday, May 19, 2012 1:21 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.0  Tomcat 6.0 AuthenticatorBase

On 18/05/2012 00:43, Sekar, Vasanth wrote:
 Good evening Mark,
 Thanks for confirming the first part of the request.
 
 I did try your below suggestion already
 
 associate(ssoId, request.getSession(true));
 
 The method associate(String, Session) in the type authenticatorbase is
 not applicable for the arguments (String, HttpSession). The method
 associate is expecting an org.apache.catalina.Session return where as
 the connector Request is returning HttpSession.
 
 Thanks again for your response and please advise.

Sorry. Looked too fast.

associate(ssoId, request.getSessionInternal(true));

I'm struggling to understand why you were unable to figure this out for
yourself.

Mark


 
 Thanks!
 Vasanth
 
 -Original Message-
 From: Mark Thomas [mailto:ma...@apache.org] 
 Sent: Thursday, May 17, 2012 12:28 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0  Tomcat 6.0 AuthenticatorBase
 
 On 17/05/2012 16:31, Sekar, Vasanth wrote:
 Hello-
 We have a custom form authenticator that runs on tomcat 4.0. Now, we
 have a need to migrate that into tomcat 6.0. There are compilation
 errors with the following.

 import org.apache.catalina.HttpRequest;
 import org.apache.catalina.HttpResponse;

 I looked at the tomcat 6.0 API and found that these classes are not
 there anymore. I believe these are replaced by 

 import org.apache.catalina.connector.Request;
 import org.apache.catalina.connector.Response;
 
 Correct.
 
 However, it still shows error on getSession and when I looked at the
 authenticatorbase API it is not present in 6.0
 associate(ssoId, getSession(request, true));

 Could someone shed some light on how to go about this?
 
 associate(ssoId, request.getSession(true));
 
 Mark
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 4.0 Tomcat 6.0 AuthenticatorBase

2012-05-17 Thread Sekar, Vasanth
Hello-
We have a custom form authenticator that runs on tomcat 4.0. Now, we
have a need to migrate that into tomcat 6.0. There are compilation
errors with the following.

import org.apache.catalina.HttpRequest;
import org.apache.catalina.HttpResponse;

I looked at the tomcat 6.0 API and found that these classes are not
there anymore. I believe these are replaced by 

import org.apache.catalina.connector.Request;
import org.apache.catalina.connector.Response;

However, it still shows error on getSession and when I looked at the
authenticatorbase API it is not present in 6.0
associate(ssoId, getSession(request, true));

Could someone shed some light on how to go about this?

Thank you,
Regards,
Vasanth Sekar




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 4.0 Tomcat 6.0 AuthenticatorBase

2012-05-17 Thread Sekar, Vasanth
Good evening Mark,
Thanks for confirming the first part of the request.

I did try your below suggestion already

associate(ssoId, request.getSession(true));

The method associate(String, Session) in the type authenticatorbase is
not applicable for the arguments (String, HttpSession). The method
associate is expecting an org.apache.catalina.Session return where as
the connector Request is returning HttpSession.

Thanks again for your response and please advise.

Thanks!
Vasanth

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Thursday, May 17, 2012 12:28 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.0  Tomcat 6.0 AuthenticatorBase

On 17/05/2012 16:31, Sekar, Vasanth wrote:
 Hello-
 We have a custom form authenticator that runs on tomcat 4.0. Now, we
 have a need to migrate that into tomcat 6.0. There are compilation
 errors with the following.
 
 import org.apache.catalina.HttpRequest;
 import org.apache.catalina.HttpResponse;
 
 I looked at the tomcat 6.0 API and found that these classes are not
 there anymore. I believe these are replaced by 
 
 import org.apache.catalina.connector.Request;
 import org.apache.catalina.connector.Response;

Correct.

 However, it still shows error on getSession and when I looked at the
 authenticatorbase API it is not present in 6.0
 associate(ssoId, getSession(request, true));
 
 Could someone shed some light on how to go about this?

associate(ssoId, request.getSession(true));

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Question on Performance Tuning

2008-11-20 Thread Vasanth Kumar ravi
Currently we are running Java 1.5 with 64 bit version on the superdome
server with Redhat O/S.
But we have not specified the -server option in the JAVA_OPTS.
Is it must to have -server option specified when you are using a 64 bit
Java.

The CPU utilization nags me very much.
The performance of the application pages/transactions are meeting our
targets except the cpu target.

We have the same application running on Weblogic/Apache/Oracle on Solaris
O/S in which the CPU for 100 virtual user is 50-60%.

To identify the surge in CPU, I tested the following scenario's yday.

2 users - Single Tomcat - 12-18% of CPU
4 users - Single Tomcat - 20-30% of CPU
6 users - Single Tomcat - 40-50% of CPU
More than 6 users - Single/Double Tomcat - CPU utilization is 70-80%.
Even if I test with 25/50/100 users the CPU maintains at 70%.

We have max threads as 40 and I increased to 60 but did not find any
difference in CPU.

My application is an internet based one which currently has half a million
page views everyday.
In the near future it may exceed one million.
I cannot test more than 100 users as we do not have license for more than
100 users.
Is it a normal behavior of the tomcat ?

On Wed, Nov 19, 2008 at 11:01 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Vasanth,

 Vasanth Kumar ravi wrote:
  We did many rounds of load/performance testing with 50 Virtual users, to
  find bottlenecks with the application, major problem found was CPU
  utilization.
 
  1. We did load testing with 1 apache and 1 tomcat, the CPU was arnd 70%
  2. We did load testing with 2 apache and 2 tomcat, the CPU was arnd 70%
  3. We did load testing with 2 apache and 3 tomcat, the CPU was arnd 70%
  4. We did load testing with 2 apache and 4 tomcat, the CPU was arnd 70%

 Was your load test designed to test your peak load expectations? IMO,
 70% CPU utilization means that you have appropriately sized your
 hardware for your demand. I would call that a successful capacity
 planning job: you even have a bit of room to grow before adding more
 hardware.

 Are you just upset that you are using such a high percentage of your CPU?

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkkkKmYACgkQ9CaO5/Lv0PAwsgCghztrPqEqZr8qOgU9D/wQICcd
 oFsAoKeDf44p9qPHOr0jlEA3LA1lEUhc
 =lcEb
 -END PGP SIGNATURE-

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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Question on Performance Tuning

2008-11-20 Thread Vasanth Kumar ravi
Chuck
We tried using the jprobe to profile the application.Now we are trying out
lighter profiler as the jprobe was a heavy one.
But found nothing suspicious.

java version 1.5.0_16

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)

Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_16-b02, mixed mode)


On Fri, Nov 21, 2008 at 9:49 AM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Vasanth Kumar ravi [mailto:[EMAIL PROTECTED]
  Subject: Re: Question on Performance Tuning
 
  But we have not specified the -server option in the JAVA_OPTS.
  Is it must to have -server option specified when you are
  using a 64 bit Java.

 Typically, 64-bit JVMs run only in -server mode, so you don't have to
 specify anything.  Do java -version from a shell window to verify.

  To identify the surge in CPU, I tested the following scenario's yday.

 Fine, but what about the profiling we suggested you do?  Without that data,
 everything else is just speculation.  Run a profiler, and find out what's
 using up the CPU cycles.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: java.lang.Exception: Socket bind failed: [730048]

2008-11-20 Thread Vasanth Kumar ravi
 would like to know if I can
kill any process from netstat or otherwise (other than from Task
Manager, as that doesn't show anything useful).

Cud be IIS interference to Tomcat.
Try the following

Start -- Control Panel -- Administrative Tools --Services -- I

Find the process named IIS Admin and right click to Stop it.

jus my 2 cents.

On Fri, Nov 21, 2008 at 10:36 AM, Toby Kurien [EMAIL PROTECTED] wrote:

 Telnet does not work and netstat does not show anything suspicious.
 Only the webserver listening on port 80. I would like to know if I can
 kill any process from netstat or otherwise (other than from Task
 Manager, as that doesn't show anything useful).

 For now, I am already rebuilding a new server with Tomcat 6.0 and I
 would like to know if there are any tools to monitor this from
 happening again. I feel Tomcat 6.0 doesn't even have the admin webapp,
 but not so sure. Let me know where I can find it. Also any tools to
 monitor activity, sessions, RAM usage, jdbc connections, connection
 pools would be very helpful.

 Thanks,
 -Toby


 On Thu, Nov 20, 2008 at 3:28 PM, Len Popp [EMAIL PROTECTED] wrote:
  The command netstat -ao will tell you which process is listening on
  port 80, and Task Manager will show which program is running in that
  process.
  --
  Len
 
 
 
  On Thu, Nov 20, 2008 at 14:47, Toby Kurien [EMAIL PROTECTED] wrote:
  Well, I have had this application for many years and usually
  restarting the whole server fixes anything, but not this time. I
  figure something is holding on to port 80, but I am not able to find
  out or terminate it. I have a bad feeling there might be a security
  breach or something.
 
  Thanks,
  -Toby
 
  On Wed, Nov 19, 2008 at 2:59 PM, Caldarale, Charles R
  [EMAIL PROTECTED] wrote:
  From: Toby Kurien [mailto:[EMAIL PROTECTED]
  Subject: java.lang.Exception: Socket bind failed: [730048]
 
  I have attached a log file of the errors I am
  getting while trying to start Tomcat.
 
  Nov 19, 2008 12:55:22 PM
  org.apache.coyote.http11.Http11AprProtocol init
  SEVERE: Error initializing endpoint
  java.lang.Exception: Socket bind failed: [730048] Only one usage of
  each socket address (protocol/network address/port) is normally
  permitted.
 at
  org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:576)
 at
 
 org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:116)
 
  The error indicates something else is already using port 80, thereby
 preventing Tomcat from accessing it.  Since you also have an AJP connector,
 you may be running Tomcat behind IIS or some other web server that handles
 port 80 and forwards requests to AJP on 8009.
 
  If you don't expect anything else to be using port 80, then something
 has crept in that's usurping Tomcat.  (Or you may just be trying to run the
 same Tomcat twice.)
 
   - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If
 you received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
  -
  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]
 
 

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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: How to unsubscribe to this tomact mailing service

2008-11-20 Thread Vasanth Kumar ravi
 To unsubscribe, e-mail: [EMAIL PROTECTED]

On Wed, Nov 19, 2008 at 2:26 PM, devendra gawde [EMAIL PROTECTED] wrote:




  Be the first one to try the new Messenger 9 Beta! Go to
 http://in.messenger.yahoo.com/win/


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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Tomcat Hanging Intermittently

2008-11-20 Thread Vasanth Kumar ravi
 have tomcat server with apache (mod_jk) and mysql running on my box.
Initially there were no issues with the server. But from past one month, the
tomcat application hangs and websites also doesn't open. Though when i run
nmap localhost, it shows me 8080 and ajp13 services running.

Check the cpu/memory utilized in the server.
Check your GC logs, if you have one.
Did u get any OOM errors in yout tomcat log files or any other exceptions
while accessing the website.


I have notices that in last 1 month serveral websites have been hosted on
the box. Earlier around 6-10 websites were hosted but now it has increased
to 20. Is it putting load on the server.

Check the cpu/memory utilized in the server. - to find the cause.

I am facing another issue.
Most of the websites have .war files deployed, so whenever i restarts the
tomcat, it takes 90 seconds to start the tomcat. Time duration has also
incereased as the  no. websites have increased.

All depends on your mem/cpu aavailable for use .


On Fri, Nov 14, 2008 at 8:58 PM, Gaurav Pruthi [EMAIL PROTECTED] wrote:

 Dear All,

 I have tomcat server with apache (mod_jk) and mysql running on my box.
 Initially there were no issues with the server. But from past one month,
 the
 tomcat application hangs and websites also doesn't open. Though when i run
 nmap localhost, it shows me 8080 and ajp13 services running.

 I have notices that in last 1 month serveral websites have been hosted on
 the box. Earlier around 6-10 websites were hosted but now it has increased
 to 20. Is it putting load on the server.

 I am facing another issue.
 Most of the websites have .war files deployed, so whenever i restarts the
 tomcat, it takes 90 seconds to start the tomcat. Time duration has also
 incereased as the  no. websites have increased.

 Kindly provide me some solution so that i don't have to face any downtime
 in
 future.



 Thanks,
 Gaurav Pruthi




-- 
RegardsThanks,
Vasanth Kumar Ravi


Question on Performance Tuning

2008-11-18 Thread Vasanth Kumar ravi
Folks,
I have some queries related to the performance tuning of Tomcat V6.
I did search some search on the internet and found very little with regards
to tuning.
My application setup is as follows.

2 Apache web servers.
4 Tomcat application servers
2 database servers.
We did many rounds of load/performance testing with 50 Virtual users, to
find bottlenecks with the application, major problem found was CPU
utilization.

1. We did load testing with 1 apache and 1 tomcat, the CPU was arnd 70%
2. We did load testing with 2 apache and 2 tomcat, the CPU was arnd 70%
3.We did load testing with 2 apache and 3 tomcat, the CPU was arnd 70%
4.We did load testing with 2 apache and 4 tomcat, the CPU was arnd 70%

Each tomcat has a heap size of min/max = 2 GB.

JAVA_OPTS=$JAVA_OPTS -Xms2048m -Xmx2048m  -XX:MaxPermSize=128m
-XX:PermSize=128m -XX:NewRatio=3 -XX:NewSize=256m
-XX:MaxNewSize=256m -XX:SurvivorRatio=6 -XX:+UseConcMarkSweepGC
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+DisableExplicitGC
-Xloggc:logs/gc.log -Denv=beesptesxapp14 -Denvironment=etestqa
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Dinstance=homepage_beesptesxapp14
-javaagent:/opt/shared/applications/homepage/lib/aspectjweaver-1.5.3.jar
We did take thread dumps while performing the test, and found nothing
related to application bottlenecks.

Can I get some pointers on anything to be tuned in the tomcat to reduce the
cpu utilization.

Thanks.
-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Question on Performance Tuning

2008-11-18 Thread Vasanth Kumar ravi
Thanks Chuck..
One question thou..

in the JAVA_OPTS do we have to specify -server cos it runs as client by
default.
Will it bring any change to performance ?



On Wed, Nov 19, 2008 at 12:27 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Vasanth Kumar ravi [mailto:[EMAIL PROTECTED]
  Subject: Question on Performance Tuning
 
  We did take thread dumps while performing the test, and
  found nothing related to application bottlenecks.

 Thread dumps are appropriate for diagnosing hangs, but they're not terribly
 useful for analyzing CPU usage.  You'd be better off running a profiler to
 see where time is being spent.  Even the JVM's built-in hprof running in
 sample mode should give you a pretty good idea of where the cycles are going
 (or use JVisualVM).

  Can I get some pointers on anything to be tuned in
  the tomcat to reduce the cpu utilization.

 First, find out what's really using the CPU before fiddling with anything.
  Tweaking Tomcat is not likely to change much assuming the thread pool and
 heap are adequate for your load.

 You've specified several GC options that may or may not be appropriate.
  Unless you've proven that changing NewRatio, NewSize, MaxNewSize, and
 SurvivorRatio actually helps your throughput, you're likely better off
 leaving them alone.  128M MaxPermSize may be too small if you have a lot of
 classes in your webapps.  Enabling concurrent GC produces more regular
 response times, but will actually *reduce* throughput in most cases.

 These might help slightly:
 * Remove AspectJ.
 * Turn off PrintGCDetails.
 * Remove unused webapps.
 * Precompile JSPs.
 * Turn off auto-deployment.
 * Turn off monitored resources.
 * Set the parameters for the JSP servlet (in conf/web.xml) for production.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Issue in connecting to tomcat via Apache

2008-08-31 Thread Vasanth Kumar ravi
Thanks Rainer.


On Fri, Aug 29, 2008 at 6:16 PM, Rainer Jung [EMAIL PROTECTED]wrote:

 Vasanth Kumar ravi schrieb:
  Rainer,
  I was able to resolve the issue...and the root cause was simple...
  it was my mistake...
  in the conf file I had mentioned /examples/* worker1
  I was trying to access the link as http://localhost/examples which is
  supposed to be http://localhost/examples/
  Cos of the / , I was not able to access the page, now everythin works
 fine
  
  Thanks for your help guys...though it appears silly...

 Fine. There is also a shortcut

 JkMount /something|/* myworker

 is exactly equivalent to the two rules

 JkMount /something/* myworker
 JkMount /something myworker

 Some /something will be forwarded as well as
 /something/and/somthing/else, but not /somethingelse.

 Technically JkMount a|b is equivalent to JkMount a and JkMount ab.

 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]




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Issue in connecting to tomcat via Apache

2008-08-29 Thread Vasanth Kumar ravi
Rainer,
I was able to resolve the issue...and the root cause was simple...
it was my mistake...
in the conf file I had mentioned /examples/* worker1
I was trying to access the link as http://localhost/examples which is
supposed to be http://localhost/examples/
Cos of the / , I was not able to access the page, now everythin works fine

Thanks for your help guys...though it appears silly...

Thanks Again.

On Fri, Aug 29, 2008 at 4:21 PM, Rainer Jung [EMAIL PROTECTED]wrote:

 Without any JkMount nothing will be sent to Tomcat. You need to keep e.g.

 JkMount  /examples/* worker1

 in you configuration. If you are using a virtual host in Apache, the
 JkMount must be inside the virtual host.

 Your mod_jk log file indicates, that during that test you didn't have
 any JkMount active, right? Retry with activa eJkMount and resend the log.

 Regards,

 Rainer

 Vasanth Kumar ravi schrieb:
  Hi,
  I am using the mod_jk to connect the apache webserver and the tomcat
 server.
  Though I am able to access them individually, when I try to access the
  tomcat via the apache webserver, it fails.
 
  I used the examples given the apache site to configure the
  workers.properties and the httpd.conf files.
 
  Apache :2.2.8
  Tomcat :6.0.16
  jdk :1.5.014 from Sun
  OS : Suse Linux..
 
  --
  RegardsThanks,
  Vasanth Kumar Ravi

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




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Issue in connecting to tomcat via Apache

2008-08-28 Thread Vasanth Kumar ravi
Hi Larry,
Thanks for the headsup.
Well I tried using the commented line earlier but it failed.
So I tried again by commenting out the JMount parameter.

I was trying to access the URL : http://localhost/examples with a JKMount
details as follows..

JkMount  /examples/* worker1.

It did not redirect the request from httpd to the tomcat.

So I commented the line JkMount and tried accessing the url, it still
failed...

Thanks

On Fri, Aug 29, 2008 at 9:34 AM, Larry J Prikockis [EMAIL PROTECTED]wrote:

 You don't specify exactly what you mean by it fails, but assuming you're
 saying that requests to Apache aren't getting passed along to Tomcat, your
 answer is right here:
 (from httpd.conf)

 # Send everything for context /examples to worker named worker1 (ajp13)
 #JkMount  /examples/* worker1

 if you want everything to go to Tomcat, add a line like:

 JkMount  /   worker1

 and you're all set.

 If you want just a certain portion of the url namespace to get passed along
 to Tomcat, you could use some thing like the commented out example.  In that
 case:  http://yourserver/index.html would be served by Apache httpd, but
 http://yourserver/examples/someexample.jsp would be served by Tomcat.


 Vasanth Kumar ravi wrote:

 Hi,
 I am using the mod_jk to connect the apache webserver and the tomcat
 server.
 Though I am able to access them individually, when I try to access the
 tomcat via the apache webserver, it fails.

 I used the examples given the apache site to configure the
 workers.properties and the httpd.conf files.

 Apache :2.2.8
 Tomcat :6.0.16
 jdk :1.5.014 from Sun
 OS : Suse Linux..

 --
 RegardsThanks,
 Vasanth Kumar Ravi
 

 -
 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]




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Issue in connecting to tomcat via Apache

2008-08-28 Thread Vasanth Kumar ravi
Martin,
I m trying to access the folder /examples on the localhost which is actualy
hosted in the TOMCAT.

http://localhost/examples .

The tomcat is running on port 8080 and the httpd is running on 8000.
When I access the same folder using the port like
http://localhost:8080/examples is successful.

I tried the two options on worker properties like

JkMount  /examples/* worker1
JkMount  /   worker1

But both of them did not fwd the request to tomcat via the httpd.
There are no pointers in the log files of jk/httpd/tomcat etc..

Thanks.
Thanks.
On Fri, Aug 29, 2008 at 10:01 AM, Martin Gainty [EMAIL PROTECTED] wrote:


 dont forget jsp mapping in httpd.conf
 JkMount /*.jsp worker1

 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.


  Date: Thu, 28 Aug 2008 21:34:07 -0400
  From: [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Subject: Re: Issue in connecting to tomcat via Apache
 
  You don't specify exactly what you mean by it fails, but assuming
  you're saying that requests to Apache aren't getting passed along to
  Tomcat, your answer is right here:
  (from httpd.conf)
 
  # Send everything for context /examples to worker named worker1 (ajp13)
  #JkMount  /examples/* worker1
 
  if you want everything to go to Tomcat, add a line like:
 
  JkMount  /   worker1
 
  and you're all set.
 
  If you want just a certain portion of the url namespace to get passed
  along to Tomcat, you could use some thing like the commented out
  example.  In that case:  http://yourserver/index.html would be served by
  Apache httpd, but http://yourserver/examples/someexample.jsp would be
  served by Tomcat.
 
 
  Vasanth Kumar ravi wrote:
   Hi,
   I am using the mod_jk to connect the apache webserver and the tomcat
   server.
   Though I am able to access them individually, when I try to access the
   tomcat via the apache webserver, it fails.
  
   I used the examples given the apache site to configure the
   workers.properties and the httpd.conf files.
  
   Apache :2.2.8
   Tomcat :6.0.16
   jdk :1.5.014 from Sun
   OS : Suse Linux..
  
   --
   RegardsThanks,
   Vasanth Kumar Ravi
  
 
  
   -
   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]
 

 _
 See what people are saying about Windows Live.  Check out featured posts.
 http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008




-- 
RegardsThanks,
Vasanth Kumar Ravi


Re: Issue in connecting to tomcat via Apache

2008-08-28 Thread Vasanth Kumar ravi
All,
A brief on wat i did.

1. Downloaded the httpd 2.2.8 and tomcat 6.0.16 versions.
2. Httpd installation
 ./configure --with-included-apr --prefix=install directory
 Listening on port 8000
3. Tomcat installation
Modified the catalina.sh file to point to the tomcat home/jdk home
STarted and listening on 8080
4.mod_jk installation
Tried the build and install method using the source code file.
Also the binary file downloaded from the apache site was copied to
/modules dir of the httpd.
jk logs doesnot show any error , while starting the httpd process.
As wel the httpd and tomcat doesnt show any errors.

On Fri, Aug 29, 2008 at 10:07 AM, Vasanth Kumar ravi
[EMAIL PROTECTED]wrote:

 Martin,
 I m trying to access the folder /examples on the localhost which is actualy
 hosted in the TOMCAT.

 http://localhost/examples .

 The tomcat is running on port 8080 and the httpd is running on 8000.
 When I access the same folder using the port like
 http://localhost:8080/examples is successful.

 I tried the two options on worker properties like

 JkMount  /examples/* worker1
 JkMount  /   worker1

 But both of them did not fwd the request to tomcat via the httpd.
 There are no pointers in the log files of jk/httpd/tomcat etc..

 Thanks.
 Thanks.

 On Fri, Aug 29, 2008 at 10:01 AM, Martin Gainty [EMAIL PROTECTED]wrote:


 dont forget jsp mapping in httpd.conf
 JkMount /*.jsp worker1

 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.


  Date: Thu, 28 Aug 2008 21:34:07 -0400
  From: [EMAIL PROTECTED]
  To: users@tomcat.apache.org
  Subject: Re: Issue in connecting to tomcat via Apache
 
  You don't specify exactly what you mean by it fails, but assuming
  you're saying that requests to Apache aren't getting passed along to
  Tomcat, your answer is right here:
  (from httpd.conf)
 
  # Send everything for context /examples to worker named worker1 (ajp13)
  #JkMount  /examples/* worker1
 
  if you want everything to go to Tomcat, add a line like:
 
  JkMount  /   worker1
 
  and you're all set.
 
  If you want just a certain portion of the url namespace to get passed
  along to Tomcat, you could use some thing like the commented out
  example.  In that case:  http://yourserver/index.html would be served
 by
  Apache httpd, but http://yourserver/examples/someexample.jsp would be
  served by Tomcat.
 
 
  Vasanth Kumar ravi wrote:
   Hi,
   I am using the mod_jk to connect the apache webserver and the tomcat
   server.
   Though I am able to access them individually, when I try to access the
   tomcat via the apache webserver, it fails.
  
   I used the examples given the apache site to configure the
   workers.properties and the httpd.conf files.
  
   Apache :2.2.8
   Tomcat :6.0.16
   jdk :1.5.014 from Sun
   OS : Suse Linux..
  
   --
   RegardsThanks,
   Vasanth Kumar Ravi
  
 
  
   -
   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]
 

 _
 See what people are saying about Windows Live.  Check out featured posts.
 http://www.windowslive.com/connect?ocid=TXT_TAGLM_WL_connect2_082008




 --
 RegardsThanks,
 Vasanth Kumar Ravi




-- 
RegardsThanks,
Vasanth Kumar Ravi


IIS JK connector problem

2007-04-04 Thread Vasanth

Hi,

We are trying to migrate a running tomcat/JK/IIS setup from win 2000/IIS 5.0
to win 2003/IIS 6.0. The struts application is hosted using two tomcat
instances and we use JK connectors as load balancer for these two servers.
We have configured the IIS with a 'jakarta' virtual directory.The setup is
working fine in 2000/IIS 5.0 setup but not in the 2003/IIS 6.0. We have
copied the ISAPI_REDIRECT.DLL frile from the 2000 box to 2003 box (we did
not use any binary installation) and in the IIS the status for the jakarta
shows as loaded with a green uparrow. But when we try to browse the site we
get '404- File or directory not found error'. I've listed the config files
below

1.isapi_redirect.properties
# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=F:\tomcat\JakartaIsapiRedirector_PF\log\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=info

# Full path to the workers.properties file
worker_file=F:\tomcat\JakartaIsapiRedirector_PF\conf\workers.properties.minimal

# Full path to the uriworkermap.properties file
worker_mount_file=F:\tomcat\JakartaIsapiRedirector_PF\conf\uriworkermap.properties


2.uriworkermap.properties

# uriworkermap.properties - IIS
#
# This file provides sample mappings for example ajp13w
# worker defined in workermap.properties.minimal
# The general sytax for this file is:
# [URL]=[Worker name]

/*=loadbalancer

# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)

##!/servlet-examples/*.jpeg=loadbalancer

3.workers.properties.minimal

ps=/

worker.list=loadbalancer

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13wpf, ajp13wpf2

worker.ajp13wpf.port=8019
worker.ajp13wpf.host=localhost
worker.ajp13wpf.type=ajp13
worker.ajp13wpf.lbfactor=1

worker.ajp13wpf2.port=8029
worker.ajp13wpf2.host=localhost
worker.ajp13wpf2.type=ajp13
worker.ajp13wpf2.lbfactor=1
# Disable worker2 for all requests except failover
#worker.worker2.disabled=True

4.server.xml(instance-1)--

Server port=8015 shutdown=SHUTDOWN
 GlobalNamingResources
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources

 Service name=Catalina
   Connector port=8090
  maxThreads=550 minSpareThreads=50 maxSpareThreads=100
  enableLookups=false acceptCount=50
  connectionTimeout=2 disableUploadTimeout=true /
  Connector port=8019
  enableLookups=false protocol=AJP/1.3 /
   Engine name=Catalina defaultHost=appname.domain.net
jvmRoute=ajp13wpf
 !-- Valve className=org.apache.catalina.valves.RequestDumperValve/--
 !--Logger className=org.apache.catalina.logger.FileLogger /--
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/
 Host name=appname.domain.net appBase=F:/tomcat/deploy/hosts/ins1/
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=appname.domain.net_access_log.
suffix=.txt
pattern=common resolveHosts=false/


   !--Valve className=
org.apache.catalina.valves.ByteBufferAccessLogValve
directory=logs  prefix=appname.domain.net_access_log .
suffix=.txt
pattern=common resolveHosts=false/
   --
 /Host

 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster 
managerClassName=
org.apache.catalina.cluster.session.DeltaManager
expireSessionsOnShutdown=false
useDirtyFlag=true
notifyListenersOnReplication=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr= 228.0.0.4
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver
   className=org.apache.catalina.cluster
.tcp.ReplicationListener
   tcpListenAddress=auto
   tcpListenPort=4011
   tcpSelectorTimeout=100
   tcpThreadCount=6/

   Sender
   className=
org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=pooled
   ackTimeout=15000/

   Valve className=
org.apache.catalina.cluster.tcp.ReplicationValve
  filter=.*\.gif;.*\.js;.*\.jpg;;.*\.txt;/

   /Cluster

   /Engine
 /Service
/Server

The server.xml for the other instance is 

Setting Up IIS,JK connector and tomcat

2007-04-03 Thread Vasanth

Hi,

We are trying to migrate a running tomcat/JK/IIS setup from win 2000/IIS 5.0
to win 2003/IIS 6.0. The struts application is hosted using two tomcat
instances and we use JK connectors as load balancer for these two servers.
We have configured the IIS with a 'jakarta' virtual directory.The setup is
working fine in 2000/IIS 5.0 setup but not in the 2003/IIS 6.0. We have
copied the ISAPI_REDIRECT.DLL frile from the 2000 box to 2003 box (we did
not use any binary installation) and in the IIS the status for the jakarta
shows as loaded with a green uparrow. But when we try to browse the site we
get '404- File or directory not found error'. I've listed the config files
below

1.isapi_redirect.properties
# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/jakarta/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=F:\tomcat\JakartaIsapiRedirector_PF\log\isapi_redirect.log

# Log level (debug, info, warn, error or trace)
log_level=info

# Full path to the workers.properties file
worker_file=F:\tomcat\JakartaIsapiRedirector_PF\conf\workers.properties.minimal

# Full path to the uriworkermap.properties file
worker_mount_file=F:\tomcat\JakartaIsapiRedirector_PF\conf\uriworkermap.properties


2.uriworkermap.properties

# uriworkermap.properties - IIS
#
# This file provides sample mappings for example ajp13w
# worker defined in workermap.properties.minimal
# The general sytax for this file is:
# [URL]=[Worker name]

/*=loadbalancer

# Optionally filter out all .jpeg files inside that context
# For no mapping the url has to start with exclamation (!)

##!/servlet-examples/*.jpeg=loadbalancer

3.workers.properties.minimal

ps=/

worker.list=loadbalancer

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13wpf, ajp13wpf2

worker.ajp13wpf.port=8019
worker.ajp13wpf.host=localhost
worker.ajp13wpf.type=ajp13
worker.ajp13wpf.lbfactor=1

worker.ajp13wpf2.port=8029
worker.ajp13wpf2.host=localhost
worker.ajp13wpf2.type=ajp13
worker.ajp13wpf2.lbfactor=1
# Disable worker2 for all requests except failover
#worker.worker2.disabled=True

4.server.xml(instance-1)--

Server port=8015 shutdown=SHUTDOWN
 GlobalNamingResources
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources

 Service name=Catalina
   Connector port=8090
  maxThreads=550 minSpareThreads=50 maxSpareThreads=100
  enableLookups=false acceptCount=50
  connectionTimeout=2 disableUploadTimeout=true /
  Connector port=8019
  enableLookups=false protocol=AJP/1.3 /
   Engine name=Catalina defaultHost=appname.domain.net
jvmRoute=ajp13wpf
 !-- Valve className=org.apache.catalina.valves.RequestDumperValve/--
 !--Logger className=org.apache.catalina.logger.FileLogger /--
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/
 Host name=appname.domain.net appBase=F:/tomcat/deploy/hosts/ins1/
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=appname.domain.net_access_log.
suffix=.txt
pattern=common resolveHosts=false/


   !--Valve className=
org.apache.catalina.valves.ByteBufferAccessLogValve
directory=logs  prefix=appname.domain.net_access_log .
suffix=.txt
pattern=common resolveHosts=false/
   --
 /Host

 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster 
managerClassName=
org.apache.catalina.cluster.session.DeltaManager
expireSessionsOnShutdown=false
useDirtyFlag=true
notifyListenersOnReplication=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr= 228.0.0.4
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver
   className=
org.apache.catalina.cluster.tcp.ReplicationListener
   tcpListenAddress=auto
   tcpListenPort=4011
   tcpSelectorTimeout=100
   tcpThreadCount=6/

   Sender
   className=
org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=pooled
   ackTimeout=15000/

   Valve className=
org.apache.catalina.cluster.tcp.ReplicationValve
  filter=.*\.gif;.*\.js;.*\.jpg;;.*\.txt;/

   /Cluster

   /Engine
 /Service
/Server

The server.xml for the other instance is 

Restart Tomcat Virtual Host - HOWTO

2006-05-06 Thread Vasanth Kamatgi
Hi,
I have used tomcat to host a couple of my web sites, which are continuously
evolving.  I have configured them both as virtual hosts in tomcat and I am
able
to access them independently without any problem.  The problem is... when I
am
updating some class files, jars in one of the websites, I would require to
restart the virtual host for the changes to take effect.  But this will
cause
my other website also to go down.  I was wondering if there is a way to
restart
just one virtual host of a tomcat instance rather than the whole tomcat
without
effecting the other virtual hosts on that tomcat.  I have searched through
tomcat documentation, and also google, but there is no mention about this.
I
would appreciate if somebody could point me to a resource, giving info on
this
problem.

Note: Individually reloading a web application is not a possible solution,
because of memory-related issues.  I am looking at clean restart of a tomcat
virtual host.

regards,
Vasanth



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]