RE: Page serialization filling up disc space

2012-09-26 Thread shetc
Hi All,

Is there an official answer to Johan's last questions? That is, how do you
determine which files can be deleted from the wicket file store?

Thanks,
Steve



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Page-serialization-filling-up-disc-space-tp3588690p4652375.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page serialization filling up disc space

2012-09-26 Thread Martin Grigorov
Hi,

Wicket creates a sub-folder for each http session and uses its id as
folder name.
If your servlet container provides means to list all active sessions
then you can safely delete all folders for non-listed ones.

Wicket removes such folders when an http session is invalidated. For
some reason this is not the case at your place.

On Wed, Sep 26, 2012 at 4:27 PM, shetc sh...@bellsouth.net wrote:
 Hi All,

 Is there an official answer to Johan's last questions? That is, how do you
 determine which files can be deleted from the wicket file store?

 Thanks,
 Steve



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Page-serialization-filling-up-disc-space-tp3588690p4652375.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Page serialization filling up disc space

2011-06-13 Thread Johan.Evelonn
Hi Pedro,

I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
directory I get a lot of directorys like this:
.paxweb/wicket.filter-filestore/

These directorys are never removed and that is filling up the temporary 
directory.

I have not configured the DiskPageStore at all, but I don't know if it will 
help if I change the maximum size of the pagemap, since old pagemaps is the 
problem.

I read this discussion which is sort of the same problem:
http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


Best regards,
Johan Evelönn 


-Original Message-
From: Pedro Santos [mailto:pedros...@gmail.com] 
Sent: den 10 juni 2011 17:55
To: users@wicket.apache.org
Subject: Re: Page serialization filling up disc space

Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
will never exceed the defined limit. It also delete the file when
session expires.
In which Wicket version did you find this issue? Can you fill a ticket
with a quickstart?

On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes the 
 application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, but 
 haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




-- 
Pedro Henrique Oliveira dos Santos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page serialization filling up disc space

2011-06-13 Thread Martin Grigorov
By default Wicket uses javax.servlet.context.tempdir/... as a
location where these files are stored.
This by default is the work/ folder of the web container and is
managed by the web container itself.
You'll have to read the documentation of your web container (paxweb
tells me that this is OSGi but I don't know more about it).

You can change this locally programatically with
getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
and manage it yourself.

On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes the 
 application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, but 
 haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page serialization filling up disc space

2011-06-13 Thread Martin Grigorov
In Wicket 1.5 (trunk) there is also
org.apache.wicket.settings.IStoreSettings.setFileStoreFolder(File)
which allows to set a custom folder without using Servlet API

On Mon, Jun 13, 2011 at 12:21 PM, Martin Grigorov mgrigo...@apache.org wrote:
 By default Wicket uses javax.servlet.context.tempdir/... as a
 location where these files are stored.
 This by default is the work/ folder of the web container and is
 managed by the web container itself.
 You'll have to read the documentation of your web container (paxweb
 tells me that this is OSGi but I don't know more about it).

 You can change this locally programatically with
 getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
 and manage it yourself.

 On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes 
 the application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, 
 but haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Page serialization filling up disc space

2011-06-13 Thread Johan.Evelonn
Hi,

Yes, the server I run the wicket web application on is based on OSGi, I have 
checked in Paxweb if there is some settings to tweak, but haven't found any 
just yet.

I changed the folder where the files are located by changing java.io.tmpdir.
So I will have to manage that folder myself? I guess I could create a cron-job, 
which would delete files older than a certain age.
Will Wicket throw an exception if I delete wrong-files, how would I need to 
handle that in such case?

Best regards,
Johan Evelönn 


-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org] 
Sent: den 13 juni 2011 11:59
To: users@wicket.apache.org
Subject: Re: Page serialization filling up disc space

In Wicket 1.5 (trunk) there is also
org.apache.wicket.settings.IStoreSettings.setFileStoreFolder(File)
which allows to set a custom folder without using Servlet API

On Mon, Jun 13, 2011 at 12:21 PM, Martin Grigorov mgrigo...@apache.org wrote:
 By default Wicket uses javax.servlet.context.tempdir/... as a
 location where these files are stored.
 This by default is the work/ folder of the web container and is
 managed by the web container itself.
 You'll have to read the documentation of your web container (paxweb
 tells me that this is OSGi but I don't know more about it).

 You can change this locally programatically with
 getServletContext().setAttribute(javax.servlet.context.tempdir,/my/own/location);
 and manage it yourself.

 On Mon, Jun 13, 2011 at 12:00 PM,  johan.evel...@tieto.com wrote:
 Hi Pedro,

 I use Wicket 1.4.5. The container is Paxweb with Jetty, and in my home 
 directory I get a lot of directorys like this:
 .paxweb/wicket.filter-filestore/

 These directorys are never removed and that is filling up the temporary 
 directory.

 I have not configured the DiskPageStore at all, but I don't know if it will 
 help if I change the maximum size of the pagemap, since old pagemaps is the 
 problem.

 I read this discussion which is sort of the same problem:
 http://markmail.org/message/s26yx2asi3misxni#query:+page:1+mid:ohrigrswechv33t6+state:results


 Best regards,
 Johan Evelönn


 -Original Message-
 From: Pedro Santos [mailto:pedros...@gmail.com]
 Sent: den 10 juni 2011 17:55
 To: users@wicket.apache.org
 Subject: Re: Page serialization filling up disc space

 Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
 will never exceed the defined limit. It also delete the file when
 session expires.
 In which Wicket version did you find this issue? Can you fill a ticket
 with a quickstart?

 On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes 
 the application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, 
 but haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




 --
 Pedro Henrique Oliveira dos Santos

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Page serialization filling up disc space

2011-06-10 Thread Pedro Santos
Hi Johan, DiskDataStore writes cyclic in data file storing pages, it
will never exceed the defined limit. It also delete the file when
session expires.
In which Wicket version did you find this issue? Can you fill a ticket
with a quickstart?

On Fri, Jun 10, 2011 at 6:26 AM,  johan.evel...@tieto.com wrote:
 Hi,

 My wicket application is filling up my temporary directory, which causes the 
 application to finally crash due to no space available.
 I have been looking for a setting in Wicket to clean old serializations, but 
 haven't found it.

 Does wicket contain a cleanup system of old page serializations? If so, how 
 do I configure it?

 Best Regards,
 Johan Evelönn




-- 
Pedro Henrique Oliveira dos Santos

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org