Re: Tracking keep alive connections

2023-12-01 Thread Christopher Schultz
Daniel, On 12/1/23 00:09, Daniel Andres Pelaez Lopez wrote: Christopher, So... when a connection is established, save the current timestamp on the connection. When it closes, take the delta of the start-of-connection and end-of-connection, and add it to a bounded queue (say, 100? 1000?) of mos

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
Christopher, So... when a connection is established, save the current timestamp on > the connection. When it closes, take the delta of the > start-of-connection and end-of-connection, and add it to a bounded queue > (say, 100? 1000?) of most-recent-connection-lifetimes. Any time you > request the

Re: Tracking keep alive connections

2023-11-30 Thread Christopher Schultz
Daniel, On 11/30/23 07:08, Daniel Andres Pelaez Lopez wrote: What kind of number are you looking for? I would say something like the time a connection has been open. Can you please give the JMX path to tomcat_connections_keepalive_current and tomcat_connections_current? I have no idea what y

Re: Tracking keep alive connections

2023-11-30 Thread Daniel Andres Pelaez Lopez
> What kind of number are you looking for? I would say something like the time a connection has been open. > Can you please give the JMX path to tomcat_connections_keepalive_current > and tomcat_connections_current? I have no idea what you are talking > about there... is there some tool that prov

Re: Tracking keep alive connections

2023-11-29 Thread Christopher Schultz
Daniel, On 11/28/23 15:23, Daniel Andres Pelaez Lopez wrote: Hi community, We have a heavy workload where the client uses a lot of keep-alive connections, and we want to measure how many keep-alive connections are open, but we cannot find metrics (MBean) with that information. The closest one i

Re: Tracking down no responding issue after a massive load

2019-07-03 Thread Mark Thomas
On 03/07/2019 15:52, Sanford Liu wrote: > Hi Mark, > > I have updated the Tomcat's version to 9.0.21(Docker image tag is > tomcat:9.0.21-jdk8. Sorry for my word 'official', it is actually built by > Docker). > The Tomcat Native's version is 1.2.21. It is built from > the tomcat-native.tar.gz, whic

Re: Tracking down no responding issue after a massive load

2019-07-03 Thread Sanford Liu
Hi Mark, I have updated the Tomcat's version to 9.0.21(Docker image tag is tomcat:9.0.21-jdk8. Sorry for my word 'official', it is actually built by Docker). The Tomcat Native's version is 1.2.21. It is built from the tomcat-native.tar.gz, which is provided in the tomcat 9.0.21 distribution. I ha

Re: Tracking down no responding issue after a massive load

2019-07-03 Thread Mark Thomas
On 03/07/2019 10:59, Sanford Liu wrote: > Hi Team, > My team are facing a no responding issue in the below circumstances: > > 1. Env: > ApacheTomcat:8.5.15, JDK: 1.8.0_121 That Tomcat version is more than 2 years old. > 2. Tomcat configuration: > enable APR: protocol="org.apache.coyote.http11.

Re: Tracking down a Basic.sendBinary() issue

2017-03-30 Thread Robert Lewis
Ok. We do lock all our calls to Basic.sendBinary(), also it seems like moving to Tomcat 8.5 fixes the issue. No proof yet why. Since it always happens on our last write out to a client which should trigger a client ack, the client will immediately send an ack back to us (which seems to trigger the

Re: Tracking down a Basic.sendBinary() issue

2017-03-30 Thread Mark Thomas
On 29/03/17 04:04, Robert Lewis wrote: > Thanks Mark. I will take a look at the test you linked in (seems like Clint > already is). > > I have a question regarding your previous note "The short version is that > it is possible that there are two threads". On 8.0.38, doWrite() sets it's > scoped ha

Re: Tracking down a Basic.sendBinary() issue

2017-03-28 Thread Robert Lewis
Thanks Mark. I will take a look at the test you linked in (seems like Clint already is). I have a question regarding your previous note "The short version is that it is possible that there are two threads". On 8.0.38, doWrite() sets it's scoped handler and buffers to the class level instance, then

RE: Tracking down a Basic.sendBinary() issue

2017-03-28 Thread Dovholuk, Clint
rch 28, 2017 3:47 PM To: Tomcat Users List Subject: Re: Tracking down a Basic.sendBinary() issue On 28/03/17 00:30, Robert Lewis wrote: > Hi, > > I am tracking down a fairly sporadic bug in our software that uses > Tomcat 8.0.38. Long story short, sometimes calls to Basic.sendBinary()

Re: Tracking down a Basic.sendBinary() issue

2017-03-28 Thread Mark Thomas
On 28/03/17 00:30, Robert Lewis wrote: > Hi, > > I am tracking down a fairly sporadic bug in our software that uses Tomcat > 8.0.38. Long story short, sometimes calls to Basic.sendBinary() to a full > buffer then to a small buffer (eg. 8192x3 then 444 bytes). The first 8192 > sends will succeed an

Re: Tracking down memory leak

2015-10-21 Thread David kerber
On 10/21/2015 1:08 PM, Christopher Schultz wrote: Rallavagu, On 10/20/15 9:46 AM, Rallavagu wrote: Please take a look at Memory Analyzer tool (http://www.eclipse.org/mat/). Run the app and take the heap dump while app is running and use the tool to analyze it. You could use VisualVM with plugin

Re: Tracking down memory leak

2015-10-21 Thread Christopher Schultz
Rallavagu, On 10/20/15 9:46 AM, Rallavagu wrote: > Please take a look at Memory Analyzer tool > (http://www.eclipse.org/mat/). Run the app and take the heap dump while > app is running and use the tool to analyze it. You could use VisualVM > with plugins to get instrumentation or you could use hpr

Re: Tracking down memory leak

2015-10-20 Thread Rallavagu
Please take a look at Memory Analyzer tool (http://www.eclipse.org/mat/). Run the app and take the heap dump while app is running and use the tool to analyze it. You could use VisualVM with plugins to get instrumentation or you could use hprof (http://docs.oracle.com/javase/7/docs/technotes/sam

Re: Tracking down a Tomcat slowdown

2009-08-21 Thread neilgoldsmith
Thanks for the advice. The LOG stmt is just a method that filters all our logging then calls into log4j. There is nothing complex about it, it just filters out some of our logging based on system settings. I will look into some of your suggestions, thanks for the tips. Christopher Schultz-2

Re: Tracking down a Tomcat slowdown

2009-08-21 Thread neilgoldsmith
Ok, alot of good suggestions, thanks! I will see if I can get customer feedback and analyze some of the things you mentioned. Peter Crowther wrote: > > 2009/8/21 neilgoldsmith > >> My first question, what is the best tool to monitor this so we can get an >> accurate description of when the p

RE: Tracking down a Tomcat slowdown

2009-08-21 Thread neilgoldsmith
No worries, thanks for the response. George Sexton wrote: > > You know, it looks like I owe you an apology. > > I answered your question without reading the whole thing. I know how > aggravated that makes me feel. > > I'm sorry. > > George Sexton > MH Software, Inc. > http://www.mhsoftwa

Re: Tracking down a Tomcat slowdown

2009-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, On 8/21/2009 11:10 AM, neilgoldsmith wrote: > periodically they will experience a big slowdown on the app server > which does eventually recover (slows down for maybe an hour). We had > them increase their maxThreads from 150 to 300 and increase

RE: Tracking down a Tomcat slowdown

2009-08-21 Thread George Sexton
You know, it looks like I owe you an apology. I answered your question without reading the whole thing. I know how aggravated that makes me feel. I'm sorry. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: neilgoldsmith [mail

Re: Tracking down a Tomcat slowdown

2009-08-21 Thread Peter Crowther
2009/8/21 neilgoldsmith > My first question, what is the best tool to monitor this so we can get an > accurate description of when the problems occur and what might be at fault? > They just started running perfmon (on a Windows system), but as of yet I > have not seen any data from it. Is there

RE: Tracking down a Tomcat slowdown

2009-08-21 Thread George Sexton
and dig deeper to justify your assumptions. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: neilgoldsmith [mailto:ne...@avaya.com] > Sent: Friday, August 21, 2009 9:21 AM > To: users@tomcat.apache.org > Subject:

RE: Tracking down a Tomcat slowdown

2009-08-21 Thread neilgoldsmith
I don't have direct access to their system, but they assure me this server is only used for this purpose and nothing else is running on their servers. They have 2 servers (exact same config) running Tomcat and load balance 1:1 between the 2. When I looked at the log for the 2nd server, it had no

RE: Tracking down a Tomcat slowdown

2009-08-21 Thread George Sexton
So, I take it you've monitored the machine and made sure there are no other processes using up CPU/IO Bandwidth? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 > -Original Message- > From: neilgoldsmith [mailto:ne...@avaya.com] > Sent: Friday, August 21,

RE: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Caldarale, Charles R
> From: Darryl Pentz [mailto:djpe...@yahoo.com] > Subject: Re: Tracking down OOM - PermGen using jmap and jhat > > I found this thread: > http://forum.springframework.org/printthread.php?t=21383&pp=40 There's a lot of real BS in that thread. There is one accurate and u

Re: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Darryl Pentz
be making any major architectural changes and Tomcat has worked well for us in all other respects. Thanks again, Darryl - Original Message From: "Caldarale, Charles R" To: Tomcat Users List Sent: Tuesday, March 10, 2009 5:52:29 PM Subject: RE: Tracking down OOM - PermGen

RE: Tracking down OOM - PermGen using jmap and jhat

2009-03-10 Thread Caldarale, Charles R
> From: Darryl Pentz [mailto:djpe...@yahoo.com] > Subject: Re: Tracking down OOM - PermGen using jmap and jhat > > I tried using JConsole's GC button, but > clearly this didn't do the trick. Did clicking the button run a major GC (aka PS MarkSweep)? Are any clas

Re: Tracking down OOM - PermGen using jmap and jhat

2009-03-09 Thread Darryl Pentz
Hi Charles, Thanks for the info. I recall a post of yours I read on the Nabble list related to this stuff so I appreciate and value your feedback. I think I misspoke earlier. When I said the memory is still littered with the application classes, I mean virtually everything, thousands of dynami

RE: Tracking down OOM - PermGen using jmap and jhat

2009-03-09 Thread Caldarale, Charles R
> From: Darryl Po force a entz [mailto:djpe...@yahoo.com] > Subject: Tracking down OOM - PermGen using jmap and jhat > > in both cases when I run jmap/jhat the resulting output shows > the memory to still be littered with the application classes. Which is likely the exact memory leak you're loo

Re: Tracking Authentication rejects in Tomcat 5.5

2007-10-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott and Kevin, Scott Smith wrote: > I'm using Tomcat 5.5 and using dataSourceRealm to do authentication. I > need to track bad logins. In particular, I want to track any logins > where the password is wrong. I also want to track the remote server

RE: Tracking Authentication rejects in Tomcat 5.5

2007-10-29 Thread Scott Smith
ckson [mailto:[EMAIL PROTECTED] Sent: Mon 10/29/2007 10:03 PM To: Tomcat Users List Subject: Re: Tracking Authentication rejects in Tomcat 5.5 Hi, > Does anyone have a suggestion? Does the general approach seem > reasonable? We have similar requirements, but at the moment we are using a

Re: Tracking Authentication rejects in Tomcat 5.5

2007-10-29 Thread Kevin Jackson
Hi, > Does anyone have a suggestion? Does the general approach seem > reasonable? We have similar requirements, but at the moment we are using a subclass of JDBCRealm, here is our authenticate method: @Override public Principal authenticate(Connection connection, String userName, String

Re: Tracking active session in a tomcat cluster

2007-08-16 Thread Filip Hanik - Dev Lists
Tomcat 5.5 has an all-to-all replication mechanism, hence all nodes should be identical. you would only need to see the sessions on one node to get a picture of what is looks like elsewhere. there is a flag called "notifyListenersOnReplication" this is only for attribute replication for nodes

Re: tracking user logins

2007-01-30 Thread Pid
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bret, Bret Davies wrote: I want to be able to track who (by user defined name) logs in and when. Can you help me out or point me in the right direction. I'm assuming that you are using container-manager security -- tha

Re: tracking user logins

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bret, Bret Davies wrote: > I want to be able to track who (by user defined name) logs in and > when. Can you help me out or point me in the right direction. I'm assuming that you are using container-manager security -- that is, Tomcat is enforcing t

RE: Tracking

2005-10-27 Thread Steve Kirk
Charles, see also my reply to Nanda Kumar's thread "Cannot get a connection, pool exhausted" for a coding example. HTH :) > -Original Message- > From: Steve Kirk [mailto:[EMAIL PROTECTED] > Sent: Wednesday 26 October 2005 14:01 > To: 'Tomcat Use

RE: Tracking

2005-10-26 Thread Steve Kirk
Charles, I don't know of a way to have TC clear up conns for you, but you really should clear up connections explicitly. To some extent DBCP will clear up "abandoned" connections (to which you had a variable reference, which goes out of scope when you have finished processing the request), but th

RE: Tracking

2005-10-25 Thread Richard Mixon
You do not say which version of Tomcat you are using. But in general you can set the removeAbandoned* parameters to mitigate the problem (i.e. it will take longer to stop responding). If using 5.5.x look for the heading "Preventing dB connection pool leaks" at: http://tomcat.apache.org/tomcat-5.

Re: Tracking

2005-10-25 Thread Larry Meadors
Man, this feels like telling someone how to shoot their foot off, but this would be shorter: new Exception().printStackTrace(); Larry On 10/25/05, Steve Stearns <[EMAIL PROTECTED]> wrote: > > Charles P. Killmer wrote: > > >I have a bunch of JSP files that all instantiate a single class file. >

Re: Tracking

2005-10-25 Thread Steve Stearns
Charles P. Killmer wrote: I have a bunch of JSP files that all instantiate a single class file. Is there a way for the class file to log which file called it and ideally from which line the call was made? There might be a better way to do this but off the top of my head I should think this wou