[jboss-jira] [JBoss JIRA] Commented: (JBCACHE-1336) Pooling Object Streams

Manik Surtani (JIRA) jira-events at lists.jboss.org
Wed Apr 30 14:06:18 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBCACHE-1336?page=comments#action_12411403 ] 
            
Manik Surtani commented on JBCACHE-1336:
----------------------------------------

See my blog about this on http://jbosscache.blogspot.com/2008/02/reusable-object-streams.html

This was implemented but had to be rolled back as it leaked memory and classloaders since it relied on extending the JDK streams which cached these internally.  And reusing them meant that this cache grew infinitely with use.  See JBCACHE-1325.

Need to think of a better implementation, possibly not extending JDK streams.



> Pooling Object Streams
> ----------------------
>
>                 Key: JBCACHE-1336
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1336
>             Project: JBoss Cache
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Mircea Markus
>         Assigned To: Manik Surtani
>             Fix For: 3.0.0
>
>
> ObjectStreams creation consumes a lot of time when it comes to marshalling commands (e.g. > 5% of total command in case of put is in building the ObjectStream).
> Pooling  them would be an important performance enhancement.
> We cannot pool the ones from JDK as these cache .class information which results in memory leakage.
> Investigate the possibility of implementing own alternative ObjectStreams which would be pool-able. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list