[ https://issues.apache.org/jira/browse/POOL-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17610322#comment-17610322 ]
Gary D. Gregory commented on POOL-409: -------------------------------------- Hi [~Tux12Fun] * org.apache.commons.pool2.impl.DefaultEvictionPolicy has no state so nothing to say in a toString() method * I added org.apache.commons.pool2.impl.BaseGenericObjectPool.Evictor.toString() * "Im worry about the Stack Trace is this something critical or a problem of the Class loader or is there a Exception printed? This is confusing to me." * This stack trace is data tracked by the pool. * I'd prefer not making more public for now, so let's see how you get along with git master > BasicDataSource should support GenericObjectPool->getStatsString() > ------------------------------------------------------------------ > > Key: POOL-409 > URL: https://issues.apache.org/jira/browse/POOL-409 > Project: Commons Pool > Issue Type: Improvement > Affects Versions: 2.11.1 > Reporter: Thomas Freller > Priority: Major > Labels: improvement > Original Estimate: 2h > Remaining Estimate: 2h > > Hello, > I'm developing a Application that is running on a default JRE without an > Webserver/JMX. > For optimizing Database connections it would be very useful if i could access > > BasicDataSource->GenericObjectPool->{*}getStatsString(){*} > > I don't see any reason why this Method is protected and not public in > GenericObjectPool. > Then BasicDataSource shoud provide a method getStatsString() or the values > that represent the statistic data. > > If there is any other easy way to access this data within my Java Code I'll > implement this if you could give me an example how to get this working > easily. I don't want do configure any jmx stuff. > > > -- This message was sent by Atlassian Jira (v8.20.10#820010)