[ANNOUNCEMENT] Apache Commons Pool 2.12.0

2023-10-01 Thread Phil Steitz
-pool2 2.12.0 Thanks in advance for bug reports, suggestions for improvement, patches or other contributions to the Apache Commons community. Phil Steitz -Apache Commons Team

Re: Updating Apache Commons DBCP 2.10.0

2023-09-26 Thread Phil Steitz
.0.jar > > Only in ~/downloads/commons-dbcp2-2.10.0-src/target/lib.10: > > commons-pool2-2.11.1.jar > > > > Only in ~/downloads/commons-dbcp2-2.10.0-src/target/lib.9: > > jakarta.transaction-api-2.0.1.jar > > Only in ~/downloads/commons-dbcp2-2.10.0-src/target/lib.10:

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-25 Thread Phil Steitz
nothing, thus helping to prevent session closing and/or > * unbinding. > */ > public void beforeCompletion() { > // do nothing > } > > /** > * Does nothing, thus helping to prevent session closing and/or > *

Re: [ANNOUNCEMENT] Apache Commons DBCP 2.10.0

2023-09-24 Thread Phil Steitz
On Sun, Sep 24, 2023 at 10:28 AM Greg Huber wrote: > Forgot to add, I use hibernate 6. > I suspect this is a side effect of the change to use the jakarta spec jar In 2.10, we have jakarta.transaction jakarta.transaction-api 1.3.1 vs org.apache.geronimo.specs

Re: [IO] Java's InflaterInputStream not playing well with IOUtils.skipFully

2023-06-12 Thread Phil Steitz
On Mon, Jun 12, 2023 at 6:52 PM Phil Steitz wrote: > > > On Mon, Jun 12, 2023 at 2:14 PM Tim Allison wrote: > >> All, >> >> Since the refactoring to avoid threadlocal in skipFully, we are now >> getting errors in one of our unit tests on Tika [0]. We're s

Re: [IO] Java's InflaterInputStream not playing well with IOUtils.skipFully

2023-06-12 Thread Phil Steitz
On Mon, Jun 12, 2023 at 2:14 PM Tim Allison wrote: > All, > > Since the refactoring to avoid threadlocal in skipFully, we are now > getting errors in one of our unit tests on Tika [0]. We're still on > commons-io 2.11.0, but we found this problem with 2.12.0 and 2.13.0. > >I was able to

Re: [dbcp2] No error/warning when returning a connection twice

2021-04-14 Thread Phil Steitz
On 4/14/21 12:59 PM, Gary Gregory wrote: Hi, That's a tough sell IMO because (1) the JDBC specification does not require this behavior AND (2) it would break existing applications. What is the harm is having nothing happen when you close a closed connection? That was the thinking when we

Re: [dbcp] Optimal defaults for DSpace

2021-01-01 Thread Phil Steitz
On 12/20/20 10:26 PM, Hrafn Malmquist wrote: Hi Gary Thanks for taking the time to respond. I hope you can bear with me as I am still learning about database connection pooling. Perhaps I did not ask the question correctly. I am not asking about a site specific setup but rather what

Re: DB Connection Restore Issue with Apache Commons DBCP 2.5.0

2019-11-01 Thread Phil Steitz
What exactly do you mean by "restoring?" Phil On 10/30/19 11:17 PM, Shihad Salam wrote: Hi Team, Please help me in resolving the below issue: While using the DBCP2 (2.5.0) connection pool in my SpringBoot project with MS SQL Server, the database connection is not restoring after a DB service

Re: [dbcp] in DBCP 1.4 - Any auto-reconnect property available ?

2019-01-15 Thread Phil Steitz
On 1/15/19 2:59 PM, Matt Sicker wrote: One idea might be to invoke a crafted query for your connection check that fails every so often so it'll be forced to reconnect, though I haven't tried that before. I was thinking the same thing.  I am not sure how to do it, but I vaguely recall it being

Re: [pool] Possible deadlock or user error (me) commons-pool 2.5.0

2018-09-09 Thread Phil Steitz
On 9/9/18 12:16 AM, Mark Thomas wrote: On 08/09/18 19:36, Mark Thomas wrote: For the "- parking to wait for  <0x0006471cd7d8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)" there are 155. Though I see no other messages with that object in the thread dump. Has anyone run into

Re: [DBCP] Possible to get query strings from datasource?

2018-05-06 Thread Phil Steitz
On 5/4/18 5:15 PM, Shawn Heisey wrote: > On 5/4/2018 4:49 PM, Martin Gainty wrote: >> MG>have a chat with your DBA on BasicDataSource validationQuery >> MG>if this was Oracle it would be something like select 1 from DUAL > This has me chuckling.   Let me put on my DBA hat (which doesn't fit all >

Re: [DBCP] Possible to get query strings from datasource?

2018-05-04 Thread Phil Steitz
On 5/4/18 12:16 PM, Shawn Heisey wrote: > On 5/4/2018 10:38 AM, Phil Steitz wrote: >> The only thing close to this that you can do now is if you have >> prepared statement pooling enabled, then via the JMX instrumentation >> of commons pool you can see the output of statement

Re: [DBCP] Possible to get query strings from datasource?

2018-05-04 Thread Phil Steitz
On 5/4/18 12:49 AM, Shawn Heisey wrote: > Using dbcp 2.2.0 with pool 2.5.0. > > If the only object I have access to is BasicDataSource, is it > possible to obtain the SQL queries being executed by active > connections in the pool right now?  If so, how would I go about > doing that? > > At the

Re: [DBCP] troubleshooting pool activity (tomcat version)

2018-03-23 Thread Phil Steitz
On 3/22/18 6:14 PM, Shawn Heisey wrote: > First thing to do is thank you again for taking the time to help me.  > Apache has great communities. > > On 3/22/2018 5:38 PM, Phil Steitz wrote: >> You must be looking at documentation describing how to use the >> alternative pool

Re: [DBCP] troubleshooting pool activity (tomcat version)

2018-03-22 Thread Phil Steitz
On 3/21/18 12:15 PM, Shawn Heisey wrote: > On 3/21/2018 1:31 AM, Mark Thomas wrote: >>> and that we need to >>> change the factory on our pool definitions. >> I believe not. > Tomcat's documentation seems to disagree with this point. It > specifically says to use

Re: [DBCP] troubleshooting pool activity (tomcat version)

2018-03-20 Thread Phil Steitz
On 3/20/18 7:21 PM, Shawn Heisey wrote: > I've written before, trying to track down problems with our > database server getting too many connections. > > Based on what I can see of how my programs (using dbcp2) are > working, everything seems to be fine there.  I've added logging to > tell me how

Re: [Math] How to do Polynomial Regression ?

2018-03-12 Thread Phil Steitz
On 3/12/18 10:15 AM, Debraj Manna wrote: > Crossposting from stackoverflow > > as I did not get any reply there > > Can someone let me know how I can do Polynomial Regression with Apache Maths >

Re: [DBCP] Connection pool not behaving as I expect

2018-03-01 Thread Phil Steitz
> On Mar 1, 2018, at 3:33 PM, Shawn Heisey wrote: > > We have been having some problems lately where our MySQL server hits the > max connection limit (600) and then everything breaks. When I look into > the problem, I find that our application servers have each made

Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-12 Thread Phil Steitz
On 1/9/18 5:09 PM, Shawn Heisey wrote: > On 1/9/2018 11:50 AM, Phil Steitz wrote: >> thread 1: checkOpen - sees true >> thread 2: close the DelegatingConnection  (there is no sync to >> prevent this) >> thread1 : createStatement - bang! >> thread1 : isClosed() retu

Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-09 Thread Phil Steitz
On 1/9/18 1:56 PM, Phil Steitz wrote: > On 1/9/18 11:50 AM, Phil Steitz wrote: >> On 1/8/18 4:23 PM, Shawn Heisey wrote: >>> On 11/22/2017 5:00 PM, Phil Steitz wrote: >>>> If the problem is the evictor closing a connection and having that >>>> con

Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-09 Thread Phil Steitz
On 1/9/18 11:50 AM, Phil Steitz wrote: > On 1/8/18 4:23 PM, Shawn Heisey wrote: >> On 11/22/2017 5:00 PM, Phil Steitz wrote: >>> If the problem is the evictor closing a connection and having that >>> connection delivered to a client, the problem is almost certainly in &

Re: [DBCP] Connection just obtained from datasource is invalid

2018-01-09 Thread Phil Steitz
On 1/8/18 4:23 PM, Shawn Heisey wrote: > On 11/22/2017 5:00 PM, Phil Steitz wrote: >> If the problem is the evictor closing a connection and having that >> connection delivered to a client, the problem is almost certainly in >> pool.  The thread-safety of the pool in this

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-22 Thread Phil Steitz
On 11/22/17 2:43 PM, Shawn Heisey wrote: > On 11/22/2017 12:04 PM, Phil Steitz wrote: >> On 11/22/17 9:43 AM, Shawn Heisey wrote: >>> I do have results from the isClosed method when the problem happens.  >>> That method *does* return true. >> That points to

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-22 Thread Phil Steitz
On 11/22/17 9:43 AM, Shawn Heisey wrote: > On 11/21/2017 1:01 PM, Phil Steitz wrote: >> As I said in my first response, the most common explanation for this >> kind of exception when using DBCP is that the underlying physical >> connection is closed on the server (or netwo

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-22 Thread Phil Steitz
On 11/22/17 9:43 AM, Shawn Heisey wrote: > On 11/21/2017 1:01 PM, Phil Steitz wrote: >> As I said in my first response, the most common explanation for this >> kind of exception when using DBCP is that the underlying physical >> connection is closed on the server (or netwo

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-21 Thread Phil Steitz
On 11/21/17 10:58 AM, Shawn Heisey wrote: > On 11/17/2017 3:27 PM, Phil Steitz wrote: >> OK, sorry I misread your initial post.  That means either the pool >> agrees that the connection is closed (which would point to a pool or >> DBCP bug) or the driver's isValid() on th

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-21 Thread Phil Steitz
On 11/21/17 11:34 AM, Shawn Heisey wrote: > On 11/16/2017 5:21 PM, Phil Steitz wrote: >> That should not be possible, as once a connection has been checked >> out, it is not eligible for eviction.  And even if it were evicted >> by the pool, the pool would set the Delegati

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-18 Thread Phil Steitz
On 11/17/17 3:27 PM, Phil Steitz wrote: > On 11/17/17 12:22 PM, Shawn Heisey wrote: >> On 11/16/2017 5:21 PM, Phil Steitz wrote: >>>> How can a connection that I *just* retrieved from the pool be closed? >>> Should not happen.  In most cases like this, it tu

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-17 Thread Phil Steitz
On 11/17/17 12:22 PM, Shawn Heisey wrote: > On 11/16/2017 5:21 PM, Phil Steitz wrote: >>> How can a connection that I *just* retrieved from the pool be closed? >> Should not happen.  In most cases like this, it turns out not to be >> the pool that closed the connection.

Re: [DBCP] Connection just obtained from datasource is invalid

2017-11-16 Thread Phil Steitz
On 11/15/17 12:50 PM, Shawn Heisey wrote: > I'm using DBCP 2.1.1 with POOL 2.4.3 (which are the latest releases as > of a few minutes ago) to handle connections to MySQL databases.  In my > program I have code like this: > >   conn = ds.getConnection(); >   conn.clearWarnings(); >   if

Re: [dbcp] outdated and confusing documentation

2017-07-31 Thread Phil Steitz
On 7/31/17 9:07 AM, Steve Cohen wrote: > The DBCP package description page is referred to from the Overview page > as containing important information on usage of the package. > > The following sample code is provided there: > > >> GenericObjectPool connectionPool = new GenericObjectPool(null); >>

Re: Could DBCP set different username when getConnection

2017-02-16 Thread Phil Steitz
On 2/16/17 1:31 AM, John Patrick wrote: > >From my understanding of you question. You would need a pool per role/user. That is available in PerUserPoolDataSource [1]. Phil [1] http://commons.apache.org/proper/commons-dbcp/api-2.1.1/index.html Note to devs: the 2.2 javadocs seem to be missing

Re: [EXTERNAL]Re: DBCP issuing more sessions than maxActive sessions in Oracle

2017-01-25 Thread Phil Steitz
5VNu%2FP5FANvBwCC6JFKXcS6RJy5Q76IhGGqAAEMAACC6JFKXcS6RJy5Q76IhGGqAACGtmA4AAABEgAQANT3RQAH0VJIrveZGngUUTQ%3D=zgTt0gEIPEaHc-Q35K2xD7ADDSE3yNIYLGPJUeTkGumastS1fdcpigPbw4ASyo9SSzPAsJtdi6o> > > From: Phil Steitz <phil.ste...@gmail.com> > Sent: Tuesday,

Re: DBCP issuing more sessions than maxActive sessions in Oracle

2017-01-24 Thread Phil Steitz
What versions of dbcp and pool are you running? Looks like 1.x from the package names. The first thing to look at is the changelogs[1] for releases since the pool and dbcp versions that you are running. Phil [1] for dbcp this is

Re: I need to close the connection, not return it back to the Connection Pool

2016-12-23 Thread Phil Steitz
for your help again. > > > Best Wishes > > Qin > > > > On 2016年12月23日 04:47, Phil Steitz wrote: >> On 12/22/16 9:34 AM, Shawn Heisey wrote: >>> On 12/22/2016 4:49 AM, 王钦 wrote: >>>> When I use DBCP-1.4 in my work, I need to close the >>&

Re: I need to close the connection, not return it back to the Connection Pool

2016-12-22 Thread Phil Steitz
On 12/22/16 9:34 AM, Shawn Heisey wrote: > On 12/22/2016 4:49 AM, 王钦 wrote: >> When I use DBCP-1.4 in my work, I need to close the connection >> which is generated by BasicDataSource. How can I do it? Close the >> connection, while not returning it back to the Connection Pool. > The

Re: [dbcp]the activity when number of active connections reach (maxActive-minIdle)

2016-01-10 Thread Phil Steitz
On Fri, Jan 8, 2016 at 10:27 PM, sum2000 wrote: > for example,pool size: > db.pool.size.init=5 > db.pool.size.active.max=20 > db.pool.size.idle.max=20 > db.pool.size.idle.min=10 > when # of active connections reach 10, what's the following activity of > dbcp? > We know it can’t

Re: [math] Summary Stats Higher Moments?

2015-12-23 Thread Phil Steitz
On 12/22/15 9:58 AM, michael.brzustow...@gmail.com wrote: > Hi, > > I see that org.apache.commons.math3.stat.descriptive.DescriptiveStatistics > uses the singleton update formulas (from Pebay) for calculating > (un-normalized) moments up to the 4th moment. Is there some reason that >

Re: [MATH] Why no o.a.c.math3.stat.descriptive.moment.QuadraticMean?

2015-10-09 Thread Phil Steitz
On 10/8/15 2:00 PM, Evan Meagher wrote: > An application I'm writing has a need to calculate RMS values for series of > numbers. I can achieve this via `SummaryStatistics.getQuadraticMean`, but > I'm left wondering why there isn't a corresponding `UnivariateStatistic` > subclass? It seems to me

Re: [dbcp] setting properties

2015-10-08 Thread Phil Steitz
On 10/8/15 12:00 PM, Pruitt, Byron S wrote: > The BasicDataSource class has methods for setting some validation policies > > getTestOnBorrow()) > getTestOnCreate()) > getTestOnReturn()) > getTestWhileIdle()) > > How are these invoked programmatically? I started with the >

