RE: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Thanks Peter!  Can you provide an example please?   Is this 
 defined somewhere in the server.xml file?

You should be able to set JAVA_OPTS, either within
$CATALINA_HOME/bin/catalina (from memory - CHECK! - it's too long since
I had to configure Tomcat on UNIX) or from the command line before
starting Tomcat:

export JAVA_OPTS=-XX:MaxPermSize=128m

Put it in the same place as the options to set your heap size.  If you
aren't already setting the heap size by some means, my guess is that
that'll be the next out-of-memory error you get!

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
This command don't seem to work?  Is there another way to see all of the 
Parameters for the JVM?

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why getting this error?

2005-10-03 Thread Lisa Woodring
I get the java.lang.OutOfMemoryError: PermGen space error periodically
when I use Tomcat Manager to deploy my web application (as opposed to
re-starting Tomcat).  It eventually runs out of memory on the deploy.
However, since I only use the manager for development -- I just restart
Tomcat when the error happens.


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 11:04 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?

This command don't seem to work?  Is there another way to see all of the
Parameters for the JVM?

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults
to 64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the
Size is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this
line below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined
somewhere in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation to
fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m to
double it.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 


-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]