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 <kfuj...@apache.org>: > 2015-12-17 22:25 GMT+09:00 Robert Anderson <ranom...@gmail.com>: > > > Hi, > > > > When a connection is closed by "ResetAbandoned" the invoke() method from > &g

[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

[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

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:

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

2015-07-16 Thread Robert Anderson
. Thanks. 2015-07-16 13:44 GMT-03:00 Daniel Mikusa dmik...@pivotal.io: On Thu, Jul 16, 2015 at 12:04 PM, Robert Anderson ranom...@gmail.com wrote: Thanks, Dan. This is not a problem. The thread is in the pool waiting for work. It's what you'd normally see on a server that's

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 ma...@apache.org: On 16 July 2015 16:37:53 CEST, Robert Anderson ranom...@gmail.com wrote: Hi, Sometimes, in moments of high traffic for our patterns (170 req/sec), we have a lot of threads like that: ajp-apr-8009

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

2015-07-16 Thread Robert Anderson
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 dmik...@pivotal.io: On Thu, Jul 16, 2015 at 10:37 AM, Robert Anderson ranom...@gmail.com wrote: Hi, Sometimes, in moments of high traffic

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 ranom...@gmail.com: 2014-09-04 10:57 GMT-03:00 Christopher Schultz ch...@christopherschultz.net: I don't know. You could inspect a Subversion

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 ranom...@gmail.com: Ok, Filip! Thanks, Robert 2015-01-30 16:31 GMT-03:00 Filip Hanik fi...@hanik.com: Robert, kindly let us know if disabling

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

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
would probably decrease performance). The same problem happens with fairQueue=true. :( 2015-01-30 14:31 GMT-03:00 Christopher Schultz ch...@christopherschultz.net : -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 1/30/15 12:19 PM, Robert Anderson wrote: Every day we

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 ranom...@gmail.com: 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

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
PoolCleaner(this, properties .getTimeBetweenEvictionRunsMillis()); 513 poolCleaner.start(); 514 } //end if 515 } On Fri, Jan 30, 2015 at 12:05 PM, Robert Anderson ranom...@gmail.com wrote: Filip, timeBetweenEvictionRunsMillis=0 does not disable PoolCleaner [1

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 fi...@hanik.com: Looking at the locks that are involved in the dead lock, it's all in the

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Robert Anderson
:555) at java.util.TimerThread.run(Timer.java:505) Are there any exceptions logged before? There are many exceptions every day (invalid parameters, syntax error, ...) 2015-01-30 14:33 GMT-03:00 Felix Schumacher felix.schumac...@internetallee.de: Am 30.01.2015 um 18:19 schrieb Robert

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 fi...@hanik.com: 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 ranom...@gmail.com wrote: Great, Filip! Returns true

Re: tomcat-jdbc PoolCleaner deadlock

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

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 ch...@christopherschultz.net : 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

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, IOException

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
doubt tomcat will go back to pre 6.0.41 days :) Filip On Wed, Sep 3, 2014 at 9:36 AM, Robert Anderson ranom...@gmail.com wrote: 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

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
AM, Robert Anderson ranom...@gmail.com wrote: Ok! :) Steps to reproduce: 1)Download and unpack 6.0.39 http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39/bin/apache-tomcat-6.0.39.tar.gz 2) Create a global jndi resouce in server.xml GlobalNamingResources

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
Em 03/09/2014 13:48, Daniel Mikusa dmik...@pivotal.io escreveu: On Wed, Sep 3, 2014 at 11:51 AM, Robert Anderson ranom...@gmail.com wrote: Ok! :) Steps to reproduce: 1)Download and unpack 6.0.39 http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.39

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 ranom...@gmail.com: This is the complete code that was working: https://code.google.com/p/psi-probe/source/browse/trunk/core/src/main/java/com/googlecode

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 dmik...@pivotal.io: 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
, 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 % %! protected void doLookup(JspWriter out) throws

Re: JVM Crashes

2013-01-31 Thread Robert Anderson
, 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 knst.koli...@gmail.comwrote: 2013/1/31 Robert Anderson ranom...@gmail.com: Hi, Sometimes the Tomcat's JVM is crashing: # # A fatal error has been

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: VirtualHost *:80 ... Include conf.d/mod_jk.mounts ... /VirtualHost

Re: jvmRoute with multiple AJP Connectors for one Engine

2012-12-20 Thread Robert Anderson
, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 12/19/12 5:48 AM, Robert Anderson wrote: Connector port=8009 enableLookups=false connectionTimeout=2 protocol=AJP/1.3 redirectPort=8443 / Connector port=8010 protocol=AJP

Re: jvmRoute with multiple AJP Connectors for one Engine

2012-12-19 Thread Robert Anderson
Hi, server.xml Connector port=8009 enableLookups=false connectionTimeout=2 protocol=AJP/1.3 redirectPort=8443 / Connector port=8010 protocol=AJP/1.3 secure=true scheme=https enableLookups=false connectionTimeout=2 / Engine name=Catalina defaultHost=localhost jvmRoute=*tomsrv02*

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
, 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.RefFSContextFactory In my Oracle 1.7.0 JRE's rt.jar, I can find a few

Re: Data sources definitions are lost in memory

2012-12-14 Thread Robert Anderson
/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 ranom...@gmail.com wrote: Hi Christopher, I'm suspecting that some webapp

Re: Data sources definitions are lost in memory

2012-12-13 Thread Robert Anderson
) at org.apache.coyote.ajp.AjpAprProtocol$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 ranom...@gmail.com

Re: Data sources definitions are lost in memory

2012-12-05 Thread Robert Anderson
, Robert On Tue, Dec 4, 2012 at 6:01 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/11/28 Robert Anderson ranom...@gmail.com: Hi, We've some data sources defined in server.xml as following: ... GlobalNamingResources ... Resource name=jdbc/proddb1 auth

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
with the same problem. Cheers, Robert On Wed, May 23, 2012 at 8:38 PM, Robert Anderson ranom...@gmail.com wrote: Sorry, for the wall of text. :) IIRC there is no support for getConnection(username, password) in Apache Commons DBCP pool at all, and it was a new feature in Tomcat JDBC pool

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
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 Anderson wrote: Now it's working! Follows the script: So, how

Re: Shared data source (Bug 49543)

2012-05-24 Thread Robert Anderson
- 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 have to add tomcat-jdbc.jar in Tomcat 6.0 classpath; 2) You have to put the attributes

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 GlobalNamingResources Resource

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
, Robert On Wed, May 23, 2012 at 6:26 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/5/24 Robert Anderson ranom...@gmail.com: 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

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
-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 (https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 ,http://tomcat.apache.org

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
and DataSource that does not work as expected/described. Best regards, Robert On Wed, May 23, 2012 at 8:26 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2012/5/24 Robert Anderson ranom...@gmail.com: 2. You need to set alternateUsernameAllowed= true on Tomcat JDBC pool [1