Re: [dbcp] auto reconnecting

2015-10-07 Thread Phil Steitz
On 10/7/15 12:35 PM, Pruitt, Byron S wrote: > My server has long standing idle periods. We are seeing: > com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet > successfully received from the server was... errors. > > I would like to fix it as simply as possible. MySQL has

Re: [dbcp] inconsistently set autocommit

2015-09-17 Thread Phil Steitz
On 9/16/15 10:35 AM, Pruitt, Byron S wrote: > My usual process for learning something is a quick prototype. For setting up > a driver pool with autocommit = false, I implemented the little quickie > prototype below. > > Properties dbProp = new Properties(); > dbProp.put("user", "aUser"); >

Re: [dbcp] new user questions

2015-09-03 Thread Phil Steitz
> On Sep 3, 2015, at 9:22 AM, Pruitt, Byron S wrote: > > I am new to the DBCP framework and I have some newbie questions. > > I have the PoolingDataSourceExample working with my driver and I get > connections from my DataSource. > > What I am unclear on is how I

Re: [dbcp] setting connection defaults

2015-09-03 Thread Phil Steitz
On 9/3/15 12:26 PM, Pruitt, Byron S wrote: > What is the best to set properties like auto commit. The DataSource > interface doesn't expose anything. The only thing I can find that supports > these properties is BasicDataSource. This depends on your application, but it's good to start with

