问题描述
- 麻烦大家帮我看看下面的问题怎么解决?
-
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2367)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
at java.lang.StringBuilder.append(StringBuilder.java:132)
at org.thymeleaf.util.JavaScriptUtils.printString(JavaScriptUtils.java:185)
at org.thymeleaf.util.JavaScriptUtils.print(JavaScriptUtils.java:143)
at org.thymeleaf.util.JavaScriptUtils.printKeyValue(JavaScriptUtils.java:328)
at org.thymeleaf.util.JavaScriptUtils.printMap(JavaScriptUtils.java:321)
at org.thymeleaf.util.JavaScriptUtils.printObject(JavaScriptUtils.java:349)
at org.thymeleaf.util.JavaScriptUtils.print(JavaScriptUtils.java:174)
at org.thymeleaf.util.JavaScriptUtils.printCollection(JavaScriptUtils.java:306)
at org.thymeleaf.util.JavaScriptUtils.print(JavaScriptUtils.java:163)
at org.thymeleaf.util.JavaScriptUtils.print(JavaScriptUtils.java:54)
at org.thymeleaf.standard.inliner.StandardJavaScriptTextInliner.formatEvaluationResult(StandardJavaScriptTextInliner.java:46)
at org.thymeleaf.standard.inliner.AbstractStandardScriptingTextInliner.processScriptingVariableInline(AbstractStandardScriptingTextInliner.java:288)
at org.thymeleaf.standard.inliner.AbstractStandardScriptingTextInliner.processScriptingInline(AbstractStandardScriptingTextInliner.java:88)
at org.thymeleaf.standard.inliner.AbstractStandardScriptingTextInliner.inline(AbstractStandardScriptingTextInliner.java:75)
at org.thymeleaf.standard.processor.text.StandardTextInliningTextProcessor.processTextNode(StandardTextInliningTextProcessor.java:93)
at org.thymeleaf.processor.text.AbstractTextNodeProcessor.doProcess(AbstractTextNodeProcessor.java:69)
at org.thymeleaf.processor.AbstractProcessor.process(AbstractProcessor.java:212)
at org.thymeleaf.dom.Node.applyNextProcessor(Node.java:1016)
at org.thymeleaf.dom.Node.processNode(Node.java:971)
at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:672)
at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:655)
at org.thymeleaf.dom.Node.processNode(Node.java:990)
at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:672)
at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:655)
at org.thymeleaf.dom.Node.processNode(Node.java:990)
at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:672)
at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:655)
at org.thymeleaf.dom.Node.processNode(Node.java:990)
解决方案
Arrays.copyOf这个方法调用的时候内存溢出了,你看看是不是代码出现了死循环或者其它数组过大的情况。
解决方案二:
堆空间溢出
http://www.cnblogs.com/linjiqin/archive/2011/04/27/2030115.html
http://blog.csdn.net/jxzxm1_2/article/details/2499751
解决方案三:
数组越界,看看是不是数组长度超限了
时间: 2024-08-17 13:04:01