You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2011/05/01 16:01:03 UTC
[jira] [Created] (LUCENE-3059) PulsingTermState.clone leaks memory
PulsingTermState.clone leaks memory
-----------------------------------
Key: LUCENE-3059
URL: https://issues.apache.org/jira/browse/LUCENE-3059
Project: Lucene - Java
Issue Type: Bug
Affects Versions: 4.0
Reporter: Michael McCandless
Assignee: Michael McCandless
Fix For: 4.0
Attachments: LUCENE-3059.patch
I looked at the heap dump from the OOME this morning (thank you Uwe
for turning this on!), and I think it's a real memory leak.
Well, not really a leak; rather, the cloned PulsingTermState, which we
cache in the terms dict cache, is hanging onto large byte[]
unnecessarily.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (LUCENE-3059) PulsingTermState.clone leaks memory
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-3059.
----------------------------------------
Resolution: Fixed
> PulsingTermState.clone leaks memory
> -----------------------------------
>
> Key: LUCENE-3059
> URL: https://issues.apache.org/jira/browse/LUCENE-3059
> Project: Lucene - Java
> Issue Type: Bug
> Affects Versions: 4.0
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 4.0
>
> Attachments: LUCENE-3059.patch
>
>
> I looked at the heap dump from the OOME this morning (thank you Uwe
> for turning this on!), and I think it's a real memory leak.
> Well, not really a leak; rather, the cloned PulsingTermState, which we
> cache in the terms dict cache, is hanging onto large byte[]
> unnecessarily.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (LUCENE-3059) PulsingTermState.clone leaks memory
Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-3059:
---------------------------------------
Attachment: LUCENE-3059.patch
Patch. I fixed PulsingTermState's clone to make a new PulsingTerm
state and then copy (like we do for StandardCodec). I did the same
for SepCodec, though I don't think that one is leaking memory.
> PulsingTermState.clone leaks memory
> -----------------------------------
>
> Key: LUCENE-3059
> URL: https://issues.apache.org/jira/browse/LUCENE-3059
> Project: Lucene - Java
> Issue Type: Bug
> Affects Versions: 4.0
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: 4.0
>
> Attachments: LUCENE-3059.patch
>
>
> I looked at the heap dump from the OOME this morning (thank you Uwe
> for turning this on!), and I think it's a real memory leak.
> Well, not really a leak; rather, the cloned PulsingTermState, which we
> cache in the terms dict cache, is hanging onto large byte[]
> unnecessarily.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org