[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] Commented: (LANG-453) ToStringBuilder can cause serious
From:       "Olaf Tomczak (JIRA)" <jira () apache ! org>
Date:       2008-07-31 17:32:31
Message-ID: 1003419833.1217525551898.JavaMail.jira () brutus
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/LANG-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618764#action_12618764 \
] 

Olaf Tomczak commented on LANG-453:
-----------------------------------

Ok, I found the problem - invalid hash code method implementation in on of MY classes \
caused its instances to stay in tostringbuilder's registry. Sorry for my overreaction \
and thanks a lot.

> ToStringBuilder can cause serious memory leaks
> ----------------------------------------------
> 
> Key: LANG-453
> URL: https://issues.apache.org/jira/browse/LANG-453
> Project: Commons Lang
> Issue Type: Improvement
> Affects Versions: 2.3
> Environment: all
> Reporter: Olaf Tomczak
> 
> ToStringBuilder's constructor registers object passed as argument in thread local \
> static registry.  This causes serious memory problems in applications that run for \
> a long time, use thread pooling and process large amount of data (e.g. enterprise \
> web applications). Each call to toString method on an object causes this object to \
> be practically impossible to garbage collect.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic