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 wrote: > Kumar Muthuramalingam wrote: > >> Thanks for all. Finally found the issue. Think it should be a network >> delay. The lo

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 > >auth="Container" description="User database that can b

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 wrote: > >> It looks that way. But this mod_proxy parameter (disablereuse, >> lowercase - I don't know if it matters) is in a section >> "BalancerMember p

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 it

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

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/cla

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

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/ > QueryUpda

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 s

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=0&sid=0.40406329182209005 HTTP/1.1" 200 151 [11/Feb/2014:12:50:24 -0500] "GET /storyboard/stat/ QueryUpd

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 c

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: 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 w

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 wrote: > O

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 suc

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 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, or if > it

Re: sudden increase in tomcat sessions..?

2014-02-11 Thread Daniel Mikusa
On Feb 10, 2014, at 7:22 PM, Kumar Muthuramalingam 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 > tomcat is not ge

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 : Cédric Couralet wrote: 2014-02-11 1:20 GMT+01:00 Elliot Kendall : 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

Re: AJP and attributes versus headers

2014-02-11 Thread Cédric Couralet
2014-02-11 10:41 GMT+01:00 André Warnier : > Cédric Couralet wrote: > >> 2014-02-11 1:20 GMT+01:00 Elliot Kendall : >> >> 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

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 : Jesse Barnum wrote: On Feb 10, 2014, at 11:14 AM, Filip Hanik wrote: Jesse, mostly idle users and you wish to conserve resources. Use the JkOptions +DisableReuse on the mod_jk module. This will close connections after the r

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 : 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 through to Tomcat and wh