[ANNOUNCEMENT] Apache Commons DBCP 2.1.1 released

2015-08-07 Thread Phil Steitz
available at the above location. For complete information on Commons DBCP, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Commons DBCP website: http://commons.apache.org/dbcp Phil Steitz, on behalf of the Apache Commons community

[ANNOUNCEMENT] Apache Commons Pool 2.4.2 released

2015-08-02 Thread Phil Steitz
for improvement, see the Apache Commons Pool website: http://commons.apache.org/pool Phil Steitz, on behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail

Fwd: Re: [dbcp] Abandon Connection - not Logging in standalone

2015-07-26 Thread Phil Steitz
Forgot to copy list Forwarded Message Subject:Re: [dbcp] Abandon Connection - not Logging in standalone Date: Sun, 26 Jul 2015 17:02:38 -0700 From: Phil Steitz phil.ste...@gmail.com To: Bernd Eckenfels e...@zusammenkunft.net On 7/25/15 8:19 AM, Bernd

Re: [dbcp] Abandon Connection - not Logging in standalone

2015-07-24 Thread Phil Steitz
On 7/23/15 4:18 PM, Bernd Eckenfels wrote: Hello, I noticed that with Oracle drivers you cannot kill a busy connection by closing it (since close(), _getPC(), isOpen() and stmt.close() all will synchronize on the (busy) physical connection. I noticed this in a custom persistence layer, so I

Re: [dbcp] Handling many different user accounts over time

2015-06-25 Thread Phil Steitz
On 6/18/15 8:17 AM, Oksana wrote: Cameron, Scott scott.cameron at sap.com writes: Interesting that this has not come up before. You are right that PerUserPoolDataSource does not bound the number of pools that can be created and SharedPoolDataSource does not bound the total combined size

Re: [math]plot distribution

2015-06-19 Thread Phil Steitz
help me to draw the plots in the user guide section on probability distributions? Im sorry that Im very very beginner. thanks a lot . http://s.apache.org/HTo On Thu, Jun 18, 2015 at 8:06 AM, Phil Steitz phil.ste...@gmail.com wrote: On 6/18/15 6:31 AM, narjes saraie wrote: Hi All. I

Re: [math]plot distribution

2015-06-19 Thread Phil Steitz
On 6/19/15 5:34 AM, narjes saraie wrote: Hi Gilles. I do it and Thank you for your patient guidance. Look at the link I posted to the sources used to generate the user guide. You can see plots in the user guide itself. Those plots were generated with freely available OSS tools. Phil

Re: [math]plot distribution

2015-06-18 Thread Phil Steitz
On 6/18/15 6:31 AM, narjes saraie wrote: Hi All. I am beginner in java and have some data.I want to guess a distribution for my data then calculate goodness of fit (gof). I find distribution commons math and use it ,if i want plot my distribution or CDF or probability (Xx), how do it? is it

[ANNOUNCEMENT] Apache Commons Pool 2.4.1 released

2015-06-01 Thread Phil Steitz
, patches, or suggestions for improvement, see the Apache Commons Pool website: http://commons.apache.org/proper/commons-pool/ Phil Steitz, on behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr

Re: [dbcp] No operations allowed after statement closed

2015-06-01 Thread Phil Steitz
On 5/27/15 3:10 PM, Ajay kumar Gour wrote: Hi there, One of the application I am working on is using commons-dbcp-1.2.2.jar. Below is my data source configuration – Resource id=myDS type=javax.sql.DataSource JdbcDriver com.mysql.jdbc.Driver JdbcUrl

Re: [configuration] Apache Commons Configuration Version 2

2015-05-10 Thread Phil Steitz
On 5/10/15 9:10 AM, James Carman wrote: As do people who try to blow dry their hair while they are in the bathtub, but they don't stop making hairdryers. They put a sticker on the cord which tells people not to do it. The problem is jar hell resulting from o.a.c.foox getting out in the wild

Re: [DBCP2] Timeout on PoolingDataSource#getConnection() ?

2015-04-30 Thread Phil Steitz
On 4/30/15 1:40 PM, Shawn Heisey wrote: I'm using dbcp2-2.1 and pool2-2.3. Is there any kind of timeout configurable (or even needed) when calling getConnection() on a PoolingDataSource? I was looking over my code for possible problems and realized that I have no idea whether this call

Re: POOL - Question about different time out for borrow and add object

2015-04-29 Thread Phil Steitz
On 4/29/15 8:59 AM, vijay wrote: Hi , I want to know if i can achieve this. Is there any way to specify time out for the addobject and borrow object methods? What i am really looking is when i start the pool i am prefilling it with add object for this i can wait for more time to geth the

Re: POOL - Question about different time out for borrow and add object

2015-04-29 Thread Phil Steitz
On Wed, Apr 29, 2015 at 2:19 PM, Phil Steitz phil.ste...@gmail.com wrote: On 4/29/15 8:59 AM, vijay wrote: Hi , I want to know if i can achieve this. Is there any way to specify time out for the addobject and borrow object methods? What i am really looking is when i start the pool i am

Re: [dbcp]Closed Connection or Exhausted Resultset error

2015-04-28 Thread Phil Steitz
LIMITED, DC1-3A-003,DLF IT PARK,Chennai - 600089 Extn # : 21820 and Mobile #: 9962020675 From: Phil Steitz phil.ste...@gmail.com To: Commons Users List user@commons.apache.org Date: 04/22/2015 07:03 PM Subject:Re: [dbcp]Closed Connection or Exhausted Resultset error On 4

Re: [dbcp]Closed Connection or Exhausted Resultset error

2015-04-28 Thread Phil Steitz
(); } } rs = null; } return list; } Thanks and Regards, Rohini T Nagaraj, WebSphere CastIron QA Team, IBM INDIA PRIVATE LIMITED, DC1-3A-003,DLF IT PARK,Chennai - 600089 Extn # : 21820 and Mobile #: 9962020675 From: Phil Steitz

