Re: AJP and attributes versus headers

2014-02-11 Thread André Warnier
Cédric Couralet wrote: 2014-02-11 1:20 GMT+01:00 Elliot Kendall elliot.kend...@ucsf.edu: We have a Java application running on Tomcat with an Apache HTTP proxy in front. Our SSO system (Shibboleth) runs as an Apache module and sets an HTTP header with the logged-in username, which gets passed

Re: What is the best connector configuration for thousands of mostly idle users?

2014-02-11 Thread André Warnier
Cédric Couralet wrote: 2014-02-10 22:34 GMT+01:00 André Warnier a...@ice-sa.com: Jesse Barnum wrote: On Feb 10, 2014, at 11:14 AM, Filip Hanik fi...@hanik.com wrote: Jesse, mostly idle users and you wish to conserve resources. Use the JkOptions +DisableReuse on the mod_jk module. This

Re: AJP and attributes versus headers

2014-02-11 Thread Cédric Couralet
2014-02-11 10:41 GMT+01:00 André Warnier a...@ice-sa.com: Cédric Couralet wrote: 2014-02-11 1:20 GMT+01:00 Elliot Kendall elliot.kend...@ucsf.edu: We have a Java application running on Tomcat with an Apache HTTP proxy in front. Our SSO system (Shibboleth) runs as an Apache module and sets

Re: AJP and attributes versus headers

2014-02-11 Thread André Warnier
Cédric Couralet wrote: 2014-02-11 10:41 GMT+01:00 André Warnier a...@ice-sa.com: Cédric Couralet wrote: 2014-02-11 1:20 GMT+01:00 Elliot Kendall elliot.kend...@ucsf.edu: We have a Java application running on Tomcat with an Apache HTTP proxy in front. Our SSO system (Shibboleth) runs as an

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Daniel Mikusa
On Feb 10, 2014, at 7:22 PM, Kumar Muthuramalingam kumarkm...@gmail.com wrote: Before that can you tell me one thing please. Suppose if a page request (eg. /UpdateQuery.JSP) is coming from a load balancer to tomcat and the UpdateQuery.JSP is connected to some third party server. Assume if the

Re: What is the best connector configuration for thousands of mostly idle users?

2014-02-11 Thread Jesse Barnum
On Feb 11, 2014, at 4:56 AM, André Warnier a...@ice-sa.com wrote: It looks that way. But this mod_proxy parameter (disablereuse, lowercase - I don't know if it matters) is in a section BalancerMember parameters, and it is not very clear if that applies even if you are not using a balancer,

How to replace VirtualWebappLoader in Tomcat 8

2014-02-11 Thread Renaud Pelissier
Hi there ! I saw a post on this already but it doesn't solve my problem. I have got two directories I want to map to one single web application using the Context file $CATALINA_HOME/conf/Catalina/localhost/Test.xml. Test1.jsp is making use of Test1.class and Test2.class. With Tomcat 7 I was

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Kumar Muthuramalingam
what I mean is if I am supposed to get a response for that Update.jsp file and I didn't get it for a while. Will the load balancer will check for it connectivity? Is there any timeout set for load balancer to get response. Thanks, Kumar. On Tue, Feb 11, 2014 at 8:13 AM, Daniel Mikusa

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Leon Rosenberg
Hello Kumar, can't you just ask your Ops guys to get your the load balancer config? That would be much easier as guessing. Usually you can configure how many samples the load balancer must try to get and what is the timeout. For example if the setting is 3 with timeout of 15 seconds, 3 requests

RE: How to replace VirtualWebappLoader in Tomcat 8

2014-02-11 Thread Renaud Pelissier
Okay, I had it working finally by setting webAppMount to /WEB-INF/classes for every classes directory. So I understand the /WEB-INF/classes mount point is hard coded into the default Loader? Is it different to use /WEB-INF/lib? Regards, Renaud * Test.XML

Re: AJP and attributes versus headers

2014-02-11 Thread Elliot Kendall
You could try setting tomcatAuthentification=false on your AJP connector in server.xml. If Shibboleth put the value in REMOTE_USER as it should then tomcat should pick it up as the principal. Be aware that you should protect your ajp connector so that no other machine than your Apache can

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Kumar Muthuramalingam
Yes I can check those configurations. In the meanwhile I have another question. Please take a look at the log below. [11/Feb/2014:12:50:24 -0500] GET / storyboard /stat/ QueryUpdate.jsp?stats=0sid=0.40406329182209005 HTTP/1.1 200 151 [11/Feb/2014:12:50:24 -0500] GET /storyboard/stat/

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kumar, On 2/11/14, 11:56 AM, Kumar Muthuramalingam wrote: what I mean is if I am supposed to get a response for that Update.jsp file and I didn't get it for a while. Will the load balancer will check for it connectivity? Is there any timeout set

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kumar, On 2/11/14, 1:26 PM, Kumar Muthuramalingam wrote: Yes I can check those configurations. In the meanwhile I have another question. Please take a look at the log below. [11/Feb/2014:12:50:24 -0500] GET / storyboard /stat/

Re: AJP and attributes versus headers

2014-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Elliot, On 2/11/14, 12:41 PM, Elliot Kendall wrote: You could try setting tomcatAuthentification=false on your AJP connector in server.xml. If Shibboleth put the value in REMOTE_USER as it should then tomcat should pick it up as the principal.

Re: How to replace VirtualWebappLoader in Tomcat 8

2014-02-11 Thread Mark Thomas
On 11/02/2014 17:31, Renaud Pelissier wrote: Okay, I had it working finally by setting webAppMount to /WEB-INF/classes for every classes directory. So I understand the /WEB-INF/classes mount point is hard coded into the default Loader? Is it different to use /WEB-INF/lib? /WEB-INF/classes

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Kumar Muthuramalingam
Thanks for all. Finally found the issue. Think it should be a network delay. The load balancer was configured in such a way to send the ping requests for every 3 secs. But it didn't happened and it was irregular. And it sent all the delayed pings at a time. I think it should be the cause. Am I

Re: AJP and attributes versus headers

2014-02-11 Thread André Warnier
Elliot Kendall wrote: You could try setting tomcatAuthentification=false on your AJP connector in server.xml. If Shibboleth put the value in REMOTE_USER as it should then tomcat should pick it up as the principal. Be aware that you should protect your ajp connector so that no other machine than

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread André Warnier
Kumar Muthuramalingam wrote: Thanks for all. Finally found the issue. Think it should be a network delay. The load balancer was configured in such a way to send the ping requests for every 3 secs. But it didn't happened and it was irregular. And it sent all the delayed pings at a time. I think

Re: What is the best connector configuration for thousands of mostly idle users?

2014-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jesse, On 2/11/14, 8:24 AM, Jesse Barnum wrote: On Feb 11, 2014, at 4:56 AM, André Warnier a...@ice-sa.com wrote: It looks that way. But this mod_proxy parameter (disablereuse, lowercase - I don't know if it matters) is in a section

Re: UserDatabase resource into META-INF/context.xml

2014-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jose, On 2/6/14, 7:31 AM, Jose María Zaragoza wrote: Hello: I'm using Tomcat 6.0.24 I want to set a realm per only one application, so I define in its META-INF/context.xml ?xml version=1.0 encoding=UTF-8? Context Resource

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Kumar Muthuramalingam
I am sorry. I thought load balancer is something related to tomcat and asked so many questions. Really sorry for that. On Tue, Feb 11, 2014 at 3:30 PM, André Warnier a...@ice-sa.com wrote: Kumar Muthuramalingam wrote: Thanks for all. Finally found the issue. Think it should be a network