我是靠谱客的博主 完美老虎,最近开发中收集的这篇文章主要介绍java java heap_java.lang.OutOfMemoryError: Java heap space,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

MyEclipse6.5 在部署项目后出现 如下错误 求哥哥大神帮忙指导

java.lang.OutOfMemoryError: Java heap space

Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space

at java.util.AbstractList.listIterator(AbstractList.java:315)

at java.util.SubList$1.(AbstractList.java:688)

at java.util.SubList.listIterator(AbstractList.java:687)

at java.util.AbstractList.listIterator(AbstractList.java:284)

at java.util.SubList.iterator(AbstractList.java:678)

at java.util.AbstractCollection.toArray(AbstractCollection.java:162)

at java.util.regex.Pattern.split(Pattern.java:1027)

at java.lang.String.split(String.java:2293)

at java.lang.String.split(String.java:2335)

at org.ansj.util.MyStaticValue.initBigramTables(MyStaticValue.java:221)

at org.ansj.library.NgramLibrary.(NgramLibrary.java:16)

at org.ansj.util.MathUtil.compuScore(MathUtil.java:35)

at org.ansj.domain.Term.setPathScore(Term.java:93)

at org.ansj.util.Graph.merger(Graph.java:303)

at org.ansj.util.Graph.walkPath(Graph.java:275)

at org.ansj.splitWord.analysis.ToAnalysis$1.merger(ToAnalysis.java:34)

at org.ansj.splitWord.analysis.ToAnalysis.getResult(ToAnalysis.java:75)

at org.ansj.splitWord.Analysis.analysisStr(Analysis.java:120)

at org.ansj.splitWord.Analysis.parseStr(Analysis.java:213)

at org.ansj.splitWord.analysis.ToAnalysis.parse(ToAnalysis.java:99)

at com.yffsc.util.SegmentUtil.toAnalysis(SegmentUtil.java:123)

at com.yffsc.service.b2c.impl.SearchService.buildProductIndex(SearchService.java:63)

at com.yffsc.service.b2c.impl.SearchService$3.run(SearchService.java:348)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: Java heap space

at java.io.BufferedOutputStream.(BufferedOutputStream.java:59)

at com.mysql.jdbc.MysqlIO.(MysqlIO.java:296)

at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)

at com.mysql.jdbc.Connection.(Connection.java:1555)

at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)

at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)

at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)

at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)

at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

2014-10-13 11:14:44 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.printStackTrace(Throwable.java:512)

at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:76)

at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:407)

at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:305)

at org.apache.log4j.WriterAppender.append(WriterAppender.java:160)

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:251)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:238)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

2014-10-13 11:14:45 org.apache.catalina.core.StandardContext listenerStart

严重: Exception sending context initialized event to listener instance of class org.springframework.web.util.IntrospectorCleanupListener

java.lang.OutOfMemoryError: Java heap space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: Java heap space

2014-10-13 11:14:47 org.apache.catalina.startup.HostConfig deployDirectory

严重: Error deploying web application directory App_Branch

java.lang.OutOfMemoryError: Java heap space

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.lang.OutOfMemoryError: Java heap space

在网上搜到的那些修改Heap size 设置的都不管用的

tomcat用的是6.0的版本

最后

以上就是完美老虎为你收集整理的java java heap_java.lang.OutOfMemoryError: Java heap space的全部内容,希望文章能够帮你解决java java heap_java.lang.OutOfMemoryError: Java heap space所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(40)

评论列表共有 0 条评论

立即
投稿
返回
顶部