Re: [dbcp]Closed Connection or Exhausted Resultset error

2015-04-22 Thread Phil Steitz
On 4/22/15 5:18 AM, Rohini T Nagaraj wrote: Hi All, The Oracle DB has 37k packages. The issue is seen after running the below query from the program or when using DatabaseMetadata.getProcedureColumns() in a program . We are seeing these errors Exhausted Resultset (SQL Code =9 and

Re: [DBCP] Apparent deadlock related to getConnection

2015-04-22 Thread Phil Steitz
On 4/21/15 10:43 PM, Shawn Heisey wrote: On 4/21/2015 6:28 PM, Phil Steitz wrote: Thanks for providing the full stack traces, Shawn. I assume the pool config is the same that you posted before, right? Also, the mysql driver seems to be taking initiative to try to clean up abandoned

Re: [DBCP] Apparent deadlock related to getConnection

2015-04-21 Thread Phil Steitz
On 4/21/15 4:47 PM, Shawn Heisey wrote: On 4/14/2015 6:06 AM, James Carman wrote: You may want to consider something like Spring's JdbcTemplate class to avoid a lot of this. I don't know anything about Spring, although I didn't know anything about DBCP either, before I wrote this code. I

Re: Pool blocking but not hitting max size?

2015-04-13 Thread Phil Steitz
On 4/13/15 2:39 PM, Dan wrote: repeatedly seen this happen and would appreciate some input or advice. We're using version 1.6 of the commons pool, I don't believe we could upgrade without good reason. From the line numbers in the stack trace, it looks like you are actually running pool 1.3,

Re: Pool blocking but not hitting max size?

2015-04-13 Thread Phil Steitz
On 4/13/15 9:36 AM, Dan wrote: Hello, I'm not a developer on the project I'm supporting, but I have repeatedly seen this happen and would appreciate some input or advice. We're using version 1.6 of the commons pool, I don't believe we could upgrade without good reason. From the line numbers in

Re: [DBCP] Apparent deadlock related to getConnection

2015-04-12 Thread Phil Steitz
On 4/12/15 2:58 AM, Shawn Heisey wrote: On 4/11/2015 8:48 AM, Phil Steitz wrote: What is going on in that thread is that it is blocked waiting for a connection to become available in the pool. There is no evidence of deadlock there - just pool exhaustion. The most likely culprit

Re: [DBCP] Apparent deadlock related to getConnection

2015-04-12 Thread Phil Steitz
On 4/12/15 10:31 AM, Shawn Heisey wrote: On 4/12/2015 9:16 AM, Phil Steitz wrote: Can you post your full pool config and info on versions of DBCP and POOL? Do you call isClosed() before closing a connection (not recommended - that is really the issue in the ticket you commented)? To make

Re: Apparent DBCP deadlock related to getConnection

2015-04-11 Thread Phil Steitz
On 4/11/15 6:29 AM, Shawn Heisey wrote: I seem to be having a problem very similar to DBCP-398, using DBCP 2.1 with MySQL. https://issues.apache.org/jira/browse/DBCP-398 See the last couple of comments. I am not familiar with the code, so I can't confirm or refute Phil's comment that it

[ANNOUNCEMENT] Apache Commons DBCP 2.1 released

2015-02-24 Thread Phil Steitz
available at the above location. For complete information on Commons DBCP, including instructions on how to submit bug reports, patches, or suggestions for improvement, see the Apache Commons DBCP website: http://commons.apache.org/dbcp Phil Steitz, on behalf of the Apache Commons community

Re: [POOL2] Pooling mutable objects

2015-02-08 Thread Phil Steitz
On Feb 7, 2015, at 2:23 AM, Michael Osipov 1983-01...@gmx.net wrote: Am 2015-02-06 um 19:21 schrieb Phil Steitz: On 2/6/15 10:16 AM, sebb wrote: The existing Pool2 implementations use equals() to decide if two objects are the same. As of pool 2.3. You have to make sure that your

Re: [POOL] Release 2.3 in JIRA

2015-02-08 Thread Phil Steitz
On 2/8/15 1:44 PM, Michael Osipov wrote: Hi, can anyone kindly release 2.3 in JIRA. It is still in the roadmap and not in the changelog. Done. Thanks for pointing this out. The changelog we pay attention to / keep always up to date, is in /src/changes/changes.xml, which appears on the

Re: [POOL2] Pooling mutable objects

2015-02-06 Thread Phil Steitz
On 2/6/15 10:16 AM, sebb wrote: The existing Pool2 implementations use equals() to decide if two objects are the same. As of pool 2.3. You have to make sure that your equals() implementation returns true if and only if the objects being compared are the same as far as your use of them is

Re: [dbcp] SQLException: Error preloading the connection pool after upgrade to commons-dbcp2

2015-01-27 Thread Phil Steitz
On 1/27/15 5:56 AM, Cuenca, Sergio wrote: TITLE: SQLException: Error preloading the connection pool after upgrade to commons-dbcp2 ENVIRONTMENT: * Windows XP * Junit 4.11 * Java 1.7 * Spring 4.0 * maven-compiler-plugin 3.2 * maven.surefire.plugin 2.17 *

Re: [math] About Math.round

2015-01-17 Thread Phil Steitz
On 1/14/15 6:25 AM, ntysdd wrote: Hi, I found Oracle has changed the specification of Math.round and StrictMath.round. See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6430675 These methods had surprising behavior for some values. (The bug report didn't mention that, but these

Re: [math] About Math.round

2015-01-17 Thread Phil Steitz
On 1/17/15 10:55 AM, Phil Steitz wrote: On 1/14/15 6:25 AM, ntysdd wrote: Hi, I found Oracle has changed the specification of Math.round and StrictMath.round. See http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6430675 These methods had surprising behavior for some values. (The bug

Re: [Math] Statistics summary

2015-01-10 Thread Phil Steitz
On 1/9/15 8:01 AM, Gilles wrote: Hi. What is the suggested way to obtain the statistics summary of an _array_ of values? There is SummaryStatistics in o.a.c.m.stat.descriptive but one need to explicitly write the loop to call addValue for each element. [Shouldn't there be a constructor

[ANNOUNCEMENT] Apache Commons Pool 2.3 released

2014-12-31 Thread Phil Steitz
, or suggestions for improvement, see the Apache Commons Pool website: http://commons.apache.org/proper/commons-pool/ Phil Steitz, on behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org

Re: [Math] Cannot download 3.4

2014-12-22 Thread Phil Steitz
On 12/22/14 7:07 PM, Harshit Dwivedi wrote: Hi, I am unable to download Apache Commons Math 3.4 from any of the mirrors. Can you suggest when the latest jar will be available? The 3.4 release is in progress. We are reviewing release candidates, making changes to incorporate feedback and

[pool] [dbcp] Re: evictor destroying connections below minIdle?

2014-10-18 Thread Phil Steitz
On 10/17/14 5:38 PM, Anthony Biacco wrote: I just started running pool 2.2 alongside dbcp 2.0.1 in tomcat 7 against mysql. I noticed a situation while running the idle evictor where there's a time during eviction where the number of connections drops below the value set for minIdle, so in

Re: [math] JDBC output to generate statistical results.

2014-08-26 Thread Phil Steitz
On 8/26/14 8:37 AM, Kulpanowski, David wrote: Messrs. Worden and Eckenfels: Thank you both for your kind assistance. Mr. Worden: your solution works perfectly. This is exactly what I am looking for. Mr. Eckenfels: Please excuse my lack of java coding skills. I am working on it by

Re: [dbcp] How to create replication aware connection pool ?

2014-08-06 Thread Phil Steitz
On 8/6/14 1:15 AM, Mark Thomas wrote: On 06/08/2014 01:34, Parth Patil wrote: Hi Friends, I am using DBCP2 in my project and I am pleased with the performance of the library. Though I am only able to provide a single mysql host in the connection string. What do I need to do inorder to make

Re: Commons Config: Variable Interpolation

2014-07-12 Thread Phil Steitz
On 7/12/14, 9:52 AM, Oliver Heger wrote: Hi Ronald, I have not used ExprLookup myself, so I am not sure whether I am a big help here. Your declaration of the lookup seems to be correct, otherwise an exception would be thrown by DefaultConfigurationBuilder. A difference between your code

Re: Could we have a roots() method in PolynomilFunction class?

2014-07-03 Thread Phil Steitz
On Jul 3, 2014, at 2:30 PM, Gilles gil...@harfang.homelinux.org wrote: On Thu, 3 Jul 2014 18:14:41 +0200, Axel wrote: Ok, but what about my main question: Could we have a roots() method in PolynomialFunction class? Which in the first step delegates to LaguerreSolver#solveAllComplex()?

Re: Multiplexed connections in commons pool

2014-06-19 Thread Phil Steitz
-Original Message- From: Phil Steitz [mailto:phil.ste...@gmail.com] Sent: Thursday, 19 June 2014 12:24 PM To: Commons Users List Subject: Re: Multiplexed connections in commons pool On 6/18/14, 4:07 PM, James Leskovar wrote: Hi there, I have an application that needs to perform

[ANNOUNCEMENT] Apache Commons DBCP 2.0.1 released

2014-05-24 Thread Phil Steitz
://commons.apache.org/proper/commons-dbcp/ Phil Steitz, on behalf of the Apache Commons community - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org

Re: [dbcp] - How to programmatically check the pool status?

2014-04-16 Thread Phil Steitz
On 4/16/14, 2:33 AM, Raffaele Gambelli wrote: Hi all, I'm using Tomcat 6.0.26 and its default dbcp connection pooling system (tomcat-dbcp.jar inside the default installation dir) My question is: How could I check programmatically the connection pool status ? For example inside a catch of

[pool][dbcp][scxml] Apachecon, North America April 7-9

2014-03-05 Thread Phil Steitz
I will be presenting on the newly-released 2.x versions of Commons Pool and DBCP next month at Apachecon, North America in Denver [1]. Ate Douma is also giving a talk on [scxml]. Come join us! Register soon, as prices go up on March 14th. Phil [1] http://na.apachecon.com/.

Re: [math] Stat.Regression Class structure/output

2014-02-21 Thread Phil Steitz
On 2/21/14, 12:39 PM, Zachary Seid wrote: Hello all, I would like to access information wrapped in the RegressionResults class, but for OLSMultipleRegression and/or GLSMultipleRegression. Great suggestion. However, OLS/GLS do not currently support the UpdatingMultipleLinearRegression

Re: [math] 3.3 release date

2014-01-25 Thread Phil Steitz
On 1/25/14, 9:37 AM, supa wrote: Is version 3.3 release date known ? No, we don't set fixed release dates. That said, I think we are getting close, which means some time in the next month or so. Phil Thanks, Siarhei -

Re: [math] 3.3 release date

2014-01-25 Thread Phil Steitz
On 1/25/14, 9:37 AM, supa wrote: Is version 3.3 release date known ? No, we don't set fixed release dates. That said, I think we are getting close, which means a release is likely some time in the next month or so. Phil Thanks, Siarhei

[ANNOUNCEMENT] Apache Commons Pool 2.1 released

2013-12-30 Thread Phil Steitz
bug reports, patches, or suggestions for improvement, see the Apache Commons Pool website: http://commons.apache.org/proper/commons-pool/ Phil Steitz, on behalf of the Apache Commons community - To unsubscribe, e-mail: user

[all] ApacheCon North America 2014

2013-12-18 Thread Phil Steitz
The Call For Proposals for ApacheCon NA, 2014 will go out in the next couple of weeks. PMCs have been asked for volunteers for the Content Committee to review proposals related to their projects. Before we all rush to raise our hands, we thought it best to get a sense for what talks might be

Re: [pool] Factory example

2013-11-29 Thread Phil Steitz
On 11/29/13, 7:28 AM, Manuel Irribarra wrote: Hi, Following the example page, I noted that Factory example for PooleableObjectFactory is wrong. When you extends BasePooledObjectFactory?, there only 2 methods required: + public ? create() + public PooledObject? wrap (? object) I

Re: [math] Determinig steep drop (high rate of change) in a set of numbers

2013-11-28 Thread Phil Steitz
On 11/28/13, 3:39 PM, Mugoma Joseph O. wrote: Hello, I have a set of numbers arranged in desc order. I would like to determine if there's any steep drop and where it occurs i.e. where rate of change is high. e.g. if I define steep drop (high Rate of Change) as any change more than 30%

Re: [Math] Use of Precision class for inequalities

2013-11-02 Thread Phil Steitz
On 10/30/13 4:04 AM, Luc Maisonobe wrote: Le 30/10/2013 11:45, BIGNON Emmanuel a écrit : Hello, Hi Emmanuel, Commons Math has a class Precision that defines equalities and inequalities using epsilon values. I noticed that Commons Math uses the Precison.equals method when necessary (for

Re: [dbcp] does closing a connection return an object to the pool?

2013-10-05 Thread Phil Steitz
On 9/30/13 10:54 AM, Jonathan Buhacoff wrote: Forgot the [dbcp] in the subject on my first post. Reposting: I'm using a library that accepts a DataSource as an input and automatically calls getConnection() as needed and then close() on each connection when it's done. I want to use a

Re: [DBCP]a question about ManualPoolingDriverExample

2013-09-29 Thread Phil Steitz
Good question, Li Li. The answer is no, this is done by the PoolableConnectionFactory constructor. You can see that in the source here: http://svn.apache.org/repos/asf/commons/proper/dbcp/branches/DBCP_1_3_x_BRANCH/src/java/org/apache/commons/dbcp/PoolableConnectionFactory.java. Phil On

Re: commons pool benchmark issue

2013-09-29 Thread Phil Steitz
On 9/28/13 11:50 PM, Daniel Wu wrote: Hi guys, I wrote a simple test for commons-pool. The result shows that the performance drops dramatically when concurrent threads increase. e.g, With 50 threads, the throughput is 603326 transactions per second, when threads increase to 600, the

Re: [dbcp] GenericObjectPool.borrowObject: Timeout waiting for idle object

2013-09-29 Thread Phil Steitz
On 9/29/13 7:13 AM, Bosio Andrea wrote: Hello all, I’m getting the following exception, using commons-dbcp-1.4. Caused by: java.util.NoSuchElementException: Timeout waiting for idle object at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1144)

  1   2   3   >