
|
Newbie: OutOfMemoryError: PermGen space Question
Hey now,
I just upgraded my JSF release to MyFaces w/ facelets over the weekend. My web app has been working for about a year without fail in a production environment.
Things are converting over fairly nicely, but after my web application runs for a while (main page refreshes every minute) I get the following exception:
09:53:47,564 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.OutOfMemoryError: PermGen space
Are there any known issues like this? Has anyone experienced this problem when they switched over?? I could not find anything in the mail list archive.
Any help would be greatly appreciated!
-KindSol
|

|
RE: Newbie: OutOfMemoryError: PermGen space Question
Hmmm, run into this one before. Best idea is to change to
JRockit and this problem never happens again :) Next best is to change the
permgen space using -XX:MaxPermSize=256m
Hey now,
I just upgraded my JSF release to
MyFaces w/ facelets over the weekend. My web app has been working for about a
year without fail in a production environment.
Things are converting over fairly
nicely, but after my web application runs for a while (main page refreshes every
minute) I get the following exception:
09:53:47,564 ERROR [[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.OutOfMemoryError:
PermGen space
Are there any known issues like
this? Has anyone experienced this
problem when they switched over?? I could not find anything in the mail list
archive.
Any help would be greatly
appreciated!
-KindSol
|

|
Re: Newbie: OutOfMemoryError: PermGen space Question
Hello, PermGen is the memory repository of the container. There can be two causes to your problem: 1. Your application ate all the available memory, then yes increasing PermGen space is the way to go.
2. You have some objects left in memory from your previous deploy that are not eligible for garbage collection. That one is way harder to deal with. It happens mainly when you have an asynchronous thread still running from previous deployment referencing some other objects. To deal with that you have to make your asynchronous thread check if there object references are still valid using a way or another (there's no perfect way. In one of my project we had to rely on an IllegalStateException the container was raising when accessing a specific object).
Regards, ~ Simon On 11/27/06, Julian Ray <julianjray@...> wrote:
Hmmm, run into this one before. Best idea is to change to
JRockit and this problem never happens again :) Next best is to change the
permgen space using -XX:MaxPermSize=256m
From: kindsol [mailto:kindsol@...]
Sent: Monday, November 27, 2006 1:07 PM To:
users@... Subject: Newbie: OutOfMemoryError: PermGen
space Question
Hey now,
I just upgraded my JSF release to
MyFaces w/ facelets over the weekend. My web app has been working for about a
year without fail in a production environment.
Things are converting over fairly
nicely, but after my web application runs for a while (main page refreshes every
minute) I get the following exception:
09:53:47,564 ERROR [[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.OutOfMemoryError:
PermGen space
Are there any known issues like
this? Has anyone experienced this
problem when they switched over?? I could not find anything in the mail list
archive.
Any help would be greatly
appreciated!
-KindSol
|

|
RE: Newbie: OutOfMemoryError: PermGen space Question
We
started getting a lot more of these after the jdk 1.5.0.09 update, although I
never spent time investigating the update docs to see if there had been any
significant change to GC or other memory handling things.
Anyways, the other poster with the recommendation for either jrockit or
permspace configuration options will help you out.
Another thing to be aware of is that although many app containers handle
hot deployment, some of them are not so good at handling it gracefully. If
you're getting these after a couple of hot deploys, you'll know if your
container is possibly holding things in memory across deployments (and signals
the need to cycle your container on a more frequent basis after a hot
deployment.
Hey now,
I just upgraded my JSF release
to MyFaces w/ facelets over the weekend. My web app has been working for about
a year without fail in a production environment.
Things are converting over
fairly nicely, but after my web application runs for a while (main page
refreshes every minute) I get the following
exception:
09:53:47,564 ERROR [[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw
exception java.lang.OutOfMemoryError: PermGen
space
Are there any known issues
like this? Has
anyone experienced this problem when they switched over?? I could
not find anything in the mail list archive.
Any help would be greatly
appreciated!
-KindSol
|

|
Re: Newbie: OutOfMemoryError: PermGen space Question
Thanks, David.
I did increase the permspace to 256m, but now it just takes a little longer to run out of memory. I am hoping that it is just a config error on my part.
Still investigating. I will post back to the list if I can pin point the problem.
-Sol On Nov 27, 2006, at 1:38 PM, Nebinger, David wrote: We started getting a lot more of these after the jdk 1.5.0.09 update, although I never spent time investigating the update docs to see if there had been any significant change to GC or other memory handling things. Anyways, the other poster with the recommendation for either jrockit or permspace configuration options will help you out. Another thing to be aware of is that although many app containers handle hot deployment, some of them are not so good at handling it gracefully. If you're getting these after a couple of hot deploys, you'll know if your container is possibly holding things in memory across deployments (and signals the need to cycle your container on a more frequent basis after a hot deployment. Hey now,
I just upgraded my JSF release to MyFaces w/ facelets over the weekend. My web app has been working for about a year without fail in a production environment.
Things are converting over fairly nicely, but after my web application runs for a while (main page refreshes every minute) I get the following exception:
09:53:47,564 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.OutOfMemoryError: PermGen space
Are there any known issues like this? Has anyone experienced this problem when they switched over?? I could not find anything in the mail list archive.
Any help would be greatly appreciated!
-KindSol
|

|
RE: Newbie: OutOfMemoryError: PermGen space Question
you
might also want to try reverting to an older version rather than using 09; it
wasn't until 9 that I found it to be so sensitive.
Thanks, David.
I did increase the permspace to 256m, but now it just takes a little
longer to run out of memory. I am hoping that it is just a config error
on my part.
Still investigating. I will post back to the list if I can pin
point the problem.
-Sol
On Nov 27, 2006, at 1:38 PM, Nebinger, David wrote:
We
started getting a lot more of these after the jdk 1.5.0.09 update, although
I never spent time investigating the update docs to see if there had been
any significant change to GC or other memory handling
things.
Anyways, the other poster with the recommendation for either jrockit
or permspace configuration options will help you out.
Another thing to be aware of is that although many app containers
handle hot deployment, some of them are not so good at handling it
gracefully. If you're getting these after a couple of hot deploys,
you'll know if your container is possibly holding things in memory across
deployments (and signals the need to cycle your container on a more frequent
basis after a hot deployment.
Hey
now,
I just
upgraded my JSF release to MyFaces w/ facelets over the weekend. My web
app has been working for about a year without fail in a production
environment.
Things are
converting over fairly nicely, but after my web application runs for a
while (main page refreshes every minute) I get the following
exception:
09:53:47,564
ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw
exception java.lang.OutOfMemoryError: PermGen
space
Are there
any known issues like this? Has anyone experienced this problem when they
switched over?? I could not find anything in the mail list
archive.
Any help would
be greatly appreciated!
-KindSol
|

|
Re: Newbie: OutOfMemoryError: PermGen space Question
This problem was due to the hibernate release that I was using. I had been using v3.0.5 w/out problems for a year I found that on this new development machine (powerbook) I was using a release candidate 3.2 CR2. Reverting back to v3.0.5 my problem went away.
I am currently testing the 3.2.1.GA release...
-Sol
On Nov 27, 2006, at 1:38 PM, Nebinger, David wrote: We started getting a lot more of these after the jdk 1.5.0.09 update, although I never spent time investigating the update docs to see if there had been any significant change to GC or other memory handling things. Anyways, the other poster with the recommendation for either jrockit or permspace configuration options will help you out. Another thing to be aware of is that although many app containers handle hot deployment, some of them are not so good at handling it gracefully. If you're getting these after a couple of hot deploys, you'll know if your container is possibly holding things in memory across deployments (and signals the need to cycle your container on a more frequent basis after a hot deployment. Hey now,
I just upgraded my JSF release to MyFaces w/ facelets over the weekend. My web app has been working for about a year without fail in a production environment.
Things are converting over fairly nicely, but after my web application runs for a while (main page refreshes every minute) I get the following exception:
09:53:47,564 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.OutOfMemoryError: PermGen space
Are there any known issues like this? Has anyone experienced this problem when they switched over?? I could not find anything in the mail list archive.
Any help would be greatly appreciated!
-KindSol
|

|
Re: Newbie: OutOfMemoryError: PermGen space Question
Turns out that 3.2.1.GA release of hibernate has the same problem. I know this is the MyFaces forum, but I didn't run into this problem until I upgraded to MyFaces. And since I started this thread, I might as well finish it with a (semi) solution.
My easy solution was to revert to my earlier version of hibernate 3.0.5. However, when I get some spare time I am going to rebuild the 3.2 version of hibernate based on the following information:
Hope this helps someone!
-KindSol
On Nov 30, 2006, at 10:01 AM, kindsol wrote: This problem was due to the hibernate release that I was using. I had been using v3.0.5 w/out problems for a year I found that on this new development machine (powerbook) I was using a release candidate 3.2 CR2. Reverting back to v3.0.5 my problem went away.
I am currently testing the 3.2.1.GA release...
-Sol
On Nov 27, 2006, at 1:38 PM, Nebinger, David wrote: We started getting a lot more of these after the jdk 1.5.0.09 update, although I never spent time investigating the update docs to see if there had been any significant change to GC or other memory handling things. Anyways, the other poster with the recommendation for either jrockit or permspace configuration options will help you out. Another thing to be aware of is that although many app containers handle hot deployment, some of them are not so good at handling it gracefully. If you're getting these after a couple of hot deploys, you'll know if your container is possibly holding things in memory across deployments (and signals the need to cycle your container on a more frequent basis after a hot deployment. Hey now,
I just upgraded my JSF release to MyFaces w/ facelets over the weekend. My web app has been working for about a year without fail in a production environment.
Things are converting over fairly nicely, but after my web application runs for a while (main page refreshes every minute) I get the following exception:
09:53:47,564 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.OutOfMemoryError: PermGen space
Are there any known issues like this? Has anyone experienced this problem when they switched over?? I could not find anything in the mail list archive.
Any help would be greatly appreciated!
-KindSol
|