Bug 1008763 - PreparedStatementCacheCurrentSize unexpectedly exceeds (min-pool-size * prepared-statement-cache-size)
Summary: PreparedStatementCacheCurrentSize unexpectedly exceeds (min-pool-size * prepa...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: JCA
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ER3
: EAP 6.2.0
Assignee: Jesper Pedersen
QA Contact: Vladimir Rastseluev
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-17 03:34 UTC by Osamu Nagano
Modified: 2018-12-02 15:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:16:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
reproducer (6.21 KB, application/zip)
2013-09-17 03:34 UTC, Osamu Nagano
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1008969 0 high CLOSED IronJacamar 1.0.21.Final 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBJCA-1083 0 Critical Closed PreparedStatement cache constraints not maintained 2016-03-17 12:25:30 UTC

Description Osamu Nagano 2013-09-17 03:34:13 UTC
Created attachment 798552 [details]
reproducer

Description of problem:
PreparedStatementCacheCurrentSize should be equal to or less than (min-pool-size * prepared-statement-cache-size).  This invariant is sometimes broken.


Version-Release number of selected component:
EAP 6.0.1 (IronJacamar 1.0.13.Final)


How reproducible:
I made a Maven project which contains a single servlet to reproduce the issue.


Steps to Reproduce:
0. Add the following settings to the default ExampleDS in a standalone server.
--
/subsystem=datasources/data-source=ExampleDS:write-attribute(name=max-pool-size,value=2)
/subsystem=datasources/data-source=ExampleDS:write-attribute(name=min-pool-size,value=2)
/subsystem=datasources/data-source=ExampleDS:write-attribute(name=prepared-statements-cache-size,value=10)
--
1. Build the attachment, mvn package.
2. Deploy it, ./target/case00933743repro.war.
3. Access to http://localhost:8080/case00933743repro/.
4. See the statistics.
--
[standalone@localhost:9999 /] ls -l /subsystem=datasources/data-source=ExampleDS/statistics=jdbc
ATTRIBUTE                         VALUE TYPE 
PreparedStatementCacheAccessCount 50    LONG 
PreparedStatementCacheAddCount    50    LONG 
PreparedStatementCacheCurrentSize 24    INT  
PreparedStatementCacheDeleteCount 26    LONG 
PreparedStatementCacheHitCount    0     INT  
PreparedStatementCacheMissCount   0     INT  
--


Actual results:
PreparedStatementCacheCurrentSize is 24.


Expected results:
PreparedStatementCacheCurrentSize should be 20.


Additional info:
This happens as well as the latest relaase.
EAP 6.1.1 (IronJacamar 1.0.19.Final)

Comment 1 Osamu Nagano 2013-09-17 03:38:31 UTC
Jesper already fixed this in the upstream.
https://issues.jboss.org/browse/JBJCA-1083
https://github.com/ironjacamar/ironjacamar/commit/831367dea16f40e6c697ecf1d2fde745d3fac127

So let's include IronJacamar 1.0.21.Final into the next release of EAP, probably 6.2.0.

Comment 2 Jesper Pedersen 2013-09-17 12:21:09 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1008969

Comment 3 JBoss JIRA Server 2013-09-18 14:29:40 UTC
Jesper Pedersen <jpederse> updated the status of jira JBJCA-1083 to Closed

Comment 6 Vladimir Rastseluev 2013-10-07 07:29:24 UTC
Verified on EAP 6.2.0 ER4


Note You need to log in before you can comment on or make changes to this bug.