How to clear PermGen in tomcat without restart
up vote
1
down vote
favorite
I want to clear PermGen
memory in tomcat
without restarting tomcat.
How can do this activity? I get:
PermGen: OutOfMemoryError
My problem is that I don't want to shut down tomcat
.
java tomcat permgen
|
show 3 more comments
up vote
1
down vote
favorite
I want to clear PermGen
memory in tomcat
without restarting tomcat.
How can do this activity? I get:
PermGen: OutOfMemoryError
My problem is that I don't want to shut down tomcat
.
java tomcat permgen
1
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
1
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50
|
show 3 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to clear PermGen
memory in tomcat
without restarting tomcat.
How can do this activity? I get:
PermGen: OutOfMemoryError
My problem is that I don't want to shut down tomcat
.
java tomcat permgen
I want to clear PermGen
memory in tomcat
without restarting tomcat.
How can do this activity? I get:
PermGen: OutOfMemoryError
My problem is that I don't want to shut down tomcat
.
java tomcat permgen
java tomcat permgen
edited Nov 22 at 16:35
Green
652425
652425
asked Nov 22 at 14:49
ErenSalman
61
61
1
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
1
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50
|
show 3 more comments
1
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
1
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50
1
1
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
1
1
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50
|
show 3 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53433445%2fhow-to-clear-permgen-in-tomcat-without-restart%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I'm not sure this is even possible (or at least not easy). This problem already exists for quite a while and if it were easy to solve without a restart it probably would be part of Tomcat - at least in the form of some documentation.
– Thomas
Nov 22 at 14:52
I would say why and you should not instead fix the root cause. Increase the heap settings and then see if that helps. Check this thread stackoverflow.com/questions/10085028/…
– Sheetal Mohan Sharma
Nov 22 at 15:25
My main purpose is to do deployment with downtime zero. When i searched this topic, i found "paralel deployment" in tomcat. But after a while tomcat's memory (also permGen) is increased. Because i do not restart during deployment. So i want to find a way to stop or clear increased memory.
– ErenSalman
Nov 22 at 15:27
Which Tomcat version are you using ? If old, maybe it's necessary to upgrade since some issues were corrected that could help you.
– Eugène Adell
Nov 22 at 15:33
1
When you undeploy the old version of your app, do you get warnings about potential leak issues? On successful full undeployment of an app tomcat should be able to garbage collect that apps' WebAppClassLoader and thus free the permgen from classes. If there is a Thread or ThreadLocale left on your app, undeployment won't fully succeed and your permGen will fill which each start/stop of your app.
– Selaron
Nov 22 at 15:50