求助,内存溢出,服务器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.(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.(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.(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)

1个回答

内存溢出,肯定是你代码不规范,审查你的代码吧
注意文件的操作和数据库链接的操作

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问