Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-19 Thread Stefan Fußenegger
ablePageLink:fooLink-org.apache.wicket.markup.html.panel.Fragment:track-org.apache.wicket.markup.html.list.ListItem:14-my.company.FooListPanel$1:fooList-my.company.FooListPanel:foos-org.apache.wicket.markup.html.list.ListItem:0-my.company.BarListPanel$1:bars-my.company.FooListPanel:panel-my.company.boxes.BodyBox:2-org.apache.wicket.

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-19 Thread Quan Zhou
of my pages. > Let's say there are 5 possible positions, this would cause 2500 thousand > cached entries, each with a key of 300+ characters plus some more > characters > for the cached message - feel free to do the maths. From a quick estimate > I'd say: No wonder, thi

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-16 Thread Igor Vaynberg
;>>> due >>>>>>>> to >>>>>>>> an OutOfMemoryError ("GC overhead limit exceeded" to be precise). >>>>>>>> Using >>>>>>>> jhat, the "175456 instances of class >>>>

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-16 Thread Juha Alatalo
usic.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the following problem: those strings are constructed from the "position" of a localized String on a page, which is quite a bad th

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-12 Thread Matej Knopp
pOnOutOfMemoryError flag) of a recent application cache >>>>>>>> due >>>>>>>> to >>>>>>>> an OutOfMemoryError ("GC overhead limit exceeded" to be precise). >>>>>>>> Using >>>>>>>> jhat, t

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-12 Thread Juha Alatalo
r-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the following problem: those strings are constructed from the "position" of a localized String on a page, which

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Igor Vaynberg
ig one: Localizer.cache has a hash table length >>>>>> of >>>>>> 262144, each of its 32 segments with about 5300 entries, where a hash >>>>>> key >>>>>> is >>>>>> a string, sometimes longer than 500 characte

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Juha Alatalo
e.wicket.markup.html.list.ListItem:0- my.company.BarListPanel$1:bars-my.company.FooListPanel:panel- my.company.boxes.BodyBox:2- org.apache.wicket.markup.repeater.RepeatingView:body- my.company.layout.Border:border-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Stefan Fußenegger
, sometimes longer than 500 charactes, similar to (see >>>> Localizer.getCacheKey(String,Component)): >>>> >>>> fooTitle.bar- >>>> org.apache.wicket.markup.html.link.BookmarkablePageLink:fooLink- >>>> org.apache.wicket.markup.html.panel.Fra

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Daniel Frisk
el- my.company.boxes.BodyBox:2- org.apache.wicket.markup.repeater.RepeatingView:body- my.company.layout.Border:border-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the fol

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-10 Thread Stefan Fußenegger
:panel-my.company.boxes.BodyBox:2-org.apache.wicket.markup.repeater.RepeatingView:body-my.company.layout.Border:border-my.company.pages.music.FoobarPage:43-de-null >> >> Those numbers pretty much convinced me: The localizer cache has blown >> away >> my application. >>

Re: Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-09 Thread Igor Vaynberg
em:0-my.company.BarListPanel$1:bars-my.company.FooListPanel:panel-my.company.boxes.BodyBox:2-org.apache.wicket.markup.repeater.RepeatingView:body-my.company.layout.Border:border-my.company.pages.music.FoobarPage:43-de-null > > Those numbers pretty much convinced me: The localizer cache has blown away &

Localizer cache with 150.000+ entries causing OutOfMemory

2008-06-09 Thread Stefan Fußenegger
es, each with a key of 300+ characters plus some more characters for the cached message - feel free to do the maths. From a quick estimate I'd say: No wonder, this has blown away my app. As a quick fix, I'd suggest to regularly clear the localizer cache, use a more sophisticated cache (t

Re: Clear Localizer Cache

2008-01-05 Thread Eelco Hillenius
ngs().getLocalizer().clearCache() might do > > the trick. > > > > -Matej > > > > On Jan 4, 2008 9:00 PM, marcus dickerhof <[EMAIL PROTECTED]> wrote: > > > Hello, > > > is there a possiblity to globally clear the localizer cache? > > > I ha

Re: Clear Localizer Cache

2008-01-05 Thread marcus dickerhof
> is there a possiblity to globally clear the localizer cache? > > I have a database stringresource, which might get updated. > > If that happens I do not want to restart the application. > > I want to have button with which I can c

Re: Clear Localizer Cache

2008-01-04 Thread Matej Knopp
Application.getResourceSettings().getLocalizer().clearCache() might do the trick. -Matej On Jan 4, 2008 9:00 PM, marcus dickerhof <[EMAIL PROTECTED]> wrote: > Hello, > is there a possiblity to globally clear the localizer cache? > I have a database stringresource, which might ge

Clear Localizer Cache

2008-01-04 Thread marcus dickerhof
Hello, is there a possiblity to globally clear the localizer cache? I have a database stringresource, which might get updated. If that happens I do not want to restart the application. I want to have button with which I can clear the cache. Thanks! Best regards Marcus

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
There's a discussion on the JIRA whether or not to make the localizer cache in development mode, but just for reference (and for other people searching for localizer and cache), Juergen showed me how to get what I want by adding the following code in the init() method of my application:

Re: Localizer cache

2007-11-05 Thread Johan Compagner
iting > of your keys you can easily manually create a link to clear the > localizer cache on demand on the production server. If you really want > dynamic content I don't really know if the message mechanism is the > right way to go? > > Regards, > Sebastiaan > >

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
dy rendered the page once the cache is not cleared and it keeps finding the key=null entry in the cache. * if you add your own database string resource loader, the cache is never flushed at all. I know I can add a link to flush the localizer cache if and only if we're in development mod

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
at to do with it? I think it would be quite expensive generally not to cache if the content is from the DB. It seems to me that if you allow content editing of your keys you can easily manually create a link to clear the localizer cache on demand on the production server. If you really want dy

Re: Localizer cache

2007-11-05 Thread Johan Compagner
se string resource loader, the cache is > never flushed at all. > > I know I can add a link to flush the localizer cache if and only if > we're in development mode, but I think a Settings options could be nice > to just turn off caching (my laptop is fast enough, I really

Re: Localizer cache

2007-11-04 Thread Eelco Hillenius
ey=null entry in the cache. > > * if you add your own database string resource loader, the cache is > never flushed at all. > > I know I can add a link to flush the localizer cache if and only if > we're in development mode, but I think a Settings options could be nice > t

Localizer cache

2007-11-04 Thread Sebastiaan van Erk
rties file for a page or component after you already rendered the page once the cache is not cleared and it keeps finding the key=null entry in the cache. * if you add your own database string resource loader, the cache is never flushed at all. I know I can add a link to flush the localizer cac