2 calm keep calm_keep 于 2016.04.02 21:05 提问

内存溢出问题,各位帮帮忙

[Azure] ERROR [pool-1-thread-1] org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler.handleError(95) | Unexpected error occurred in scheduled task.
java.lang.OutOfMemoryError: PermGen space
at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:262)
at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:155)
at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1199)
at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:104)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:799)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1635)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1502)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1410)
at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:47)
at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:195)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:650)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
at com.sun.proxy.$Proxy223.reqForCardService(Unknown Source)
at com.gnete.card.ws.client.CardWsClient.singleReqForCardService(CardWsClient.java:150)
at com.gnete.card.ws.client.CardWsClient.login(CardWsClient.java:115)
at com.gnete.card.ws.client.CardWsClient.loginIfNotLogined(CardWsClient.java:105)
at com.gnete.card.ws.client.CardWsClient.singleCall(CardWsClient.java:71)
at com.company.demo.remoteAccess.CardWsRemoteAccess.findCardBalance(CardWsRemoteAccess.java:78)
at com.company.demo.remoteAccess.CardWsRemoteAccess.findCardBalance(CardWsRemoteAccess.java:49)
at com.soarswing.jr.job.SynDataJob.synData(SynDataJob.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Exception in thread "Keep-Alive-Timer"
java.lang.OutOfMemoryError: PermGen space
at java.util.AbstractList.subList(AbstractList.java:484)
at java.util.Vector.subList(Vector.java:1034)
at sun.net.www.http.KeepAliveCache.run(KeepAliveCache.java:204)
at java.lang.Thread.run(Thread.java:745)

用cfx作webservice调用,在tomcat坏境下就报这个错误,直接运行就没问题,怎么回事啊???各位帮帮忙吧

1个回答

mxy_cy
mxy_cy   2016.04.02 23:18

内存溢出,一般都是代码进入死循环,你看看代码里面有没有方法来回调用的

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!