You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rene Scheibe (JIRA)" <ji...@apache.org> on 2011/04/25 12:36:06 UTC

[jira] [Commented] (POOL-119) GenericObjectPool: Provide option to create new objects serial

    [ https://issues.apache.org/jira/browse/POOL-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024768#comment-13024768 ] 

Rene Scheibe commented on POOL-119:
-----------------------------------

And what about the ensureMinIdle() method which calls addObject()?
At the moment this is already serialized.

It would be nice if the evictor could create the minIdle objects in parallel. Currently it just calls addObject inside a loop. So for expensive object creation _factory.makeObject() inside addObject() blocks for quite some time.

> GenericObjectPool: Provide option to create new objects serial
> --------------------------------------------------------------
>
>                 Key: POOL-119
>                 URL: https://issues.apache.org/jira/browse/POOL-119
>             Project: Commons Pool
>          Issue Type: New Feature
>    Affects Versions: 1.4
>            Reporter: Christoph Kutzinski
>             Fix For: 2.0
>
>         Attachments: patch.txt, patch2.txt
>
>
> As discussed on the Commons-Dev mailing list:
> In certain scenarios it is desirable to serialize creation of new objects, if the pool needs to grow. This has 2 main advantages:
> - help keeping load away from the engine creating the objects (e.g. the database server) during high load situations
> - avoid unnecessary object creation if objects where returned to pool while multiple 'new' objects are requested from the pool

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira