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.

 

Advertisements

February 5, 2008 - Posted by | GlassFish

2 Comments »

  1. Hi! Glad to see you’ve fixed the issue.
    I’m not sure I understand the “Sun should not distribute SJSAS 9.1 for production” comment.
    Would you like to share your GlassFish experience on http://blogs.sun.com/stories ? We have a nice thank you gift ;)

    Comment by Alexis MP | February 22, 2008 | Reply

  2. I love to

    Comment by hobione | February 22, 2008 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: