How much memory are we talking about and on which platform? Isn't it maybe just the HotSpot compiler kicking in? After interpreting the same bytecode a few thousand times it generates machine code in heap allocated memory. In the end you reach the maximum virtual memory size allowed for the OS process, malloc returns null and JRE panics.
HTH, Alfred. >-----Original Message----- >From: Rob Adams [mailto:[EMAIL PROTECTED] >Sent: Mittwoch, 7. Januar 2004 20:48 >To: [EMAIL PROTECTED] >Subject: cocoon class loading and garbage collection > > >I'm continuing to investigate my problem with cocoon causing >OutOfMemory >errors. > >Merely visiting a large number of pages using cocoon causes the VM to >run out of memory. When in Sun's JRE it reports OutOfMemory exceptions >after visiting a large number of pages; with IBM's the JRE actually >dumps core. This is happening even when I repeatedly visit a small >number of pages that don't need to be recompiled, after something like >1000 requests. > >When it crashes, there is plenty of heap space as reported by >Runtime.freeMemory(); however the memory size of the JVM itself >gradually grows until it eventually fails as previously mentioned. > >This leads me to believe that perhaps the classes aren't being garbage >collected. Does cocoon have any mechanism for ensuring that it frees >references to unused classes? Will these classes be garbage >collected? >Is there anything I can do to ensure that they are? > >Thanks, >Rob > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
