Often I found an OutOfMemoryException on an IBM Websphere Application Server. I think this exception is due to the fact that my application is retrieving huge data from a database. Thus, I limit the entire query by not returning data of more than 1000 records and installing the JVM from WAS follow
+ Verbose garbage collection + Maximum Heap size = 1024 (RAM on my server is 16 GB and now I already change to 8192) + Debug arguments = -Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777 + Generic JVM arguments = -Dsun.rmi.dgc.server.gcInterval=60000 -Dsun.rmi.dgc.client.gcInterval=60000 -Xdisableexplicitgc -Dws.log=E:\WebApp\log -Dws.log.level=debug (ws.log and ws.log.level are my properties)
And I found the heapdump , javacore and snap files in the profiles folder. I think they can tell me about the cause of the problem, but I donβt know, t can read / use heapdump, javacore and snap files.
Please tell me how to prevent / eliminate / fix the OutOfMemoryException exception. Thanks
source share