Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread Shariq
Hi, My requirement is to measure the request and response bandwidth of a webapp that's deployed in Tomcat. Basically capture each request and response bandwidth and store the statistics and do analytics on that data overtime. We've already written a custom Tomcat Valve to capture plenty of

Re: Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread André Warnier
Shariq wrote: Hi, My requirement is to measure the request and response bandwidth of a webapp that's deployed in Tomcat. Basically capture each request and response bandwidth and store the statistics and do analytics on that data overtime. Bandwith

Re: Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread Shariq
On Wed, Jul 17, 2013 at 5:49 PM, André Warnier a...@ice-sa.com wrote: Shariq wrote: Hi, My requirement is to measure the request and response bandwidth of a webapp that's deployed in Tomcat. Basically capture each request and response bandwidth and store the statistics and do analytics on

RE: [OT] Cannot cleanly undeploy a web application

2013-07-17 Thread Konstantin Preißer
Hi, From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT] Cannot cleanly undeploy a web application I believe that the underlying issue here is the difference in behaviour between Windows and Unix/Linux, with regard to a file opened by one process, when another process tries

Re: [OT] Cannot cleanly undeploy a web application

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 7/16/13 7:47 PM, Mark Eggers wrote: For a JAR file, I use the following code (don't shoot me - I'm an admin / architect, not a developer). This may be part of the problem. Don't feel bad: you just need a developer in this case to bail

How to use the Manager interface

2013-07-17 Thread Daniel Nazarkiewicz
Hi, I want to change the standard session manager. I added in context.xml the Manager className=packname.classname / In my netbeans ide 7, I created in source packages of my web application the java class. When i run my web application, tomcat told me it cannot find my manager. What is the

Re: Tomcat Concurrency

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 7/17/13 1:39 AM, vicky b wrote: Just out of curiosity can you please let me know if there are 10 clients who access 10 different browsers and make request at the same time what is the expected output If they really all make requests

Re: How to use the Manager interface

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 7/17/13 11:03 AM, Daniel Nazarkiewicz wrote: I want to change the standard session manager. I added in context.xml the Manager className=packname.classname / In my netbeans ide 7, I created in source packages of my web application

Re: Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shariq, On 7/17/13 8:47 AM, Shariq wrote: On Wed, Jul 17, 2013 at 5:49 PM, André Warnier a...@ice-sa.com wrote: Shariq wrote: Hi, My requirement is to measure the request and response bandwidth of a webapp that's deployed in Tomcat.

Re: Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread Shariq
Hi Christopher, On Wed, Jul 17, 2013 at 9:32 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shariq, On 7/17/13 8:47 AM, Shariq wrote: On Wed, Jul 17, 2013 at 5:49 PM, André Warnier a...@ice-sa.com wrote: Shariq wrote:

Re: Capture request/response bandwidth of webapp deployed in Tomcat

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Shariq, On 7/17/13 12:12 PM, Shariq wrote: Hi Christopher, On Wed, Jul 17, 2013 at 9:32 PM, Christopher Schultz ch...@christopherschultz.net wrote: Shariq, On 7/17/13 8:47 AM, Shariq wrote: On Wed, Jul 17, 2013 at 5:49 PM, André

Using addFilter and addServlet

2013-07-17 Thread Dave
I'm using Tomcat 7.0.42. Most examples of ServletContext.addFilter() and ServletContext.addServlet() show it being used from a contextInitialized() event handler, however, the Servlet 3.0 spec doesn't limit the use of addServlet/addFilter to contextInitialized() (unless it is in there

Re: Using addFilter and addServlet

2013-07-17 Thread Mark Thomas
On 17/07/2013 18:38, Dave wrote: I'm using Tomcat 7.0.42. Most examples of ServletContext.addFilter() and ServletContext.addServlet() show it being used from a contextInitialized() event handler, however, the Servlet 3.0 spec doesn't limit the use of addServlet/addFilter to

Re: Using addFilter and addServlet

2013-07-17 Thread Questiony McAskerton From Queryville
On Wed, 17 Jul 2013, Mark Thomas wrote: No, but not permitted by the spec. Mark Mark, Thank you very much for the quick response. Dave - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: Using addFilter and addServlet

2013-07-17 Thread Mark Thomas
On 17/07/2013 19:14, Questiony McAskerton From Queryville wrote: On Wed, 17 Jul 2013, Mark Thomas wrote: No, but not permitted by the spec. Mark Mark, Thank you very much for the quick response. No problem. The expectation of the EG (this was before I was an EG member but I've

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread Jerry Lampi
Good news. I previously reported that sendFile was not enabled. As stated below by folks more knowledgeable than I, sendFile is enabled by default. I added this line to my server.xml file Connector: useSendfile=false and now every page element loads very quickly. Problem solved. So it

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/17/13 3:06 PM, Jerry Lampi wrote: Good news. I previously reported that sendFile was not enabled. As stated below by folks more knowledgeable than I, sendFile is enabled by default. I added this line to my server.xml file

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread Jerry Lampi
On 7/17/2013 2:28 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/17/13 3:06 PM, Jerry Lampi wrote: Good news. I previously reported that sendFile was not enabled. As stated below by folks more knowledgeable than I, sendFile is enabled by default.

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread André Warnier
Jerry Lampi wrote: Good news. I previously reported that sendFile was not enabled. As stated below by folks more knowledgeable than I, sendFile is enabled by default. I added this line to my server.xml file Connector: useSendfile=false and now every page element loads very quickly. Problem

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread André Warnier
André Warnier wrote: Jerry Lampi wrote: Good news. I previously reported that sendFile was not enabled. As stated below by folks more knowledgeable than I, sendFile is enabled by default. I added this line to my server.xml file Connector: useSendfile=false and now every page element loads

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/17/13 3:30 PM, Jerry Lampi wrote: On 7/17/2013 2:28 PM, Christopher Schultz wrote: Jerry, On 7/17/13 3:06 PM, Jerry Lampi wrote: Good news. I previously reported that sendFile was not enabled. As stated below by folks more

How to disable session completely

2013-07-17 Thread Daniel NAZARKIEWICZ
Hi, What is the procedure to disable entirely the session (JSESSIONID) within tomcat 7 ? Thank you Daniel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

tomcat 7 maven plugin run on a installed tomcat not embedded

2013-07-17 Thread fachhoch
I am using tomcat7-maven-plugin, this is my configration till now I was just using tomcat7:deploy-onlythis deploys but any changes I make to the jsp pages, the changes are not picked up and I have to undeploy then deploy the whol war or chnage the jps in the tomcat deployment

Re:[OT] tomcat 7 maven plugin run on a installed tomcat not embedded

2013-07-17 Thread André Warnier
fachhoch wrote: I am using tomcat7-maven-plugin, this is my configration This list mostly strips attachments, so if you added your configuration as an attachment here, it's gone. Paste it in-line if it is necessary. I would also advise to write your messages using a decent client

Re: How to disable session completely

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 7/17/13 4:02 PM, Daniel NAZARKIEWICZ wrote: What is the procedure to disable entirely the session (JSESSIONID) within tomcat 7 ? Please don't hijack threads. If you would like to ask a new question, create a new message to the list

Disable the session in tomcat

2013-07-17 Thread Daniel NAZARKIEWICZ
What is the procedure to disable entirely the session (JSESSIONID) within tomcat 7 ? Thank you Daniel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Disable the session in tomcat

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, (Thanks for starting a new thread: it really helps the archives and threaded mailing-list readers). On 7/17/13 4:31 PM, Daniel NAZARKIEWICZ wrote: What is the procedure to disable entirely the session (JSESSIONID) within tomcat 7 ? Do

Re: Disable the session in tomcat

2013-07-17 Thread Daniel NAZARKIEWICZ
Yes, i want to prevent session from being created because the sessions are not needed in my specific case, so no session at all in the cookie neither in the URL. Is this possible ? Daniel Le 17/07/2013 22:59, Christopher Schultz a écrit : -BEGIN PGP SIGNED MESSAGE- Hash: SHA256

Re: Disable the session in tomcat

2013-07-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 7/17/13 5:04 PM, Daniel NAZARKIEWICZ wrote: Yes, i want to prevent session from being created because the sessions are not needed in my specific case, so no session at all in the cookie neither in the URL. Is this possible ? Yes.

Re: Using addFilter and addServlet

2013-07-17 Thread Dave
On Wed, 17 Jul 2013, Mark Thomas wrote: No problem. The expectation of the EG (this was before I was an EG member but I've chatted about this with Filip who was on the EG for Servlet 3.0) was that the adding was only for use during context start. There was some debate about adding during

Re: Disable the session in tomcat

2013-07-17 Thread Mark Thomas
On 17/07/2013 22:22, Christopher Schultz wrote: For example, if you don't explicitly state session=false in all of your JSPs, a session will be created by default. So, you'll need to edit all the JSPs you have that don't state session=false so they won't create sessions. I think you should

Re: Enabling protocol=org.apache.coyote.http11.Http11NioProtocol causes tomcat 6.0.36 to load web page elements

2013-07-17 Thread Jerry Lampi
On 7/17/2013 2:57 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jerry, On 7/17/13 3:30 PM, Jerry Lampi wrote: On 7/17/2013 2:28 PM, Christopher Schultz wrote: Jerry, On 7/17/13 3:06 PM, Jerry Lampi wrote: Good news. I previously reported that sendFile was

Re: Re:[OT] tomcat 7 maven plugin run on a installed tomcat not embedded

2013-07-17 Thread fachhoch
tomcat7 maven plugin goal tomcat7:run, documentation says its starts an embedded tomcat , is it possible to configure this goal to use use an installed server ? I want to use an installed server as my app has dependency on other app which should run on the same tomcat -- View this

Re: Disable the session in tomcat

2013-07-17 Thread Niki Dokovski
On Thu, Jul 18, 2013 at 12:22 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 7/17/13 5:04 PM, Daniel NAZARKIEWICZ wrote: Yes, i want to prevent session from being created because the sessions are not needed in my