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

2014-02-10 Thread Cédric Couralet
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 request ha

Re: AJP and attributes versus headers

2014-02-10 Thread Cédric Couralet
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 which the app uses S

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Kumar Muthuramalingam
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 getting any reply from the Query server for some seconds. Will the loa

AJP and attributes versus headers

2014-02-10 Thread 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 which the app uses Spring's RequestHeaderAuthenticationFilter to read.

Re: catalina.out growing very fast

2014-02-10 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pooja, On 2/10/14, 2:10 PM, Pooja Swamy wrote: Here is a sample of how the messages look - INFO [Fri Feb 9 04:48:21 GMT 2014:] [http-bio-8080-exec-141] [] Log : Fri Feb 09 04:48:21 GMT 2014 TestApp: http://myTestApp

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

2014-02-10 Thread 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 request has been completed. Many will tell you this will slow down your

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Daniel Mikusa
On Feb 10, 2014, at 4:07 PM, Kumar Muthuramalingam wrote: > Yes its the load balancer. and recently I found in the log that there was a > memory leak exception while the tomcat server was restarted.The session > increase problem started from this particular date . Could this be a cause > for the

Re: Tomcat embedded deprecated

2014-02-10 Thread Tommy Pham
Thanks Gary and Violeta for the responses. Mark's presentation was what I'm looking for. Kind regards, Tommy On Mon, Feb 10, 2014 at 9:40 AM, Violeta Georgieva wrote: > Hi, > > > 2014-02-10 Tommy Pham : > > > > Hi folks, > > > > I'm seeing: > > > > @Deprecated < > > http://docs.oracle.com/java

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Kumar Muthuramalingam
Yes its the load balancer. and recently I found in the log that there was a memory leak exception while the tomcat server was restarted.The session increase problem started from this particular date . Could this be a cause for the tomcat to hang up and DOS occurred? One more question. I see this m

Re: Tomcat classloader memory leak when an object is stored into session

2014-02-10 Thread Michal Botka
On 07/02/2014, Mark Thomas wrote: > There is no leak. ... Hello Mark, thank you very mych for help and your great presentation. You were absolutely right, there was no memory leak :-) Obviously there was a different issue in my application causing the leak... I'm sorry for spamming. Best regards

Re: catalina.out growing very fast

2014-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Pooja, On 2/10/14, 2:10 PM, Pooja Swamy wrote: > Here is a sample of how the messages look - > > INFO [Fri Feb 9 04:48:21 GMT 2014:] [http-bio-8080-exec-141] [] > Log : Fri Feb 09 04:48:21 GMT 2014 TestApp: > http://myTestApp-all.chatter.test.co

Re: Another instance of sessions not expiring - background thread is gone

2014-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 2/10/14, 2:02 PM, Mark Thomas wrote: > On 10/02/2014 18:51, Christopher Schultz wrote: >> Perhaps the background thread should catch and ignore >> OutOfMemory errors? > > Once you have an OOME, all bets are off. You'd be better off > catch

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Daniel Mikusa
On Feb 10, 2014, at 1:59 PM, Kumar Muthuramalingam wrote: > Thanks for the reply. I accept this remedy will clear the issue. But my > question is how to verify the root cause of this DOS attack that occurred > earlier? As previously directed, look at your access logs. That should show you who i

Re: catalina.out growing very fast

2014-02-10 Thread Pooja Swamy
Here is a sample of how the messages look - INFO [Fri Feb 9 04:48:21 GMT 2014:] [http-bio-8080-exec-141] [] Log : Fri Feb 09 04:48:21 GMT 2014 TestApp: http://myTestApp-all.chatter.test.com:8301/ukp/MyServlet--USER->webuser I have the same message getting written 8-10 times every second. Please

Re: Another instance of sessions not expiring - background thread is gone

2014-02-10 Thread Mark Thomas
On 10/02/2014 18:51, Christopher Schultz wrote: > Perhaps the background thread should catch and ignore OutOfMemory > errors? Once you have an OOME, all bets are off. You'd be better off catching the OOME and calling System.exit(). Mark ---

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Kumar Muthuramalingam
Thanks for the reply. I accept this remedy will clear the issue. But my question is how to verify the root cause of this DOS attack that occurred earlier? What ever steps suggested above is to take a precaution or solve the issue. please help me. Thanks, Kumar. On Mon, Feb 10, 2014 at 12:06 PM,

Another instance of sessions not expiring - background thread is gone

2014-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, Over the past few weeks, I've seen a few threads about sessions appearing to live forever. I now have a Tomcat instance that is experiencing the same behavior. This is a development server, where we expect no more than maybe 10 sessions to be

Servlet RequestDisplatcher.forward

2014-02-10 Thread Campbell, Lance
Java 7 & Tomcat 7 In a servlet I am doing a RequestDispatcher.forward to another servlet. In Tomcat 7 I use AJP connectors. Does this create a new Tomcat AJP connection when it does the forward or use the same connection? Thanks, Lance Campbell Software Arch

Re: Tomcat embedded deprecated

2014-02-10 Thread Gary Briggs
On Mon, Feb 10, 2014 at 09:20:14AM -0800, Tommy Pham wrote: > Hi folks, > > I'm seeing: > > @Deprecated > > public class Embedded > > at doc site [1] which I presume that the embedded is removed in 8.x? Could

Re: Tomcat embedded deprecated

2014-02-10 Thread Violeta Georgieva
Hi, 2014-02-10 Tommy Pham : > > Hi folks, > > I'm seeing: > > @Deprecated < http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true > > public class Embedded > > at doc site [1] which I presume that the embedded is removed in 8.x? Could > someone please explain why it

Re: catalina.out growing very fast

2014-02-10 Thread Pooja Swamy
Thank so much for your detailed answers. Really appreciate your help. The changes you recommend here - Do I need to make these changes in logging.properties in conf folder, or log4j.xml? On Mon, Feb 10, 2014 at 4:37 AM, Konstantin Kolinko wrote: > 2014-02-10 5:53 GMT+04:00 Pooja Swamy : > > Hi,

Tomcat embedded deprecated

2014-02-10 Thread Tommy Pham
Hi folks, I'm seeing: @Deprecated public class Embedded at doc site [1] which I presume that the embedded is removed in 8.x? Could someone please explain why it's deprecated or point me in the right direction

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Daniel Mikusa
On Feb 10, 2014, at 11:56 AM, Kumar Muthuramalingam wrote: > Thanks for your reply. I have 3 applications running under the tomcat and > only one application got a ping.jsp file others don't. And also I could see > from the access logs that only the application that has got ping.jsp file > was p

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Kumar Muthuramalingam
Thanks for your reply. I have 3 applications running under the tomcat and only one application got a ping.jsp file others don't. And also I could see from the access logs that only the application that has got ping.jsp file was pinged others were not. And the sessions are high only for this particu

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

2014-02-10 Thread Jesse Barnum
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 request has > been completed. Many will tell you this will slow down your system since >

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kumar, On 2/8/14, 7:08 PM, Kumar Muthuramalingam wrote: > I 'm using tomcat version 6 and 7. One day there was a sudden > increase in number of sessions in both tomcats. And all the > sessions had no username, same lastaccessed time, same created ti

Re: Question

2014-02-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 2/10/14, 8:47 AM, André Warnier wrote: > Senapati, Naresh (GE Healthcare, consultant) wrote: >> Hi, >> >> We have Apache Tomcat 6.0.32 installed for our Trackwise >> application. It is accessed by web through a iplanet web server >> which

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

2014-02-10 Thread Filip Hanik
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 request has been completed. Many will tell you this will slow down your system since new connections have to be created for each request. Usually,

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

2014-02-10 Thread Jesse Barnum
On Feb 7, 2014, at 1:11 PM, Mark Thomas wrote: >> >> This is a single core box (sorry, should have mentioned that in the >> configuration details). Would you still expect increasing the worker thread >> count to help? > > Yes. I'd return it to the default of 200 and let Tomcat manage the pool

Re: Tomcat 8 ClassLoader

2014-02-10 Thread Thomas Scheffler
Am 10.02.2014 14:43, schrieb Mark Thomas: On 10/02/2014 12:59, Thomas Scheffler wrote: Am 10.02.2014 12:58, schrieb Mark Thomas: On 10/02/2014 10:58, Thomas Scheffler wrote: Hi, I noticed an incompatibility after testing my web application with Tomcat 8 RC5 and Tomcat 8.0.1 I allow users of

Re: Tomcat Issue with iplanet 7.0.15

2014-02-10 Thread André Warnier
Senapati, Naresh (GE Healthcare, consultant) wrote: Hi, Summary of information provided : Server A Server B Hardware : SOLARIS ZONEHardware : PROLIANT DL380 G7 OS: Solaris 10 OS: Re

Tomcat Issue with iplanet 7.0.15

2014-02-10 Thread Senapati, Naresh (GE Healthcare, consultant)
Hi, Summary of information provided : Server A Server B Hardware : SOLARIS ZONEHardware : PROLIANT DL380 G7 OS: Solaris 10 OS: Red Hat Linux 5.6 JVM : 6.0.25

Re: Question

2014-02-10 Thread André Warnier
Senapati, Naresh (GE Healthcare, consultant) wrote: Hi, We have Apache Tomcat 6.0.32 installed for our Trackwise application. It is accessed by web through a iplanet web server which redirects to the tomcat. When the webserver was in Solaris the performance was good. We have migrated the webse

Re: Tomcat 8 ClassLoader

2014-02-10 Thread Mark Thomas
On 10/02/2014 12:59, Thomas Scheffler wrote: > Am 10.02.2014 12:58, schrieb Mark Thomas: >> On 10/02/2014 10:58, Thomas Scheffler wrote: >>> Hi, >>> >>> I noticed an incompatibility after testing my web application with >>> Tomcat 8 RC5 and Tomcat 8.0.1 >>> >>> I allow users of my web application t

Question

2014-02-10 Thread Senapati, Naresh (GE Healthcare, consultant)
Hi, We have Apache Tomcat 6.0.32 installed for our Trackwise application. It is accessed by web through a iplanet web server which redirects to the tomcat. When the webserver was in Solaris the performance was good. We have migrated the webserver to Linux and the performance has gone down. We w

Re: Tomcat 8 ClassLoader

2014-02-10 Thread Thomas Scheffler
Am 10.02.2014 12:58, schrieb Mark Thomas: On 10/02/2014 10:58, Thomas Scheffler wrote: Hi, I noticed an incompatibility after testing my web application with Tomcat 8 RC5 and Tomcat 8.0.1 I allow users of my web application to configure the web application with external configuration. This is

Re: catalina.out growing very fast

2014-02-10 Thread Konstantin Kolinko
2014-02-10 5:53 GMT+04:00 Pooja Swamy : > Hi, > > I am on a bridge call in the middle of a critical Production issue, and I > need some urgent help. I am using Tomcat 7.0.x, and my catalina.out file is > growing very fast. It is currently at 50 GB. I am frequently rotating the > file, but no luck.

Re: sudden increase in tomcat sessions..?

2014-02-10 Thread Daniel Mikusa
On Feb 9, 2014, at 4:27 AM, Leon Rosenberg wrote: > Hello, > > I think some things are mixed up here. Since you are behind a load > balancer, its unlikely that you experience ping (icmp) DoS, at least that > it goes through till your server. > First, setup access logs in server.xml > > > > d

Re: Tomcat 8 ClassLoader

2014-02-10 Thread Mark Thomas
On 10/02/2014 10:58, Thomas Scheffler wrote: > Hi, > > I noticed an incompatibility after testing my web application with > Tomcat 8 RC5 and Tomcat 8.0.1 > > I allow users of my web application to configure the web application > with external configuration. This is also where the user is allowed

Re: Tomcat 7 and manager issues on VirtualHost environnement

2014-02-10 Thread Gaël THEROND
​Thanks a lot for your help guys, And yeah, I was a little bit disturbed by your answer about overlaping of the two appBase and start asking me if I was drunk when I publish my configuration ^^ So, basically, I've found my problem, which is a CSRF errors related to the fact that I'm managing and

Tomcat 8 ClassLoader

2014-02-10 Thread Thomas Scheffler
Hi, I noticed an incompatibility after testing my web application with Tomcat 8 RC5 and Tomcat 8.0.1 I allow users of my web application to configure the web application with external configuration. This is also where the user is allowed to specify additional libraries to load into the web a

Re: catalina.out growing very fast

2014-02-10 Thread Mark Thomas
On 10/02/2014 01:53, Pooja Swamy wrote: > Hi, > > I am on a bridge call in the middle of a critical Production issue, and I > need some urgent help. I am using Tomcat 7.0.x, and my catalina.out file is > growing very fast. It is currently at 50 GB. I am frequently rotating the > file, but no luck.