Re: [Resin-interest] Ramdon class loader problem
On Nov 3, 2006, at 6:01 AM, Daniel López wrote: > Hi, > On a related note, I've seen similar things with other containers > in the > past, so I think it is related to the messy classloaders universe > where > web applications live. Not sure if latest Resin versions improve on > that > or help detecting things, so we keep restarting them :). It's happened with Resin in the past as well (I can't remember what was the exact cause). So it's possible that an older Resin 2.1 might have that issue. -- Scott > > S! > D. > > Olli Aro escribió: > >> Hi Daniel, >> >> Thank you so much for your response. The error does not occur too >> often for >> me either, so I suppose I could schedule Resin restart e.g. every >> night and >> that would keep it away for me. >> >> We have not developed the application (an open source CMS system), >> but are >> just maintaining it, so not that keen to start profiling it if I >> can get >> away without :) >> >> Regards, >> >> Olli > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Ramdon class loader problem
Hi, That's basically what we do, restart the apps with a cron job periodically, as sooner or later when we upgrade things they tend to end up having OOMEs. So instead of waiting for them to happen, we just do a clean restart. Even if you have developed the application yourself, some of those errors are quite difficult to pinpoint, as they might be caused by libraries that use other libraries... that have side effects... ouch. The thing is, we profiled our own application under heavy load and nothing came up, memory going back to normal each time after a pause, so due to lack of time to chase the underlying cause, we ended up using the easy route. We don't need to have high availability and restarting each resin instance just takes some seconds so... But it is an itch I want to scratch when we have more time. On a related note, I've seen similar things with other containers in the past, so I think it is related to the messy classloaders universe where web applications live. Not sure if latest Resin versions improve on that or help detecting things, so we keep restarting them :). S! D. Olli Aro escribió: > Hi Daniel, > > Thank you so much for your response. The error does not occur too often for > me either, so I suppose I could schedule Resin restart e.g. every night and > that would keep it away for me. > > We have not developed the application (an open source CMS system), but are > just maintaining it, so not that keen to start profiling it if I can get > away without :) > > Regards, > > Olli ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Ramdon class loader problem
Hi Daniel, Thank you so much for your response. The error does not occur too often for me either, so I suppose I could schedule Resin restart e.g. every night and that would keep it away for me. We have not developed the application (an open source CMS system), but are just maintaining it, so not that keen to start profiling it if I can get away without :) Regards, Olli -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel López Sent: 03 November 2006 11:46 To: General Discussion for the Resin application server Subject: Re: [Resin-interest] Ramdon class loader problem All I can say is that during development, when we reload the web applications many times, when the container is about tu run OutOfMemory it gives similar error messages to the ones you describe (classes not found that have already been used etc). In our case, it seems to be related to classloaders having some references that are not cleaned appropriately, sometimes by foreign code like DataSources holding to drivers but as it is usually just a problem in development, we have not had time to chase it in detail. In any case, the symptoms you describe are usually a indication of an incoming OutOfMemoryError, the reason itself for the error is another story. I know that does not help much, but unless you are reloading your application multiple times, I would look for a memory leak. Good luck! D. Olli Aro escribió: > Anyone? I am really stuck with this one :( > > Olli > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Olli Aro > Sent: 02 November 2006 09:23 > To: 'General Discussion for the Resin application server' > Subject: [Resin-interest] Ramdon class loader problem > > Hi all, > > I have this weird problem with one of our servers running Resin 2.1 whereby > everything is working fine most of the time and then suddenly you get class > loader "class cannot be found" error for classes that were loaded ok before. > The only way to resolve issue is to do Resin restart. > > Since I am not too familiar with Resin I am now not quite sure if this is > something in our application or if this is a Resin issue. Has anyone > experienced anything similar before? Could it be something like an early > symptom of memory running out? > > Regards, > > Olli ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.13.25/515 - Release Date: 03/11/2006 05:15 Send instant messages to your online friends http://uk.messenger.yahoo.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Ramdon class loader problem
All I can say is that during development, when we reload the web applications many times, when the container is about tu run OutOfMemory it gives similar error messages to the ones you describe (classes not found that have already been used etc). In our case, it seems to be related to classloaders having some references that are not cleaned appropriately, sometimes by foreign code like DataSources holding to drivers but as it is usually just a problem in development, we have not had time to chase it in detail. In any case, the symptoms you describe are usually a indication of an incoming OutOfMemoryError, the reason itself for the error is another story. I know that does not help much, but unless you are reloading your application multiple times, I would look for a memory leak. Good luck! D. Olli Aro escribió: > Anyone? I am really stuck with this one :( > > Olli > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Olli Aro > Sent: 02 November 2006 09:23 > To: 'General Discussion for the Resin application server' > Subject: [Resin-interest] Ramdon class loader problem > > Hi all, > > I have this weird problem with one of our servers running Resin 2.1 whereby > everything is working fine most of the time and then suddenly you get class > loader "class cannot be found" error for classes that were loaded ok before. > The only way to resolve issue is to do Resin restart. > > Since I am not too familiar with Resin I am now not quite sure if this is > something in our application or if this is a Resin issue. Has anyone > experienced anything similar before? Could it be something like an early > symptom of memory running out? > > Regards, > > Olli ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Ramdon class loader problem
Anyone? I am really stuck with this one :( Olli -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Olli Aro Sent: 02 November 2006 09:23 To: 'General Discussion for the Resin application server' Subject: [Resin-interest] Ramdon class loader problem Hi all, I have this weird problem with one of our servers running Resin 2.1 whereby everything is working fine most of the time and then suddenly you get class loader "class cannot be found" error for classes that were loaded ok before. The only way to resolve issue is to do Resin restart. Since I am not too familiar with Resin I am now not quite sure if this is something in our application or if this is a Resin issue. Has anyone experienced anything similar before? Could it be something like an early symptom of memory running out? Regards, Olli ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.430 / Virus Database: 268.13.23/513 - Release Date: 02/11/2006 07:40 ___ Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Ramdon class loader problem
Hi all, I have this weird problem with one of our servers running Resin 2.1 whereby everything is working fine most of the time and then suddenly you get class loader "class cannot be found" error for classes that were loaded ok before. The only way to resolve issue is to do Resin restart. Since I am not too familiar with Resin I am now not quite sure if this is something in our application or if this is a Resin issue. Has anyone experienced anything similar before? Could it be something like an early symptom of memory running out? Regards, Olli ___ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest