How to Monitor OutOfMemory exceptions in WebSphere logs

Some Java Application badely coded, hungs  due to full usage of java heap space in WebSphere and needs to be restarted every night to work good without OutOfMemory Errors.

So to monitor this exception we can do two things :

1-By parsing the SystemOut.log and SystemErr.log in our WebSphere searching for this reference code :


example :

[7/4/16 16:18:21:326 WET] 00000135 ServletWrappe E service SRVE0014E: Uncaught service() exception root cause /servelet.jsp: java.lang.OutOfMemoryError: Java heap space


example :

[7/4/16 16:18:19:318 WET] 0000018e WebContainer  E handleRequest SRVE0232E: Internal Server Error. <br> Exception Message: [java.lang.OutOfMemoryError: Java heap space


[7/4/16 16:18:16:094 WET] 0000013d webapp        E logServletError SRVE0293E: [Servlet Error]-[GenericServletWrapper]: java.lang.OutOfMemoryError: Java heap space

2-By using IBM Tivoli Monitoring with ITCAM for WebSphere agent :

this can be done by defining new situation with heap size conditions

I can give more details and explanation if you send me email


Be the first to comment

Leave a Reply

Votre adresse de messagerie ne sera pas publiée.