[jdbc-pool] Validation query leaves transaction open

2016-08-11 Thread John Huss
I have verified that in version 8.0.36 of tomcat jdbc the validation query functionality does not commit the transaction it starts in order to run the validation query, which can cause an open transaction for a very long time (possibly until the database crashes). This seems to be especially probl

Re: Increased memory consumption due to url encoding

2016-08-11 Thread Jose MarĂ­a Zaragoza
2016-08-10 14:29 GMT+02:00 Lazar Kirchev : > Hello Christopher, > > I tried with 32 MB and even 24 MB heap and the CPU usage and response time > remained the almost the same (the difference is negligible) as with 1 GB > heap. The cumulative allocated memory for the HeapByteBuffer remains about > 40

Re: Tomcat 8.5.4 making sessions when used with NIO connector

2016-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Swati, On 8/11/16 2:16 AM, swati jain wrote: > Tomcat Version - 8.5.4 ( Embedded) Platform - Linux > > When NIO connector is used with Embedded Tomcat, it creates a > session per request. The session lasts for 30 minutes. Is there a > way to confi

Re: User Error Occurred --- groovy.lang.MissingMethodException --- No signature of method: java.lang.String.name() is applicable for argument types: () values: []

2016-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dwarak, On 8/9/16 11:38 PM, D, Dwarakesh wrote: > I have upgraded the groovy jar from 1.5 to 2.3.3 in order to > support Java 8. When running my application I am getting the below > error and I have tried using the below possible solutions as well.

Re: BasicDataSource creation throws SQLException

2016-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Roy, On 8/11/16 3:43 AM, Roy Leonardus wrote: > Hello Christopher, > > maybe i'm a little bit slow here, but from what i see, we should > mock the connection method > > Connection connection= ds.getConnection(); > > something like > > Connection

Re: BasicDataSource creation throws SQLException

2016-08-11 Thread Roy Leonardus
Hello Christopher, maybe i'm a little bit slow here, but from what i see, we should mock the connection method Connection connection= ds.getConnection(); something like Connection connection =(Connection) EasyMock.expect(ds. isvalid()).andReturn(true).anyTimes(); Problem is, th