ssh-麻烦大家帮我看看下面的问题怎么解决?

问题描述

麻烦大家帮我看看下面的问题怎么解决?

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

ssh-麻烦大家帮我看看下面的问题怎么解决?的相关文章

麻烦大家帮我看看下面的sql问题?

问题描述 麻烦大家帮我看看下面的sql问题? select distinct a.* from a,b where to_char(a.reg_date,'yyyy-mm-dd') >= '2015-08-10' and to_char(a.reg_date,'yyyy-mm-dd') < '2015-08-11' and a.card_no = b.card_no and a.dept_name is not null and a.dept_name <> '.' and a.v

c语言-麻烦大家帮我看一下这段代码有啥错误?

问题描述 麻烦大家帮我看一下这段代码有啥错误? #include<stdio.h> int b[100],c[100],x; void input(int a[],int n) {printf("输入数组a<10个元素>:"); for(int i=0;i<n;i++) scanf("%c",&a[i]);} void insert(int a[],int n,int x) {for(int i=0;i<n;i++) if

MySQL 麻烦大家帮我看看下面的两张表如何创建?

问题描述 MySQL 麻烦大家帮我看看下面的两张表如何创建? CREATE TABLE store ( store_id TINYINT UNSIGNED NOT NULL AUTO_INCREMENT, manager_staff_id TINYINT UNSIGNED NOT NULL, address_id SMALLINT UNSIGNED NOT NULL, last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDA

ajax-extjs 麻烦大家帮我看看下面的问题

问题描述 extjs 麻烦大家帮我看看下面的问题 在js文件中定义一个全局变量var orderLen;在ajax中,Ext.Ajax.request({ url : appBaseUri , timeout : 20000 method : ""GET"" success : function(response) { var result = eval(""("" + response.responseText + &quo

变换-麻烦各位帮我改下程序吧,输入#include &amp;amp;quot;stdafx.h&amp;amp;quot;在VC++上面不能运行呀~~

问题描述 麻烦各位帮我改下程序吧,输入#include "stdafx.h"在VC++上面不能运行呀~~ #include ""stdafx.h""#include #include #include #include #include #define N 1000 /*定义复数类型*/ typedef struct { double real; double img; }complex; void fft(); /*快速傅里叶变换*/ void

gzip windows2008-windows 2008 配置gzip却无效,麻烦高手帮我看看

问题描述 windows 2008 配置gzip却无效,麻烦高手帮我看看 1.服务器自动开启了动态压缩和静态压缩 2.js的mime类型是application/x-javascript 3.applicationhost.config 文件已经修改如下: 为什么尼玛就还是不行呢?搞了一天啦

java中需要统计子串在字符串中出现多少次。 麻烦大家帮我详细解释一下那串代码是什么意思。谢谢了!

问题描述 java中需要统计子串在字符串中出现多少次. 麻烦大家帮我详细解释一下那串代码是什么意思.谢谢了! String str="abcjavadefjavadddjava"; String newStr="java"; int count=0; int i=0;//出现的下标 while(str.indexOf(newStr,i)>=0 && i<=str.length()){ count++; i = str.indexOf(ne

关于java问题-麻烦大家帮我看看。急。。。谢谢

问题描述 麻烦大家帮我看看.急...谢谢 间的所有的可逆素数//要求步骤,即一个步骤对于一个方法://1.找到1001~9999之间的所有的素数,保存到数组primes中//2.在primes数组中,找到所有的可逆素数,保存到数组oddprimes中//3.在oddprimes数组中,找到所有不含2和5的可逆素数,保存到primes数组中//4.输出oddprimes数组和primes数组,每行10个素数 解决方案 不知道你说的可逆是什么意思. 找素数可以参考 http://blog.163.c

spring-Java 麻烦大家帮我看看下面的代码

问题描述 Java 麻烦大家帮我看看下面的代码 Map queryDynamicConditions = new HashMap(); queryDynamicConditions.put("$isNull_authNumber", new Boolean(false)); order.setQueryDynamicConditions(queryDynamicConditions); 能帮我具体解释一下这段代码是怎么工作的?另外,我想把条件换成大于等于系统时间,我应该怎么写?请大家指