java.lang.OutOfMemoryError: Java heap space java内存溢出问题 有错误信息

2013-12-26 11:18:09 [ERROR]-[rmss:165] Housekeeping log.error( :
java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.(AbstractStringBuilder.java:45)
at java.lang.StringBuilder.(StringBuilder.java:68)
at org.logicalcobwebs.proxool.HouseKeeper.sweep(HouseKeeper.java:90)
at org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:39)
2013-12-26 11:18:09 [ERROR]-[rmss:105] Prototype
org.logicalcobwebs.proxool.ProxoolException: Unexpected prototyping problem
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:229)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)
Caused by: java.lang.OutOfMemoryError: Java heap space
at sun.security.util.DerInputBuffer.toByteArray(DerInputBuffer.java:51)
at sun.security.util.DerInputStream.toByteArray(DerInputStream.java:131)
at sun.security.x509.X500Name.parseDER(X500Name.java:767)
at sun.security.x509.X500Name.(X500Name.java:290)
at sun.security.x509.CertificateIssuerName.(CertificateIssuerName.java:65)
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:668)
at sun.security.x509.X509CertInfo.(X509CertInfo.java:152)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1729)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:179)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305)
at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:404)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
... 2 more

Caused by:
java.lang.OutOfMemoryError: Java heap space
at sun.security.util.DerInputBuffer.toByteArray(DerInputBuffer.java:51)
at sun.security.util.DerInputStream.toByteArray(DerInputStream.java:131)
at sun.security.x509.X500Name.parseDER(X500Name.java:767)
at sun.security.x509.X500Name.(X500Name.java:290)
at sun.security.x509.CertificateIssuerName.(CertificateIssuerName.java:65)
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:668)
at sun.security.x509.X509CertInfo.(X509CertInfo.java:152)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1729)
at sun.security.x509.X509CertImpl.(X509CertImpl.java:179)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:90)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305)
at com.sun.net.ssl.internal.ssl.HandshakeMessage$CertificateMsg.(HandshakeMessage.java:404)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)

将excle数据读取后插入数据库出错

1个回答

excel插入数据太多了,导致jvm内存溢出,解决方法,使用POI2007那一版 数据刷新即可解决问题

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
java.lang.OutOfMemoryError: Java heap space
``` package com.shopping.view.app.action; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.nutz.json.Json; import org.nutz.json.JsonFormat; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import com.alibaba.fastjson.JSON; import com.shopping.core.annotation.SecurityMapping; import com.shopping.foundation.domain.GoodsBrand; import com.shopping.foundation.domain.GoodsClass; import com.shopping.foundation.service.IGoodsBrandService; import com.shopping.foundation.service.IGoodsClassService; @Controller public class APIGoods_listAction { @Autowired private IGoodsBrandService goodsBrandService; @Autowired private IGoodsClassService goodsClassService; @RequestMapping(value="/api/goods_list.htm",produces = "text/html;charset=UTF-8") @ResponseBody public String goods_list(HttpServletResponse response) { List<GoodsBrand> gbs = this.goodsBrandService.query("select obj from GoodsBrand obj order by obj.sequence asc", null, -1, -1); // List<GoodsClass> gcs = this.goodsClassService.query( // "select obj from GoodsClass obj where obj.parent.id is null order by obj.sequence asc", null, -1, -1); response.setContentType("text/json"); response.setHeader("Cache-Control", "no-cache"); response.setCharacterEncoding("UTF-8"); if(gbs!=null && gbs.size()>0){ String data = Json.toJson(gbs, JsonFormat.compact()); return "{\"statusCode\":200,\"msg\":\"加载成功!\",\"data\":"+data+"}"; }else{ return "{\"statusCode\":500,\"msg\":\"系统错误!\"}"; } } } ``` ``` 六月 12, 2017 5:15:12 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet [shopping] in context with path [/shopping] threw exception [Handler processing failed; nested exception is java.lang.OutOfMemoryError: Java heap space] with root cause java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:622) at java.lang.StringBuilder.append(StringBuilder.java:202) at org.nutz.lang.stream.StringWriter.write(StringWriter.java:23) at java.io.Writer.write(Writer.java:113) at java.io.Writer.append(Writer.java:293) at org.nutz.json.JsonRendering.string2Json(JsonRendering.java:237) at org.nutz.json.JsonRendering.appendName(JsonRendering.java:55) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:71) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) at org.nutz.json.JsonRendering.coll2Json(JsonRendering.java:297) at org.nutz.json.JsonRendering.render(JsonRendering.java:269) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:73) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) at org.nutz.json.JsonRendering.coll2Json(JsonRendering.java:297) at org.nutz.json.JsonRendering.render(JsonRendering.java:269) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:73) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:73) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:73) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) at org.nutz.json.JsonRendering.appendPair(JsonRendering.java:73) at org.nutz.json.JsonRendering.pojo2Json(JsonRendering.java:192) at org.nutz.json.JsonRendering.render(JsonRendering.java:273) ```
springmvc 实现文件下载 出现异常java.lang.OutOfMemoryError: Java heap space
网上找解决方案,一般都是tomcat中添加-Xms256m -Xms512m等配置,但是不行啊。 我的是MyEclipse里的tomcat。 下载20M(包括)以内的文件没问题,超过就会报异常,有什么解决办法吗? 还有是不是请求下载文件时,服务器会把文件全部装入内存再发过来,还是分成多个部分发送,超过内存大小的文件如何发送呢? ** *--异常信息* ** type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.OutOfMemoryError: Java heap space org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1259) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) root cause java.lang.OutOfMemoryError: Java heap space org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:324) org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:361) org.apache.commons.io.FileUtils.readFileToByteArray(FileUtils.java:1360) com.ysm.ysite.controller.Test.fileDownload(Test.java:60) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
SSH出现Caused by: java.lang.OutOfMemoryError: Java
[list=1] [Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/addUser' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'userDAOProxy' while setting bean property 'dao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOProxy' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDAOProxy' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space Caused by: java.lang.OutOfMemoryError: Java heap space ] [/list]
ecside java.lang.OutOfMemoryError: Java heap space
数据库里存有12000两条数据,采用ecside组件(没有使用数据分页) 在显示全部数据是出现java.lang.OutOfMemoryError: Java heap space错误 请强人指点: 1、tomcat5.5怎么配置jvm的内存? 网上太多资料都是copy,没多少用,详细讲解。 2、java怎么写段代码让他刷新内存? xpajy1314@163.com 谢谢…… 谢谢……
java 上传大文件(1G)报错 java.lang.OutOfMemoryError
java.lang.OutOfMemoryError: Java heap space java.util.Arrays.copyOf(Arrays.java:2271) java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:113) java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93) java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:140) com.landa.util.FileToByte.getBytesFromFile(FileToByte.java:25) com.landa.action.NewsAction.addNews(NewsAction.java:111) 代码: public static byte[] getBytesFromFile(File f){ if (f == null){ return null; } try { FileInputStream stream = new FileInputStream(f); ByteArrayOutputStream out = new ByteArrayOutputStream(1000); byte[] b = new byte[1000]; int n; while ((n = stream.read(b)) != -1){ out.write(b, 0, n); } stream.close(); out.close(); return out.toByteArray(); } catch (IOException e){ e.printStackTrace(); System.out.println("程序发生错误,抛出异常为 "+e.getMessage()); }
Java错误:java.lang.OutOfMemoryError: Java heap space
我很奇怪,在网上查,都说是内存溢出,但是我是在插入数据,sql也很简单,如下: [code="java"] [02 23:48:45,339 DEBUG] [http-8080-1] sql.PreparedStatement - {pstm-100001} Executing Statement: insert into zdgxb (zdlsbh,xsbh) values (?,?) [02 23:48:45,340 DEBUG] [http-8080-1] sql.PreparedStatement - {pstm-100001} Parameters: [2, 1] [/code] 就这么点东西,执行完了就卡在那不动,然后报错。。我真的是无语了。。怎么会这样? 我的框架是spring+struts+ibatis
Java创建双向循环链表报java.lang.OutOfMemoryError: Java heap space,是什么问题?
public class DoublyLinkedNode { private char data; private DoublyLinkedNode prior; private DoublyLinkedNode next; public DoublyLinkedNode() { } public DoublyLinkedNode(char data, DoublyLinkedNode prior, DoublyLinkedNode next) { this.data = data; this.prior = prior; this.next = next; } } ``` /** * 线性表的链式存储结构-双向循环链表 */ public class DoublyCircularLinkedList implements LinearLinkedList { private DoublyLinkedNode head; public DoublyCircularLinkedList() { head = new DoublyLinkedNode(); head.setPrior(head); head.setNext(head); } /** * 尾插法建表 * * @param data */ @Override public void createListTail(char data) { DoublyLinkedNode temp = new DoublyLinkedNode(data, head.getPrior(), head); head.getPrior().setNext(temp); head.setPrior(temp); } } ```
tomcat无法部署工程及内存溢出错误
小白来提问 下面是我的错误代码 Error deploying web application directory nemsweb java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at java.io.PrintWriter.print(PrintWriter.java:559) at java.io.PrintWriter.println(PrintWriter.java:695) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:536) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) 关于java.lang.OutOfMemoryError我已经按照搜索的文章重新设置了tomcat jvm参数 但是还是报错 跪等大侠出马
tomcat的backgroundProcess在处理session时出现堆内存溢出问题
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren 严重: Exception invoking periodic operation: java.lang.OutOfMemoryError: Java heap space at java.lang.reflect.Array.newArray(Native Method) at java.lang.reflect.Array.newInstance(Array.java:52) at java.util.Arrays.copyOf(Arrays.java:2760) at java.util.Arrays.copyOf(Arrays.java:2734) at java.util.AbstractCollection.finishToArray(AbstractCollection.java:198) at java.util.AbstractCollection.toArray(AbstractCollection.java:173) at org.apache.catalina.session.ManagerBase.findSessions(ManagerBase.java:873) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:676) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:667) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1316) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:662)
项目运行出现Java heap space错误怎么解决的?
项目是导入的别人的,下面是console [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.zjtzsw.sjjy:ZJSX2014:war:1.0.0 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 112, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 75, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 112, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 96, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 就业项目 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> jetty-maven-plugin:8.1.9.v20130131:run (default-cli) > test-compile @ ZJSX2014 >>> [WARNING] The POM for com.zjtzsw:sjjy:jar:api:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ZJSX2014 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 653 resources [INFO] Copying 227 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ZJSX2014 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ZJSX2014 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mockingjay/Documents/workspace/ZJSX2014/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ZJSX2014 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< jetty-maven-plugin:8.1.9.v20130131:run (default-cli) < test-compile @ ZJSX2014 <<< [INFO] [INFO] --- jetty-maven-plugin:8.1.9.v20130131:run (default-cli) @ ZJSX2014 --- [INFO] Configuring Jetty for project: 就业项目 [INFO] webAppSourceDirectory not set. Defaulting to /Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp [INFO] Reload Mechanic: automatic [INFO] Classes = /Users/mockingjay/Documents/workspace/ZJSX2014/target/classes [INFO] Context path = /lemis [INFO] Tmp directory = /Users/mockingjay/Documents/workspace/ZJSX2014/target/tmp [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/WEB-INF/web.xml [INFO] Webapp directory = /Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp [INFO] jetty-8.1.9.v20130131 [INFO] No Transaction manager found - if your webapp requires one, please configure one. [INFO] No Spring WebApplicationInitializer types detected on classpath [INFO] Initializing Spring root WebApplicationContext [INFO] Root WebApplicationContext: initialization started <org.springframework.web.context.ContextLoader.initWebApplicationContext()> (ContextLoader.java:273) [INFO] Refreshing Root WebApplicationContext: startup date [Wed Aug 15 08:40:23 CST 2018]; root of context hierarchy <org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh()> (AbstractApplicationContext.java:495) [INFO] Loading XML bean definitions from class path resource [applicationContext.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning <org.springframework.context.annotation.ClassPathBeanDefinitionScanner.registerDefaultFilters()> (ClassPathScanningCandidateComponentProvider.java:202) [INFO] JSR-330 'javax.inject.Named' annotation found and supported for component scanning <org.springframework.context.annotation.ClassPathBeanDefinitionScanner.registerDefaultFilters()> (ClassPathScanningCandidateComponentProvider.java:210) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-comsubsidy.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-reemployment.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-common.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-daoru.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-sysmanager.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-organization.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-payment.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-android.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-miniui.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-entrepsubsidv.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-personsubsidy.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-graduate.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-othermessage.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-basicinfo.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/extension/spring/applicationContext-x.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/extension/spring/applicationContext-bean-laboragency.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading properties file from class path resource [db.properties] <org.springframework.context.support.PropertySourcesPlaceholderConfigurer.loadProperties()> (PropertiesLoaderSupport.java:177) [INFO] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring <org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.<init>()> (AutowiredAnnotationBeanPostProcessor.java:139) [INFO] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c821f8c: defining beans [cb57Services,cc73Services,ce24Services,ce19Services,cc59Services,ce20Services,cc70Services,ce3233Services,ce27Services,cc74Services,ce23Services,ce3031Services,cb69Services,ce3738Services,cb67Services,cb60Services,cb58Services,cb65Services,cb66Services,cc72hServices,ce3435Services,ce3839Services,ce28Services,ce22Services,cc75Services,ce26Services,labpublicServices,cb68Services,cb56Services,ce21Services,ce25Services,cc72Services,cd07Services,cd06Services,cd1119Services,cd1113Services,cd1117Services,cd1114Services,aa12Services,cd1115Services,cd1111Services,cd1116Services,cd1112Services,cd1118Services,cd1302Services,cd1301Services,cd1303Services,cd1201Services,cd130403Services,cd3327Services,cd130401Services,cd130402Services,cd8004Services,cd6131Services,cd6152Services,cd6121Services,personSubsidyServices,comSubsidyServices,oftenfunServices,aa33Services,daoRuServices,sc13Services,ca11Services,sc10Services,ze12Services,sc14Services,sc03Services,sc89Services,aa10Services,sc20Services,aa01Services,sc18Services,ad13Services,sc88Services,sc01dmServices,sc02Services,sc11Services,sc06Services,sc01Services,sc05Services,sc12Services,homeInfoServices,homeServices,personalServices,pubsearchServices,miniuiServices,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txAdvice,allManagerMethod,allManagerMethod2,allManagerMethod3,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,comSubsidyMapper,aa33Mapper,oftenfunMapper,daoRuMapper,sc01Mapper,sc02Mapper,sc01dmMapper,sc03Mapper,sc06Mapper,ad13Mapper,sc05Mapper,sc88Mapper,sc89Mapper,ze12Mapper,cd1111Mapper,cd1112Mapper,cd1113Mapper,cd1114Mapper,cd1115Mapper,cd1116Mapper,cd1117Mapper,cd1118Mapper,cd1119Mapper,aa12Mapper,cd3327Mapper,cd130401Mapper,cd130402Mapper,cd130403Mapper,cd8004Mapper,homeMapper,homeinfoMapper,personalMapper,pubsearchMapper,miniuiMapper,entrepSubsidyMapper,personSubsidyMapper,cd6131Mapper,cd6121Mapper,cd6152Mapper,cd1301Mapper,cd1302Mapper,cd1303Mapper,cd1201Mapper,cb60Mapper,cb65Mapper,cb66Mapper,cb67Mapper,cb68Mapper,cb69Mapper,labpublicMapper,cb57Mapper,cb58Mapper,ce23Mapper,ce22Mapper,cb56Mapper,cc72Mapper,cc72hMapper,cc73Mapper,ce21Mapper,cc70Mapper,cc75Mapper,cc59Mapper,ce3435Mapper,cc74Mapper,ce19Mapper,ce20Mapper,ce24Mapper,ce25Mapper,aa10Mapper,aa01Mapper,sc10Mapper,sc11Mapper,sc12Mapper,sc13Mapper,sc14Mapper,sc18Mapper,sc20Mapper,ca11Mapper,ce26Mapper,ce27Mapper,ce28Mapper,ce3031Mapper,ce3233Mapper,ce3738Mapper,ce3839Mapper,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy <org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons()> (DefaultListableBeanFactory.java:557) [INFO] MLog clients using log4j logging. <com.mchange.v2.log.MLog.<clinit>()> (MLog.java:80) [INFO] Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10] <com.mchange.v2.c3p0.C3P0Registry.banner()> (C3P0Registry.java:204) [INFO] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c821f8c: defining beans [cb57Services,cc73Services,ce24Services,ce19Services,cc59Services,ce20Services,cc70Services,ce3233Services,ce27Services,cc74Services,ce23Services,ce3031Services,cb69Services,ce3738Services,cb67Services,cb60Services,cb58Services,cb65Services,cb66Services,cc72hServices,ce3435Services,ce3839Services,ce28Services,ce22Services,cc75Services,ce26Services,labpublicServices,cb68Services,cb56Services,ce21Services,ce25Services,cc72Services,cd07Services,cd06Services,cd1119Services,cd1113Services,cd1117Services,cd1114Services,aa12Services,cd1115Services,cd1111Services,cd1116Services,cd1112Services,cd1118Services,cd1302Services,cd1301Services,cd1303Services,cd1201Services,cd130403Services,cd3327Services,cd130401Services,cd130402Services,cd8004Services,cd6131Services,cd6152Services,cd6121Services,personSubsidyServices,comSubsidyServices,oftenfunServices,aa33Services,daoRuServices,sc13Services,ca11Services,sc10Services,ze12Services,sc14Services,sc03Services,sc89Services,aa10Services,sc20Services,aa01Services,sc18Services,ad13Services,sc88Services,sc01dmServices,sc02Services,sc11Services,sc06Services,sc01Services,sc05Services,sc12Services,homeInfoServices,homeServices,personalServices,pubsearchServices,miniuiServices,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txAdvice,allManagerMethod,allManagerMethod2,allManagerMethod3,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,comSubsidyMapper,aa33Mapper,oftenfunMapper,daoRuMapper,sc01Mapper,sc02Mapper,sc01dmMapper,sc03Mapper,sc06Mapper,ad13Mapper,sc05Mapper,sc88Mapper,sc89Mapper,ze12Mapper,cd1111Mapper,cd1112Mapper,cd1113Mapper,cd1114Mapper,cd1115Mapper,cd1116Mapper,cd1117Mapper,cd1118Mapper,cd1119Mapper,aa12Mapper,cd3327Mapper,cd130401Mapper,cd130402Mapper,cd130403Mapper,cd8004Mapper,homeMapper,homeinfoMapper,personalMapper,pubsearchMapper,miniuiMapper,entrepSubsidyMapper,personSubsidyMapper,cd6131Mapper,cd6121Mapper,cd6152Mapper,cd1301Mapper,cd1302Mapper,cd1303Mapper,cd1201Mapper,cb60Mapper,cb65Mapper,cb66Mapper,cb67Mapper,cb68Mapper,cb69Mapper,labpublicMapper,cb57Mapper,cb58Mapper,ce23Mapper,ce22Mapper,cb56Mapper,cc72Mapper,cc72hMapper,cc73Mapper,ce21Mapper,cc70Mapper,cc75Mapper,cc59Mapper,ce3435Mapper,cc74Mapper,ce19Mapper,ce20Mapper,ce24Mapper,ce25Mapper,aa10Mapper,aa01Mapper,sc10Mapper,sc11Mapper,sc12Mapper,sc13Mapper,sc14Mapper,sc18Mapper,sc20Mapper,ca11Mapper,ce26Mapper,ce27Mapper,ce28Mapper,ce3031Mapper,ce3233Mapper,ce3738Mapper,ce3839Mapper,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy <org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons()> (DefaultSingletonBeanRegistry.java:433) [WARNING] FAILED o.m.j.p.JettyWebAppContext{/lemis,[file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/, file:/Users/mockingjay/Documents/workspace/ZJSX2014/target/ProductWebapp/]},[file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/, file:/Users/mockingjay/Documents/workspace/ZJSX2014/target/ProductWebapp/]: java.lang.OutOfMemoryError: Java heap space 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.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.eclipse.jetty.server.handler.ContextHandlerCollection@133804ce: java.lang.OutOfMemoryError: Java heap space 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.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.eclipse.jetty.server.handler.HandlerCollection@42c37a3d: java.lang.OutOfMemoryError: Java heap space 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.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.mortbay.jetty.plugin.JettyServer@7f8600ed: java.lang.OutOfMemoryError: Java heap space 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.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:27 min [INFO] Finished at: 2018-08-15T08:41:01+08:00 [INFO] Final Memory: 20M/499M [INFO] ------------------------------------------------------------------------ [ERROR] Java heap space -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
麻烦大家帮我看看下面的问题怎么解决?
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)
java heap space 异常
<p>在eclipse中运行,连接的是Oracle数据库。从别的表读出来,插到另一个表中。有10万条的数据,当插到8万条的时候,出现如下异常: <br />Exception in thread "main" java.lang.OutOfMemoryError: Java heap space <br />at java.util.Arrays.copyOf(Arrays.java:2882) <br />at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) <br />at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) <br />at java.lang.StringBuilder.append(StringBuilder.java:119) <br />at process.Car.sjqb(Car.java:104) <br />at process.Car.main(Car.java:249) <br /><br />查资料说是JVM参数设置有问题,在windows 更改系统环境变量加上JAVA_OPTS=-Xms512m -Xmx512m 在eclipse的eclipse.ini <br />文件中也改了-Xms512m -Xmx512m。为什么照样会出现这个问题呢?希望大侠指导,非常非常的感谢!!!!!!!</p> <p> </p>
求助,内存溢出,服务器tomcat
[INFO ] 2016-08-26 22:01:18 [ INFO] - com.hisoft.workflow.common.service.impl.OaDaiBanServiceImpl -LoggerWritter.java(64) -执行com.hisoft.workflow.common.service.impl.OaDaiBanServiceImpl的saveinitoadaibansend方法结束 in class : com.hisoft.workflow.common.service.impl.OaDaiBanServiceImpl ** Exception in thread "http-bio-80-exec-1057" java.lang.OutOfMemoryError: Java heap space Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" Exception in thread "pool-2-thread-23" at java.util.regex.Pattern$BnM.optimize(Pattern.java:5308)** at java.util.regex.Pattern.compile(Pattern.java:1678) at java.util.regex.Pattern.<init>(Pattern.java:1337) at java.util.regex.Pattern.compile(Pattern.java:1022) at org.springframework.util.AntPathStringMatcher.createPattern(AntPathStringMatcher.java:87) at org.springframework.util.AntPathStringMatcher.<init>(AntPathStringMatcher.java:53)[ERROR] 2016-08-26 22:13:31 [ERROR] - org.quartz.core.JobRunShell -JobRunShell.java(212) -Job DEFAULT.smsremindSendBean threw an unhandled Exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'sendTsMseeage' on target class [class com.hisoft.reqmanager.sn.complaints.service.impl.SmsRemindServiceImpl$$EnhancerByCGLIB$$a28309a2] failed; nested exception is java.lang.OutOfMemoryError: Java heap space at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: 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 java.lang.StringBuilder.append(StringBuilder.java:128) at java.lang.Throwable.printStackTrace(Throwable.java:657) at java.lang.Throwable.printStackTrace(Throwable.java:720) at org.apache.log4j.spi.LocationInfo.<init>(LocationInfo.java:105) at org.apache.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent.java:191) at org.apache.log4j.helpers.PatternParser$LocationPatternConverter.convert(PatternParser.java:483) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.info(Category.java:663) at com.hisoft.vmframework.web.log.LoggerWritter.info(LoggerWritter.java:64) at com.hisoft.vmframework.web.aop.log.AopAddSecurityLogs.afterAddLog(AopAddSecurityLogs.java:36) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:603) at org.springframework.aop.aspectj.AspectJAfterAdvice.invoke(AspectJAfterAdvice.java:45) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.util.AntPathMatcher.matchStrings(AntPathMatcher.java:219) at org.springframework.util.AntPathMatcher.doMatch(AntPathMatcher.java:105) at org.springframework.util.AntPathMatcher.match(AntPathMatcher.java:68) at org.springframework.security.web.util.AntUrlPathMatcher.pathMatchesUrl(AntUrlPathMatcher.java:36)[WARN ] 2016-08-26 22:19:43 [ WARN] - com.jolbox.bonecp.ConnectionPartition -ConnectionPartition.java(185) -BoneCP detected an unclosed connection and will now attempt to close it for you. You should be closing this connection in your application - enable connectionWatch for additional debugging assistance. at org.springframework.security.web.FilterChainProxy.getFilters(FilterChainProxy.java:199) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:154) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
Myeclipse Web工程启动报错
``` 2015-12-14 10:38:51 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) at java.lang.StringBuffer.append(StringBuffer.java:224) at java.io.StringWriter.write(StringWriter.java:95) at java.io.PrintWriter.write(PrintWriter.java:412) at java.io.PrintWriter.write(PrintWriter.java:429) at java.io.PrintWriter.print(PrintWriter.java:559) at java.io.PrintWriter.println(PrintWriter.java:695) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:538) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545) 2015-12-14 10:38:51 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2015-12-14 10:38:51 org.apache.catalina.core.StandardContext start 严重: Context [/AutoMonitor] startup failed due to previous errors 2015-12-14 10:38:51 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 2015-12-14 10:38:53 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext (0 ms) [main] WARN : com.mchange.v2.c3p0.management.ActiveManagementCoordinator#attemptManageC3P0Registry : A C3P0Registry mbean is already registered. This probably means that an application using c3p0 was undeployed, but not all PooledDataSources were closed prior to undeployment. This may lead to resource leaks over time. Please take care to close all PooledDataSources. (2593 ms) [main] DEBUG: org.apache.struts2.config.PropertiesSettings#debug : struts.properties missing (2598 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for class com.opensymphony.xwork2.ObjectFactory (2598 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for class com.opensymphony.xwork2.conversion.impl.XWorkConverter (2598 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.TextProvider (2599 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.ActionProxyFactory (2599 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.conversion.ObjectTypeDeterminer (2599 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface org.apache.struts2.dispatcher.mapper.ActionMapper (2600 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (jakarta) for interface org.apache.struts2.dispatcher.multipart.MultiPartRequest (2600 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for class org.apache.struts2.views.freemarker.FreemarkerManager (2617 ms) [main] DEBUG: org.apache.struts2.config.BeanSelectionProvider#debug : Choosing bean (struts) for class org.apache.struts2.views.velocity.VelocityManager to be loaded from the ObjectFactory (2618 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface org.apache.struts2.components.UrlRenderer (2618 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.validator.ActionValidatorManager (2618 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.util.ValueStackFactory (2619 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.util.reflection.ReflectionProvider (2619 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.util.reflection.ReflectionContextFactory (2619 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.util.PatternMatcher (2620 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface org.apache.struts2.dispatcher.StaticContentLoader (2620 ms) [main] INFO : org.apache.struts2.config.BeanSelectionProvider#info : Choosing bean (struts) for interface com.opensymphony.xwork2.UnknownHandlerManager (3794 ms) [main] DEBUG: org.apache.struts2.convention.PackageBasedActionConfigBuilder#debug : Processing class [com.auto.number.actions.PhoneNumAction] in package [com.auto.number.actions] (3817 ms) [main] DEBUG: org.apache.struts2.convention.PackageBasedActionConfigBuilder#debug : Processing class [com.auto.number.actions.UploadExcelDateAction] in package [com.auto.number.actions] 2015-12-14 10:38:59 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2015-12-14 10:38:59 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2015-12-14 10:38:59 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/42 config=null 2015-12-14 10:38:59 org.apache.catalina.startup.Catalina start 信息: Server startup in 145762 ms ```
向数据库插数据时到9万条左右发生的异常,找不到原因,下面是具体的异常信息
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at com.mysql.jdbc.PreparedStatement.<init>(PreparedStatement.java:437) at com.mysql.jdbc.Connection.clientPrepareStatement(Connection.java:2187) at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4829) at com.mysql.jdbc.Connection.prepareStatement(Connection.java:4734) at tree.database.MySQLCor.insert(MySQLCor.java:263) at tree.parse.FileParser.parse(FileParser.java:159) at tree.parse.OneParser.parse(OneParser.java:54) at tree.test.Main.main(Main.java:39)
java 内存溢出
编写了一个bat文件,用来执行一个java应用程序,使用这个bat文件执行时发生报错,报内存溢出【Exception in thread "main" java.lang.OutOfMemoryError: java heap space】。如果是在在Eclipse中直接用java application 执行程序的话是不会报错的,因为我在Eclipse中将jvm heap大小设置为1G了,所以不会报错。但是这个bat文件执行时不知道怎么设置它运行此程序所需要的内存,所以导致内存不足了。请问各位大神,使用bat文件运行时该如何设置jvm内存大小。下面是报错的具体信息: Exception in thread "main" java.lang.OutOfMemoryError: java heap space at java util.Calendar.createCalendar<Calendar.java:1006> at java util.Calendar.getInstance<Calendar.java:943> at callservices.UploadData.loadPsnInfo<UploadData.java:456> at callservices.UploadData.main<UploadData.java:125>
在中国程序员是青春饭吗?
今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...
《MySQL 性能优化》之理解 MySQL 体系结构
本文介绍 MySQL 的体系结构,包括物理结构、逻辑结构以及插件式存储引擎。
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
Java 14 都快来了,为什么还有这么多人固守Java 8?
从Java 9开始,Java版本的发布就让人眼花缭乱了。每隔6个月,都会冒出一个新版本出来,Java 10 , Java 11, Java 12, Java 13, 到2020年3月份,...
达摩院十大科技趋势发布:2020 非同小可!
【CSDN编者按】1月2日,阿里巴巴发布《达摩院2020十大科技趋势》,十大科技趋势分别是:人工智能从感知智能向认知智能演进;计算存储一体化突破AI算力瓶颈;工业互联网的超融合;机器间大规模协作成为可能;模块化降低芯片设计门槛;规模化生产级区块链应用将走入大众;量子计算进入攻坚期;新材料推动半导体器件革新;保护数据隐私的AI技术将加速落地;云成为IT技术创新的中心 。 新的画卷,正在徐徐展开。...
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
讲真,这两个IDE插件,可以让你写出质量杠杠的代码
周末躺在床上看《拯救大兵瑞恩》 周末在闲逛的时候,发现了两个优秀的 IDE 插件,据说可以提高代码的质量,我就安装了一下,试了试以后发现,确实很不错,就推荐给大家。 01、Alibaba Java 代码规范插件 《阿里巴巴 Java 开发手册》,相信大家都不会感到陌生,其 IDEA 插件的下载次数据说达到了 80 万次,我今天又贡献了一次。嘿嘿。 该项目的插件地址: https://github....
Python+OpenCV实时图像处理
目录 1、导入库文件 2、设计GUI 3、调用摄像头 4、实时图像处理 4.1、阈值二值化 4.2、边缘检测 4.3、轮廓检测 4.4、高斯滤波 4.5、色彩转换 4.6、调节对比度 5、退出系统 初学OpenCV图像处理的小伙伴肯定对什么高斯函数、滤波处理、阈值二值化等特性非常头疼,这里给各位分享一个小项目,可通过摄像头实时动态查看各类图像处理的特点,也可对各位调参、测试...
2020年一线城市程序员工资大调查
人才需求 一线城市共发布岗位38115个,招聘120827人。 其中 beijing 22805 guangzhou 25081 shanghai 39614 shenzhen 33327 工资分布 2020年中国一线城市程序员的平均工资为16285元,工资中位数为14583元,其中95%的人的工资位于5000到20000元之间。 和往年数据比较: yea...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
python爬取百部电影数据,我分析出了一个残酷的真相
2019年就这么匆匆过去了,就在前几天国家电影局发布了2019年中国电影市场数据,数据显示去年总票房为642.66亿元,同比增长5.4%;国产电影总票房411.75亿元,同比增长8.65%,市场占比 64.07%;城市院线观影人次17.27亿,同比增长0.64%。 看上去似乎是一片大好对不对?不过作为一名严谨求实的数据分析师,我从官方数据中看出了一点端倪:国产票房增幅都已经高达8.65%了,为什...
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
2020 年,大火的 Python 和 JavaScript 是否会被取而代之?
Python 和 JavaScript 是目前最火的两大编程语言,但是2020 年,什么编程语言将会取而代之呢? 作者 |Richard Kenneth Eng 译者 |明明如月,责编 | 郭芮 出品 | CSDN(ID:CSDNnews) 以下为译文: Python 和 JavaScript 是目前最火的两大编程语言。然而,他们不可能永远屹立不倒。最终,必将像其他编程语言一...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
Idea 中最常用的10款插件(提高开发效率),一定要学会使用!
学习使用一些插件,可以提高开发效率。对于我们开发人员很有帮助。这篇博客介绍了开发中使用的插件。
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
那个在阿里养猪的工程师,5年了……
简介: 在阿里,走过1825天,没有趴下,依旧斗志满满,被称为“五年陈”。他们会被授予一枚戒指,过程就叫做“授戒仪式”。今天,咱们听听阿里的那些“五年陈”们的故事。 下一个五年,猪圈见! 我就是那个在养猪场里敲代码的工程师,一年多前我和20位工程师去了四川的猪场,出发前总架构师慷慨激昂的说:同学们,中国的养猪产业将因为我们而改变。但到了猪场,发现根本不是那么回事:要个WIFI,没有;...
立即提问