What is the best way to avoid permgen space error when running Tomcat from Eclipse 3.6?
Is this done by adding the following line:
-XX:MaxPermSize=512m
at the end of eclipse.ini? Or is there extra configuration necessary?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The configuration in
eclipse.iniis only for the JVM that actually runs Eclipse.Tomcat is run in its own JVM instance, so you’ll need that separately.
Assuming you use WTP to start your Tomcat instance, you need to go to your Server configuration, click “Open launch configuration” and there (on the “Arguments” tab) edit/add the VM arguments to include the desired
-XX:MaxPermSizeargument.