vazamento de memória JGoodies ?? - Out of exceção de memória quando a Primavera tenta apresentar a vista

StackOverflow https://stackoverflow.com/questions/888348

Pergunta

Estou recebendo uma exceção Out of Memory, por vezes, durante ou após a validação do componente acontece. Eu estava tentando o perfil de um grande resultado validação <= 20000, e funcionou, então eu fui maior. A exceção ocorre para valores> 20000, alguém sabe de quaisquer vazamentos de memória JGoodies inerentes, com a estrutura de validação, o ligante componente, ou qualquer outra coisa?

Exception in thread "sinal validationPerformanceTest" java.lang.OutOfMemoryError: espaço de pilha Java em java.util.Arrays.copyOf (Arrays.java:2882) em java.lang.AbstractStringBuilder.expandCapacity (AbstractStringBuilder.java:100) em java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:390) em java.lang.StringBuffer.append (StringBuffer.java:224) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:107) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:72) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:100) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:87) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:66) em org.springframework.core.style.StylerUtils.style (StylerUtils.java:47) em org.springframework.webflow.core.collection.LocalAttributeMap.toString (LocalAttributeMap.java:312) em java.lang.String.valueOf (String.java:2827) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:78) em org.springframework.core.style.DefaultToStringStyler.styleValue (DefaultToStringStyler.java:91) em org.springframework.core.style.DefaultToStringStyler.styleField (DefaultToStringStyler.java:79) em org.springframework.core.style.ToStringCreator.append (ToStringCreator.java:156) em org.springframework.webflow.engine.impl.FlowSessionImpl.toString (FlowSessionImpl.java:207) em java.lang.String.valueOf (String.java:2827) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:78) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:107) em org.springframework.core.style.DefaultValueStyler.style (DefaultValueStyler.java:72) em org.springframework.core.style.DefaultToStringStyler.styleValue (DefaultToStringStyler.java:91) em org.springframework.core.style.DefaultToStringStyler.styleField (DefaultToStringStyler.java:79) em org.springframework.core.style.ToStringCreator.append (ToStringCreator.java:156) em org.springframework.webflow.engine.impl.FlowExecutionImpl.toString (FlowExecutionImpl.java:499) em java.lang.String.valueOf (String.java:2827) em java.lang.StringBuffer.append (StringBuffer.java:219) em org.springframework.webflow.execution.repository.support.SimpleFlowExecutionRepository.putFlowExecution (SimpleFlowExecutionRepository.java:130) em org.springframework.webflow.executor.FlowExecutorImpl.resume (FlowExecutorImpl.java:226) em com.mason.core.application.flow.ApplicationFlowEngine $ SignalEventTask.execute (ApplicationFlowEngine.java:188) em com.mason.core.application.flow.ApplicationFlowEngine $ 1.run (ApplicationFlowEngine.java:99) em java.lang.Thread.run (Thread.java:619)

Foi útil?

Solução

ligar -XX: + HeapDumpOnOutOfMemoryError (supondo que você tem um dom JVM) e carregar o despejo de pilha no Eclipse Memória Analyzer . Deve ser fácil para descobrir o que está precisando de muita memória.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top