public class HeapSpaceStringConverter
extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
StringConverter in XStream
used String.intern(), which stressed the
(rather limited) PermGen space with a large XML file.
Since XStream 1.3 it use a WeakHashMap cache to always use the same String instances, but
this has also major problems with a single long living XStream instance (as we have in Jenkins)
See http://jira.codehaus.org/browse/XSTR-604
Use this to avoid that (instead those strings will now be allocated to the heap space.)
| Constructor and Description |
|---|
HeapSpaceStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConvert(Class type) |
Object |
fromString(String str) |
public boolean canConvert(Class type)
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatchercanConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverterCopyright © 2019. All rights reserved.