i am running tomcat 7.0.33 on windows server 2008 R2
(i installed tomcat as windows service)
- JDK version:
jdk1.6.0_25 64-bit -
Tomcat options:
- Java Virtual Machine:
C:\Program Files\Java\jre6\bin\server\jvm.dll
(BTW, i don’t have client folder inside jre) - Initial memory pool: 1000 MB
-
Maximum memory pool: 2000 MB
when i check the server status, i can see that the server is using
the memory i configured. -
Environment Variables (SYSTEM VARIABLES) Configuration:
- JAVA_HOME:
C:\Program Files\Java\jdk1.6.0_25 - Path:
...;%JAVA_HOME%\bin;....
- JAVA_HOME:
- Java Virtual Machine:
do i need to add CATALINA_HOME and JAVA_OPTS system variables too ?
ISSUE: i have two web applications APP1,*APP2*
when i deploy each one separately, i can find that memory use for
APP1= 198 MB
APP2= 104 MB
Information about the applications:
APP1,APP2: Spring Maven applications that includes in the libraries other small maven spring applications.
APP1: contains webservices, that APP2 uses them.
if i tried to deploy both of them on same tomcat instance, i always get
java.lang.OutOfMemoryError: PermGen space
please advise what might be causing this issue.
the solution was beside setting initial & maximum memory pool, is to add
-XX:MaxPermSize=1000mto the java options in the java tab.