File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.outofmemory

 
rekha kantipudi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[8/11/10 10:36:39:022 CDT] 00000041 WebApp E SRVE0026E: [Servlet Error]-[action]: java.lang.OutOfMemoryError
at com.ibm.websphere.jdbc.sqlserver.tds.TDSConnection.getReaderBuffer(Unknown Source)
at com.ibm.websphere.jdbc.sqlserver.SQLServerByteOrderedDataReader.receive(Unknown Source)
at com.ibm.websphere.jdbc.sqlserver.tds.TDSPreLoginRequest.submitRequest(Unknown Source)
at com.ibm.websphere.jdbc.sqlserver.tds.TDSConnection.(Unknown Source)
at com.ibm.websphere.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.ibm.websphere.jdbc.base.BaseConnection.connect(Unknown Source)
at com.ibm.websphere.jdbc.base.BaseConnection.setupImplConnection(Unknown Source)
at com.ibm.websphere.jdbc.base.BaseConnection.open(Unknown Source)
at com.ibm.websphere.jdbcx.base.BaseDataSource.getBaseConnection(Unknown Source)
at com.ibm.websphere.jdbcx.base.BaseDataSource.getPooledConnection(Unknown Source)
at com.ibm.ws.rsadapter.DSConfigurationHelper$1.run(DSConfigurationHelper.java:1071)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.rsadapter.DSConfigurationHelper.getPooledConnection(DSConfigurationHelper.java:1104)
at com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:1320)
at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:982)
at com.ibm.ejs.j2c.poolmanager.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:1697)
at com.ibm.ejs.j2c.poolmanager.FreePool.createOrWaitForConnection(FreePool.java:1453)
at com.ibm.ejs.j2c.poolmanager.PoolManager.reserve(PoolManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java(Compiled Code))
at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java(Compiled Code))
at com.hcsc.eas.framework.services.datasource.mid.BasicMIDDataSource.getConnection(BasicMIDDataSource.java(Compiled Code))
at com.hcsc.heron.common.spring.HeronMidDataSource.getConnection(HeronMidDataSource.java:70)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java(Inlined Compiled Code))
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java(Compiled Code))
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java(Inlined Compiled Code))
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java(Compiled Code))
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java(Compiled Code))
at org.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java(Compiled Code))
at org.hibernate.loader.Loader.doList(Loader.java(Compiled Code))
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java(Inlined Compiled Code))
at org.hibernate.loader.Loader.list(Loader.java(Compiled Code))
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java(Inlined Compiled Code))
at org.hibernate.impl.SessionImpl.list(SessionImpl.java(Compiled Code))
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
at org.springframework.orm.hibernate3.HibernateTemplate$5.doInHibernate(HibernateTemplate.java:596)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java(Compiled Code))
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java(Inlined Compiled Code))
at org.springframework.orm.hibernate3.HibernateTemplate.loadAll(HibernateTemplate.java(Inlined Compiled Code))
at com.hcsc.heron.data.common.dao.impl.WorkFlowDaoImpl.getUWNames(WorkFlowDaoImpl.java(Compiled Code))
at com.hcsc.heron.service.impl.WorkflowMgrImpl.getUnderwriterList(WorkflowMgrImpl.java:35)
at com.hcsc.heron.web.actions.request.CustomerListAction.loadCustReqDropDowns(CustomerListAction.java:318)
at com.hcsc.heron.web.actions.request.CustomerListAction.unspecified(CustomerListAction.java:160)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:245)
at com.hcsc.heron.web.actions.HeronBaseAction.dispatchMethod(HeronBaseAction.java:585)
at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:170)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.processActionPerformCB(BaseTilesRequestProcessor.java:69)
at com.hcsc.eas.framework.struts.RequestProcessorDelegate.processActionPerform(RequestProcessorDelegate.java:162)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.processActionPerform(BaseTilesRequestProcessor.java:52)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.processCB(BaseTilesRequestProcessor.java:59)
at com.hcsc.eas.framework.struts.RequestProcessorDelegate.process(RequestProcessorDelegate.java:114)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.process(BaseTilesRequestProcessor.java:36)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:347)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.processCB(BaseTilesRequestProcessor.java:59)
at com.hcsc.eas.framework.struts.RequestProcessorDelegate.process(RequestProcessorDelegate.java:114)
at com.hcsc.eas.framework.struts.BaseTilesRequestProcessor.process(BaseTilesRequestProcessor.java:36)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1936)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:120)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:434)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:373)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:253)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

[8/11/10 10:37:18:317 CDT] 0000004f ActionMapping W org.apache.struts.action.ActionMapping findForward Unable to find 'null' forward.
[8/11/10 11:00:19:984 CDT] 00000064 DiskStore W net.sf.ehcache.store.DiskStore expiryThreadMain com.hcsc.cre.factors.CrossDivMaxPctFactorCache: Expiry thread throwable caught. Message was: null. Continuing...
java.lang.OutOfMemoryError
at java.util.HashMap.newValueIterator(HashMap.java(Compiled Code))
at java.util.HashMap$Values.iterator(HashMap.java(Compiled Code))
at java.util.Collections$SynchronizedCollection.iterator(Collections.java(Compiled Code))
at net.sf.ehcache.store.DiskStore.expireElements(DiskStore.java(Compiled Code))
at net.sf.ehcache.store.DiskStore.expiryThreadMain(DiskStore.java:832)
at net.sf.ehcache.store.DiskStore.access$700(DiskStore.java:59)
at net.sf.ehcache.store.DiskStore$ExpiryThread.run(DiskStore.java:1008)

************ Start Display Current Environment ************
WebSphere Platform 6.0 [ND 6.0.2.35 cf350920.09] running with process name lxwasnd01Cell01\interplwas05Node01\heron03 and process id 9583
Detailed IFix information: ID: 6.0-WS-WAS-LinuxX32-RP0000002 BuildVrsn: null Desc: WebSphere Application Server 6.0.2.0
ID: 6.0.2-WS-WASJavaSDK-LinuxX32-FP00000017 BuildVrsn: null Desc: Software Developer Kit V6.0.2.17
ID: 6.0.2-WS-WASJavaSDK-LinuxX32-FP00000027 BuildVrsn: null Desc: Software Developer Kit V6.0.2.27
ID: 6.0.2-WS-WAS-LinuxX32-FP0000009 BuildVrsn: null Desc: WebSphere Application Server 6.0.2.9
ID: 6.0.2-WS-WAS-LinuxX32-FP00000011 BuildVrsn: null Desc: WebSphere Application Server 6.0.2.11
ID: 6.0.2-WS-WAS-LinuxX32-FP00000015 BuildVrsn: null Desc: WebSphere Application Server 6.0.2.15
ID: 6.0.2-WS-WAS-LinuxX32-FP00000027 BuildVrsn: null Desc: WebSphere Application Server 6.0.2.27

We are gettting out of memory exception in production and we couldnt find any solution.we dont know whether its memory leak or JVM Memory issue.We need to fix this issue very urgently.Any help greatly appreciated.Thanks
 
nitin pokhriyal
Ranch Hand
Posts: 263
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What amount of data you guys are trying to load with hibernate?

 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check what the amount of data loaded to memory is. Is your machine/environment capable of holding the data. Did you try lazy loading ...
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic