[ http://issues.apache.org/jira/browse/XERCESJ-1214?page=all ]
Michael Glavassevich updated XERCESJ-1214:
------------------------------------------
Affects Version/s: 2.8.1
> Provide a SymbolTable with SoftReferences to avoid OutOfMemoryErrors
> --------------------------------------------------------------------
>
> Key: XERCESJ-1214
> URL: http://issues.apache.org/jira/browse/XERCESJ-1214
> Project: Xerces2-J
> Issue Type: New Feature
> Components: Other
> Affects Versions: 2.8.1
> Reporter: Peter McCracken
> Assigned To: Peter McCracken
> Priority: Minor
> Fix For: 2.9.0
>
>
> The standard org.apache.xerces.util.SymbolTable keeps strong references to
> its String symbols, and provides no mechanism to eliminate symbolsonce added.
> Although this is fine for most situations, if a SymbolTable is expected to
> have a long lifetime and parse many dissimilar documents, or to parse
> documents containing many different unique strings (possibly because of
> artificially generated prefixes), then the SymbolTable can cause an
> OutOfMemoryError.
> An alternate SymbolTable should be provided that keeps SoftReferences to its
> symbols, so that OutOfMemoryErrors will never happen. The overhead of using
> SoftReferences means that this should not become the default SymbolTable, but
> it would be useful as an option for people encountering the above parsing
> scenarios.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]