On 1/12/06, Michel Costa <[EMAIL PROTECTED]> wrote: > No, that is not a Tomcat problem... it's a specific application problem... I > saw some people complaining about the same things in applications similar to > mine. >
By "No, that is not a Tomcat problem...", I believe you're saying that there's no problem related to startup etc. Ack on the statement that you're talking about an application specific problem. > The big whole problem with my application is the framework usage: Hibernate > and Struts... > My guess is that hibernate is not finalizing normally (i done some tests > restarting the context using only struts and garbage collecting and checking > the amount of free memory)... cause when I restart the context about 4 times > using hibernate and struts there is no more free memory neither memory to > allocate. It ends with a Heap space error. > Ack. So you're placing hibernate in the Context's WEB-INF/lib folder ? I haven't used Hibernate yet, but will do so to understand this issue. > Every time a new class is compiled during development the context must be > restarted to update the class reference, so now we have a problem. > > My way out is to make a classloader to monitor these classes in classes > folder and auto-update the reference... Is this what you want ? a) Hibernate etc are loaded just once. b) Your apps' classes are monitored and when ever they change, a fresh classloader is instantiated. c) At this time, Hibernate etc are not to be reloaded. d) Hibernate and Struts and anyone else should continue to to have access to the latest classes. I see a problem with Hibernate having a reference to the older classes (perhaps in objects that are cached, etc. I don't know for sure, I'm just speculating here). This would be an interesting problem to solve. If you don't get this right, then let me know, I'd like to help. I'm interesting in solving this classloader requirement as well - it'll be a good exercise for the mind :) > Wish me luck ;-) > Best of luck :) > I will take a look at your idea... but seems you are not trying to reload the > classes references. > Correct. It was just something I put together late at night. I'm considering adding stuff like monitoring for changes in the classes mentioned in these paths, etc. I'll look into this. Let me know if you'd like to see some feature. -- Sriram --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]