

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
34 messages in org.codehaus.groovy.devRe: [groovy-dev] Re: [groovy-user] Me...| From | Sent On | Attachments |
|---|---|---|
| Alex Tkachman | Oct 16, 2008 2:30 pm | |
| Alex Tkachman | Oct 16, 2008 3:17 pm | |
| Jochen Theodorou | Oct 16, 2008 3:49 pm | |
| Tim Quinn | Oct 16, 2008 4:15 pm | |
| Alexander Veit | Oct 16, 2008 4:34 pm | |
| Jochen Theodorou | Oct 16, 2008 4:43 pm | |
| Tim Quinn | Oct 16, 2008 5:28 pm | |
| Jochen Theodorou | Oct 17, 2008 6:35 am | |
| Alex Tkachman | Oct 17, 2008 6:44 am | |
| Graeme Rocher | Oct 17, 2008 6:54 am | |
| Jochen Theodorou | Oct 17, 2008 7:05 am | |
| Graeme Rocher | Oct 17, 2008 7:14 am | |
| alex...@gmail.com | Oct 17, 2008 7:30 am | |
| Jochen Theodorou | Oct 17, 2008 7:36 am | |
| Alex Tkachman | Oct 17, 2008 9:51 am | |
| Jochen Theodorou | Oct 22, 2008 5:27 am | |
| Alex Tkachman | Oct 22, 2008 5:37 am | |
| Jochen Theodorou | Oct 22, 2008 6:05 am | |
| Alex Tkachman | Oct 22, 2008 6:08 am | |
| Jochen Theodorou | Oct 22, 2008 6:18 am | .zip |
| Alex Tkachman | Oct 22, 2008 6:32 am | |
| Jochen Theodorou | Oct 22, 2008 7:06 am | |
| Guillaume Laforge | Oct 22, 2008 7:08 am | |
| Alex Tkachman | Oct 22, 2008 7:11 am | |
| Guillaume Laforge | Oct 22, 2008 7:21 am | |
| Jochen Theodorou | Oct 22, 2008 7:22 am | |
| Jochen Theodorou | Oct 22, 2008 7:39 am | |
| Jochen Theodorou | Oct 22, 2008 7:41 am | |
| Alex Tkachman | Oct 22, 2008 9:16 am | |
| Jochen Theodorou | Oct 22, 2008 10:11 am | |
| Jochen Theodorou | Oct 22, 2008 11:24 am | |
| Alex Tkachman | Oct 22, 2008 11:48 am | |
| Jochen Theodorou | Oct 22, 2008 2:07 pm | |
| Jochen Theodorou | Dec 22, 2008 12:52 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [groovy-dev] Re: [groovy-user] Memory leaks in Groovy | Actions... |
|---|---|---|
| From: | Graeme Rocher (gra...@g2one.com) | |
| Date: | Oct 17, 2008 7:14:23 am | |
| List: | org.codehaus.groovy.dev | |
On Fri, Oct 17, 2008 at 3:06 PM, Jochen Theodorou <blac...@gmx.org> wrote:
Alex Tkachman schrieb:
Jochen, Graeme,
Could you please review fix I just commited. It is based on reference counters (not special API or profiles). Unfortunately I don't have (easy) way to test it, so review is very important
hmm... I am not sure this will really fix the problem... the problem was a OOME because the loader could not be garbage collected, because there is still an active thread. Assuming the thread does stop 5s after the last use and another deploy would not have enough memory left, but is done within these 5s, then we still get the OOME. If things are bad and there are multiple deploys in that time the story gets even worse. If multiple aplication are in the server and they use groovy then you have that problem multiple times.
Also I am not too sure about the reference counting you do. If there are still entries, then the loader can not be garbage collected, because oif the Thread. On the other hand if there where entries and no thread, then the loader and all classes could be garbage collected right away. So the garbage collector would have to do multiple passes and then the Thread still waits for 5s and I think in the meantime the OMMe is already there. So at last we need to decrement first and leave the thread right away if it reaches 0. But I still think that would not be enough, because that code would be executed after the garbage collector was not able to free enough space.
We will still get the OOME.
I think neither the reference count nor the timeout will work in general. There is a small chance it will do for the glassfish people if they are not fast enough... but the more groovy applications are running and are redeployed the higher the chance for a OOME, because the 5s are not past yet
I'm in agreement with Jochen here, any solution that relies on the timing of events is going to be prone to failure.
Cheers
bye blackdrag
-- Jochen "blackdrag" Theodorou The Groovy Project Tech Lead (http://groovy.codehaus.org) http://blackdragsview.blogspot.com/ http://www.g2one.com/
--------------------------------------------------------------------- To unsubscribe from this list, please visit:
-- Graeme Rocher Grails Project Lead G2One, Inc. Chief Technology Officer http://www.g2one.com
--------------------------------------------------------------------- To unsubscribe from this list, please visit:








.zip