Hobione's Weblog

Living & Breathing in Web 2.0 Era

Sun Java Application Server 9.1 – OutOfMemoryError

We have installed SJSAS 9.1 on our production server (SPARC). It has 8 GB memory.

In the first day, we were getting whole lot of sever warning:

PWC1406: Servlet.service() for servlet TechnicalLibraryServlet threw exception java.lang.OutOfMemoryError: Java heap space

So, we have increased the heap size from default 192 to 512

Application Server –> JVM Settings –> JVM Options
Out of memory
How to check the current heap size?
Application Server – Monitor –> Runtime
How to Monitor SJSAS 9.1?
Setup a Monitor: Configuration –> Monitor
setupmonitor.jpg
How to View?
Application Server –> Monitor (You may the Display Chart button to see nice looking graph)
How to check Open and Close Connections?
Application –> Monitor –> Resources
Server Resource
Full Admin Guide for SJSAS 9.1: http://docs.sun.com/app/docs/doc/819-3671/

 

——————————————Episode2——————————————————————–

Apparently by increasing heap size did not help much. So we decided to install SJSAS 9.1 Update 1

Java Forum Thread:
http://forums.java.net/jive/thread.jspa?threadID=36239&tstart=15

Results: Wonderful but what an experience. I wish Sun would have fixed this out of memory issue before distribute SJSAS 9.1. I guess that’s why they came up with UR 1, which makes sense.

 

February 5, 2008 Posted by HobiOne | GlassFish | | 2 Comments