Re: Tomcat 5 out of memory
I upgraded to 5.0.24 and it seemed to fix the problem although there wasnt sufficient time to test as there was a session bug in 24 and I had to upgrade to 25 quickly. The memory leak is slowed but still there in 25 over 19 and this may have been the case for 24 James - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, May 28, 2004 4:46 PM Subject: Re: Tomcat 5 out of memory Upgrade to tc5.024 Its been sorted, i had the same jazz happening. I changed to 5.0.24 as no problems since. On 28 May 2004, at 19:55, Emerson Cargnin wrote: I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) and have the same problem... do you have this kind of message at your catalina.log? May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Emerson James Sherwood wrote: I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - 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]
Tomcat 5 out of memory
I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 out of memory
I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) and have the same problem... do you have this kind of message at your catalina.log? May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Emerson James Sherwood wrote: I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 out of memory
Upgrade to tc5.024 Its been sorted, i had the same jazz happening. I changed to 5.0.24 as no problems since. On 28 May 2004, at 19:55, Emerson Cargnin wrote: I have the same configuration (except tomcat 5.0.19 and Suse linux 9.1) and have the same problem... do you have this kind of message at your catalina.log? May 28, 2004 2:44:14 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 28, 2004 2:44:49 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 Emerson James Sherwood wrote: I am using Tomcat 5.025 Mod jk 1.2.5 and Apache 2.0.49 Memory just keeps ramping up untill it goes out of memory It is on a Windows 2003 server Any Ideas? Thanks James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - 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: Tomcat 5 out of memory
Hi - maybe try the incremental GC (JVM Hotspot switch: -Xincgc). Carl -Original Message- From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Sent: 08 April 2004 12:17 AM To: 'Tomcat Users List' Subject: Tomcat 5 out of memory Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 out of memory
Hi, Incremental GC has nothing to do with it. Rebuilding the cache (whatever that means) has nothing to do with it. This has been discussed numerous times in the past, and has to do with the permanent generation as you've surmised. See for example: http://marc.theaimsgroup.com/?l=tomcat-userm=107590242329345w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=107996450114197w=2 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 http://marc.theaimsgroup.com/?l=tomcat-userm=107048670308534w=2 Ahh, I'm tired of searching. Yoav Shapira Millennium Research Informatics -Original Message- From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:39 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5 out of memory That sounds like a reasonable explanation. Then, the only solution I can see is to set the development environment not a virtual server per developer but a Tomcat instance per person and if the OutOfMemory error happens again, restarting that Tomcat instance won't interfere with the rest of the developers' work. Do you by any chance have a link to that discussion you mentioned? I searched the archive and found some opinions, the closest was this one ...common classloader repositories (as well as shared and server) do not get discarded on webapp reload. They can't, as that might destroy other webapps. This probably raises the question in what cases the reload should be used. Thanks, Ross -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:54 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory Ross, If my memory serves me right (which is rarely) there was a discussion on the list about this. I believe the comment was that during reloads there are references to objects that don't get released when a context is undeployed. The memory is lost until a restart. In production this should not be an issue because of the infrequent occurrence of redeploys. Doug www.parsonstechnical.com - Original Message - From: Angelov, Rossen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:13 PM Subject: RE: Tomcat 5 out of memory I don't understand why rebuilding the cache would take more memory than what was originally required. It just doesn't sound right or it is a memory leak when you use the stop/start or reload options. Giving a higher priority to this process is not a very good option because in our case it is a development UNIX server and there are database and other peoples' processes running. Increasing the memory heap size will just slow down the occurrence of that OutOfMemory error instead of preventing it. I'm actually looking for a long term solution because it may be critical whether to use tomcat for production and live web servers. Thanks, Ross -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:29 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3 | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized
RE: Tomcat 5 out of memory
Thanks a lot! I appreciate your help. Ross -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 8:03 AM To: Tomcat Users List Subject: RE: Tomcat 5 out of memory Hi, Incremental GC has nothing to do with it. Rebuilding the cache (whatever that means) has nothing to do with it. This has been discussed numerous times in the past, and has to do with the permanent generation as you've surmised. See for example: http://marc.theaimsgroup.com/?l=tomcat-userm=107590242329345w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=107996450114197w=2 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20758 http://marc.theaimsgroup.com/?l=tomcat-userm=107048670308534w=2 Ahh, I'm tired of searching. Yoav Shapira Millennium Research Informatics -Original Message- From: Angelov, Rossen [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 9:39 PM To: 'Tomcat Users List' Subject: RE: Tomcat 5 out of memory That sounds like a reasonable explanation. Then, the only solution I can see is to set the development environment not a virtual server per developer but a Tomcat instance per person and if the OutOfMemory error happens again, restarting that Tomcat instance won't interfere with the rest of the developers' work. Do you by any chance have a link to that discussion you mentioned? I searched the archive and found some opinions, the closest was this one ...common classloader repositories (as well as shared and server) do not get discarded on webapp reload. They can't, as that might destroy other webapps. This probably raises the question in what cases the reload should be used. Thanks, Ross -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:54 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory Ross, If my memory serves me right (which is rarely) there was a discussion on the list about this. I believe the comment was that during reloads there are references to objects that don't get released when a context is undeployed. The memory is lost until a restart. In production this should not be an issue because of the infrequent occurrence of redeploys. Doug www.parsonstechnical.com - Original Message - From: Angelov, Rossen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:13 PM Subject: RE: Tomcat 5 out of memory I don't understand why rebuilding the cache would take more memory than what was originally required. It just doesn't sound right or it is a memory leak when you use the stop/start or reload options. Giving a higher priority to this process is not a very good option because in our case it is a development UNIX server and there are database and other peoples' processes running. Increasing the memory heap size will just slow down the occurrence of that OutOfMemory error instead of preventing it. I'm actually looking for a long term solution because it may be critical whether to use tomcat for production and live web servers. Thanks, Ross -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:29 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3 | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution
Tomcat 5 out of memory
Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.
Re: Tomcat 5 out of memory
rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3| +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 out of memory
I don't understand why rebuilding the cache would take more memory than what was originally required. It just doesn't sound right or it is a memory leak when you use the stop/start or reload options. Giving a higher priority to this process is not a very good option because in our case it is a development UNIX server and there are database and other peoples' processes running. Increasing the memory heap size will just slow down the occurrence of that OutOfMemory error instead of preventing it. I'm actually looking for a long term solution because it may be critical whether to use tomcat for production and live web servers. Thanks, Ross -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:29 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3| +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.
Re: Tomcat 5 out of memory
Ross, If my memory serves me right (which is rarely) there was a discussion on the list about this. I believe the comment was that during reloads there are references to objects that don't get released when a context is undeployed. The memory is lost until a restart. In production this should not be an issue because of the infrequent occurrence of redeploys. Doug www.parsonstechnical.com - Original Message - From: Angelov, Rossen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:13 PM Subject: RE: Tomcat 5 out of memory I don't understand why rebuilding the cache would take more memory than what was originally required. It just doesn't sound right or it is a memory leak when you use the stop/start or reload options. Giving a higher priority to this process is not a very good option because in our case it is a development UNIX server and there are database and other peoples' processes running. Increasing the memory heap size will just slow down the occurrence of that OutOfMemory error instead of preventing it. I'm actually looking for a long term solution because it may be critical whether to use tomcat for production and live web servers. Thanks, Ross -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:29 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3 | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5 out of memory
That sounds like a reasonable explanation. Then, the only solution I can see is to set the development environment not a virtual server per developer but a Tomcat instance per person and if the OutOfMemory error happens again, restarting that Tomcat instance won't interfere with the rest of the developers' work. Do you by any chance have a link to that discussion you mentioned? I searched the archive and found some opinions, the closest was this one ...common classloader repositories (as well as shared and server) do not get discarded on webapp reload. They can't, as that might destroy other webapps. This probably raises the question in what cases the reload should be used. Thanks, Ross -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:54 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory Ross, If my memory serves me right (which is rarely) there was a discussion on the list about this. I believe the comment was that during reloads there are references to objects that don't get released when a context is undeployed. The memory is lost until a restart. In production this should not be an issue because of the infrequent occurrence of redeploys. Doug www.parsonstechnical.com - Original Message - From: Angelov, Rossen [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 7:13 PM Subject: RE: Tomcat 5 out of memory I don't understand why rebuilding the cache would take more memory than what was originally required. It just doesn't sound right or it is a memory leak when you use the stop/start or reload options. Giving a higher priority to this process is not a very good option because in our case it is a development UNIX server and there are database and other peoples' processes running. Increasing the memory heap size will just slow down the occurrence of that OutOfMemory error instead of preventing it. I'm actually looking for a long term solution because it may be critical whether to use tomcat for production and live web servers. Thanks, Ross -Original Message- From: Nicholas Bernstein [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 5:29 PM To: Tomcat Users List Subject: Re: Tomcat 5 out of memory rebuilding the cache, I would imagine. I'm not sure how you would reduce it though, it's a good thing(tm) -- really, it's reducing the memory usage by 2-3MB once the cache is rebuilt. This is just an (somewhat) educated guess, though. I suppose you could give it a higher priority so it could speed it up, and take up more resources, for a shorter period of time, or alternately, throw some hardware at it, and add some more memory. On Wed, 2004-04-07 at 15:17, Angelov, Rossen wrote: Hi, We are having problems with Tomcat when restarting the virtual servers or the contexts - the memory usage goes up with about 2-3 MB per restart. We have the following java options when starting Catalina: -Xms128m -Xmx256m -verbose:gc Does anybody know what's causing such a behavior and how it can be limited? Thanks, Ross This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. -- +---+ | Nicholas Bernstein| [EMAIL PROTECTED] | | UNIX Systems Administrator| http://www.docmagic.com | | Document Systems Inc. | | | gpg: F706 8C4E 78FA 53A0 019F D983 FE28 2002 D1F3 | +---+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution.