Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-453

ToStringBuilder can cause serious memory leaks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.3
    • None
    • None
    • None
    • all

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            olafos Olaf Tomczak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: