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

[lang] Memory "leak" in StringUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • lang.*
    • None
    • Operating System: other
      Platform: All

    • 38792

    Description

      The static field PADDING allocates 262152 bytes for nothing.

      private static final String[] PADDING = new String[Character.MAX_VALUE];

      At least use lazy creation, better completely remove it (move to method) to save
      memory (Having 20 apps on one tomcat --> 5MB allocated for nothing).

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebastian.kirsch@paybox.net sebastian.kirsch
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: