Project to help data analysis on thread dumps

2017-06-01 Thread Robert Anderson
Hi, I've started a project that make data analysis on thread dumps easier (at least I hope so :) ). An example of jupyter notebook: https://github.com/ranophoenix/jvmthreadparser/blob/master/Thread%20Analysis.ipynb All suggestions are welcomed. Thanks, Robert

Re: [Tomcat-JDBC] RemovedAbandoned doesn't trigger JdbcInterceptors

2015-12-18 Thread Robert Anderson
Thanks, Keiichi. 2015-12-18 3:21 GMT-03:00 Keiichi Fujino : > 2015-12-17 22:25 GMT+09:00 Robert Anderson : > > > Hi, > > > > When a connection is closed by "ResetAbandoned" the invoke() method from > > JdbcInterceptor is not called. Is it the ex

[Tomcat-JDBC] RemovedAbandoned doesn't trigger JdbcInterceptors

2015-12-17 Thread Robert Anderson
Hi, When a connection is closed by "ResetAbandoned" the invoke() method from JdbcInterceptor is not called. Is it the expected behaviour? -->server.xml --> pool.ExampleInterceptor public class ExampleInterceptor extends JdbcInterceptor { public Object invoke(Object proxy, Method

[Tomcat-JDBC] ResetAbandoned doesn't trigger JdbcInterceptors

2015-12-17 Thread Robert Anderson
Hi, When a connection is closed by "ResetAbandoned" the invoke() method from JdbcInterceptor is not called. Is it the expected behaviour? -->server.xml --> pool.ExampleInterceptor public class ExampleInterceptor extends JdbcInterceptor { public Object invoke(Object proxy, Method

Re: Many Threads in TIMED_WAITING (parking) - [org.apache.tomcat.util.threads.TaskQueue]

2015-07-16 Thread Robert Anderson
Hi Mark, How can I disable it? 2015-07-16 13:56 GMT-03:00 Mark Thomas : > On 16 July 2015 16:37:53 CEST, Robert Anderson wrote: > >Hi, > > > >Sometimes, in moments of high traffic for our patterns (170 req/sec), > >we > >have a lot of threads like that: >

Re: Many Threads in TIMED_WAITING (parking) - [org.apache.tomcat.util.threads.TaskQueue]

2015-07-16 Thread Robert Anderson
27;ll analyze this option. Thanks. 2015-07-16 13:44 GMT-03:00 Daniel Mikusa : > On Thu, Jul 16, 2015 at 12:04 PM, Robert Anderson > wrote: > > > Thanks, Dan. > > > > This is not a problem. The thread is in the pool waiting for work. It's > > what

Re: Many Threads in TIMED_WAITING (parking) - [org.apache.tomcat.util.threads.TaskQueue]

2015-07-16 Thread Robert Anderson
riately - Ok Do you have a firewall in between HTTPD & Tomcat? Is there anything that could be breaking the connection? No. Best regards. 2015-07-16 12:44 GMT-03:00 Daniel Mikusa : > On Thu, Jul 16, 2015 at 10:37 AM, Robert Anderson > wrote: > > > Hi, > > > > So

Many Threads in TIMED_WAITING (parking) - [org.apache.tomcat.util.threads.TaskQueue]

2015-07-16 Thread Robert Anderson
Hi, Sometimes, in moments of high traffic for our patterns (170 req/sec), we have a lot of threads like that: "ajp-apr-8009-exec-115 ^ 16/07/2015 - 11:13:37 - End of Execute" daemon prio=10 tid=0x2aaab5c36800 nid=0x12f9 waiting on condition [0x4ddcb000] java.lang.Thread.State: TIME

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2015-04-17 Thread Robert Anderson
Issue fixed: https://github.com/psi-probe/psi-probe/commit/9f233d0f0ccb02062f2b094710897b2a551d0ca5 2014-09-04 11:07 GMT-03:00 Robert Anderson : > > 2014-09-04 10:57 GMT-03:00 Christopher Schultz < > ch...@christopherschultz.net>: > >> I don't know. You could ins

Re: tomcat-jdbc PoolCleaner deadlock

2015-02-06 Thread Robert Anderson
Hi, After a full week of normal usage, no deadlocks were found. Thank you very much. Robert 2015-01-30 16:38 GMT-03:00 Robert Anderson : > Ok, Filip! > > Thanks, > > Robert > > 2015-01-30 16:31 GMT-03:00 Filip Hanik : > > Robert, kindly let us know if disa

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Ok, Filip! Thanks, Robert 2015-01-30 16:31 GMT-03:00 Filip Hanik : > Robert, kindly let us know if disabling the pool cleaner does resolve your > dead lock > > Filip > > > On Fri, Jan 30, 2015 at 12:25 PM, Robert Anderson > wrote: > > > Great, Filip! > >

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
(properties. > isPoolSweeperEnabled()) { 512 poolCleaner = new PoolCleaner(this, > properties > .getTimeBetweenEvictionRunsMillis()); 513 poolCleaner.start(); 514 } //end > if 515 } > > On Fri, Jan 30, 2015 at 12:05 PM, Robert Anderson > wrote:

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
2015-01-30 15:17 GMT-03:00 Robert Anderson : > Sorry, > > [1] https://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html > > 2015-01-30 15:15 GMT-03:00 Robert Anderson : > > Filip, >> >> however, disabling the pool cleaner it should yield better results. >>

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Sorry, [1] https://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html 2015-01-30 15:15 GMT-03:00 Robert Anderson : > Filip, > > however, disabling the pool cleaner it should yield better results. > > The documention[1] says: > > "This value should not be set unde

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Filip, however, disabling the pool cleaner it should yield better results. The documention[1] says: "This value should not be set under 1 second" Isn't true? 2015-01-30 15:07 GMT-03:00 Filip Hanik : > Looking at the locks that are involved in the dead lock, it's all in the > intersys traces

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
.) 2015-01-30 14:33 GMT-03:00 Felix Schumacher < felix.schumac...@internetallee.de>: > Am 30.01.2015 um 18:19 schrieb Robert Anderson: > >> Every day we are getting deadlocks like that: >> >> Found one Java-level deadlock: >> = &

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
rness /decreases/ performance or the opposite (but it seems reasonable that enforcing queue fairness would probably decrease performance). The same problem happens with fairQueue=true. :( 2015-01-30 14:31 GMT-03:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA2

tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
Every day we are getting deadlocks like that: Found one Java-level deadlock: = "ajp-apr-8009-exec-13 ^ 30/01/2015 - 09:39:58 - DB:DATASOURCE(java:/comp/env/jdbc/cacheapp)": waiting to lock monitor 0x1504e6d8 (object 0x00071ba001d0, a com.intersys.jdbc.Cach

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-04 Thread Robert Anderson
2014-09-04 10:57 GMT-03:00 Christopher Schultz : > I don't know. You could inspect a Subversion log between the two. It's > no fun, but it will show you what actually changed instead of what was > documented to have been changed. > It's exactly what I'm doing at this moment. :)

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
, Robert Anderson wrote: > In a privileged context, a have the following jsp to test a global > jndi resource: > > <%@ page session="false" > import="java.util.*,java.sql.*,javax.naming.*, > javax.sql.*,org.apache.commons.dbcp.*" contentType="text/html&q

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
2014-09-03 16:13 GMT-03:00 Daniel Mikusa : > Do you see this being logged? Yes. Thanks, Felix. We'll analyze this solution.

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
This behavior began in versions 6.0.41 and 7.0.54. Before that, everything worked as expected. 2014-09-03 15:33 GMT-03:00 Robert Anderson : > This is the complete code that was working: > https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode/psiprobe

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
how_bug.cgi?id=56451. 2014-09-03 15:25 GMT-03:00 Filip Hanik : > On Wed, Sep 3, 2014 at 11:09 AM, Robert Anderson > wrote: > > > Thanks, Daniel. But my question the question is why that was working in > > 6.0.39 and the firsts releases of 7.0.x? > > Tomcat is not bind in

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Thanks, Daniel. But my question the question is why that was working in 6.0.39 and the firsts releases of 7.0.x? Tomcat is not bind in java: anymore. Was it a feature request or is it a bug? Em 03/09/2014 13:48, "Daniel Mikusa" escreveu: > On Wed, Sep 3, 2014 at 11:51 AM, Ro

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
anymore. Thanks. 2014-09-03 12:39 GMT-03:00 Filip Hanik : > can you post your configuration file. that will be the only way we can help > you fix it, as I doubt tomcat will go back to pre 6.0.41 days :) > > Filip > > > > On Wed, Sep 3, 2014 at 9:36 AM, Robert And

Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Robert Anderson
Hi, In a privileged context, a have the following jsp to test a global jndi resource: <%@ page session="false" import="java.util.*,java.sql.*,javax.naming.*, javax.sql.*,org.apache.commons.dbcp.*" contentType="text/html" %> <%! protected void doLookup(JspWriter out) throws ServletException, IOE

Re: JVM Crashes

2013-01-31 Thread Robert Anderson
ash occurs ("libnio.so") belongs to Java Runtime, not Tomcat." I know, but I decided to post here because the level of users is very good. :) Thanks, Robert On Thu, Jan 31, 2013 at 9:35 AM, Konstantin Kolinko wrote: > 2013/1/31 Robert Anderson : > > Hi, > > > >

Re: jvmRoute with multiple AJP Connectors for one Engine

2012-12-21 Thread Robert Anderson
. Robert On Fri, Dec 21, 2012 at 12:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Robert, > > On 12/20/12 8:39 PM, Robert Anderson wrote: > > Now, the "trick"

Re: jvmRoute with multiple AJP Connectors for one Engine

2012-12-20 Thread Robert Anderson
, Robert On Thu, Dec 20, 2012 at 1:59 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Robert, > > On 12/19/12 5:48 AM, Robert Anderson wrote: > > > connectionTimeout="2&qu

Re: jvmRoute with multiple AJP Connectors for one Engine

2012-12-19 Thread Robert Anderson
Hi, server.xml worker.properties worker.*tomsrv02*.type=ajp13 worker.*tomsrv02*.host=172.17.1.45 worker.*tomsrv02*.port=8009 worker.*tomsrv02*.lbfactor=1 worker.*tomsrv02*.connection_pool_timeout=20 worker.tomsrv02sec.type=ajp13 worker.tomsrv02sec.host=172.17.1.45 worker.tomsrv02sec.port=

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
/file/fileURLContext.class com/sun/jndi/url/file/fileURLContextFactory.class It's a third party application. Now we need to get in touch with suppliers. Best regards, Robert On Fri, Dec 14, 2012 at 2:33 PM, Robert Anderson wrote: > Hi Christopher, > > I'm suspecting that som

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
2012 at 1:58 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Robert, > > On 12/13/12 3:34 PM, Robert Anderson wrote: > > Caused by: java.lang.ClassNotFoundException: > > com.sun.jndi.fscontext.RefFSCo

Re: Data sources definitions are lost in memory

2012-12-13 Thread Robert Anderson
$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665) at java.lang.Thread.run(Thread.java:662) Any idea? Best regards, Robert On Wed, Dec 5, 2012 at 8:14 AM, Robert Anderson wrote: > Hi Konstan

Re: Data sources definitions are lost in memory

2012-12-05 Thread Robert Anderson
hanks, Robert On Tue, Dec 4, 2012 at 6:01 PM, Konstantin Kolinko wrote: > 2012/11/28 Robert Anderson : > > Hi, > > > > > > We've some data sources defined in server.xml as following: > > > > ... > > > > ... >

Data sources definitions are lost in memory

2012-11-28 Thread Robert Anderson
Hi, We've some data sources defined in server.xml as following: ... ... ... ... conf/context.xml ... ... Everything has worked normal during many months...until now. At least once a day, since 11/21, webapplications throw NullPointerException because t

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
PGP SIGNED MESSAGE- > Hash: SHA1 > > Robert, > > On 5/24/12 10:57 AM, Robert Anderson wrote: > > Chris, > > > > Basically, the ResourceLink documentation doesn't say that to > > enable shared pool with different credentials: > > > > 1) You

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
rceFactory" and alternateUsernameAllowed="true". Cheers, Robert On Thu, May 24, 2012 at 11:46 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Robert, > > On 5/24/12 7:50 AM, Robert

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
rent user: globaluser Thanks and I hope this script can help others with the same problem. Cheers, Robert On Wed, May 23, 2012 at 8:38 PM, Robert Anderson wrote: > Sorry, for the wall of text. :) > > > "IIRC there is no support for getConnection(username, password) in > Ap

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
ut ResourceLink and DataSource that does not work as expected/described. Best regards, Robert On Wed, May 23, 2012 at 8:26 PM, Konstantin Kolinko wrote: > 2012/5/24 Robert Anderson : > > > > 2. You need to set alternateUsernameAllowed=" > >> > >> true&

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
/tomcat.apache.org/tomcat-7.0-doc/config/context.html, > searching for ResourceLink. > > Best regards > > > On 5/23/2012 9:31 PM, Robert Anderson wrote: > > Hi, > > I'm testing this functionality (versions 6.0.35 and 7.0.27) but it's not > working for me (ht

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
ust does not work. Best regards, Robert On Wed, May 23, 2012 at 6:26 PM, Konstantin Kolinko wrote: > 2012/5/24 Robert Anderson : > > Hi, > > > > I'm testing this functionality (versions 6.0.35 and 7.0.27) but it's not > > working for me (https://issu

Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
Hi, I'm testing this functionality (versions 6.0.35 and 7.0.27) but it's not working for me (https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 , http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Links). -->server.xml -->conf/Catalina/localhost/app1.xml