I got the below error
"java.lang.OutOfMemoryError: PermGen space"
In my catalina.bat file, where is the appropriate place for enter set JAVA_OPTS parameter? Bottom of the file or any other place?
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.
Please read this: OutOfMemory Error and make sure your application doesn’t have memory leak and excessive memory usage.
To change the settings, create a file named
setenv.batfor windows orsetenv.shfor Linux with entry as below:Windows:
Linux:
Simply put this(setenv.bat/setenv.sh) file in
%CATALINA_HOME%\bin\folder. Your command file (catalina.bat/catalina.sh) already has a statement as below:Windows:
Linux:
This will take care the rest.