Subject | RE: [Firebird-Java] Possible memory leak in EncodingFactory ? |
---|---|
Author | Rick Debay |
Post date | 2006-06-21T16:24:20Z |
If you keep the caching, you must use SynchronizedHashMap or
ConcurrentHashMap. The cache as it stands is not thread safe.
Multithreaded tests need to be run to find out if performance degrades
due to contention.
-----Original Message-----
From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of Roman Rokytskyy
Sent: Wednesday, June 21, 2006 1:39 AM
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Possible memory leak in EncodingFactory ?
Encoding interface will be "cached" for the lifetime of the XSQLVAR
object, won't have allocated memory except the one for the object
itself.
Thanks!
Roman
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
ConcurrentHashMap. The cache as it stands is not thread safe.
Multithreaded tests need to be run to find out if performance degrades
due to contention.
-----Original Message-----
From: Firebird-Java@yahoogroups.com
[mailto:Firebird-Java@yahoogroups.com] On Behalf Of Roman Rokytskyy
Sent: Wednesday, June 21, 2006 1:39 AM
To: Firebird-Java@yahoogroups.com
Subject: Re: [Firebird-Java] Possible memory leak in EncodingFactory ?
> So I reason the slow-down must be in the pooling. It would get evenThe number are comparable. I guess we stop here. The implementation of
> slower when changed to a SynchronizedHashMap or ConcurrentHashMap.
> Let's test with just the memory reduction for now and see what those
> numbers generate.
Encoding interface will be "cached" for the lifetime of the XSQLVAR
object, won't have allocated memory except the one for the object
itself.
Thanks!
Roman
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links