Hi,
The folder for the session data (filestore) should be removed with the
invalidation of the user session (either expiration or explicit logout).
But there must be one such folder in /tmp with many sub-folders.
Here it looks like:
/tmp/jetty-0.0.0.0-8888-webapp-_myapp-any-/
└── MyApplication-filestore
└── 2200
└── 5314
└── 1i0svs4a1edbvdenm01kfwyzy
└── data
Whenever a user session is invalidated a branch should be removed.
The "file-prefix....tmp" file I believe is created by commons-fileupload.
It supports file cleaner which by default removes the files when the Java
process terminates, e.g. when you restart your web server.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Jan 21, 2016 at 10:59 AM, Manfred Bergmann <[email protected]>
wrote:
> Hi.
>
> I had a case where a customer had millions of file in Java tmp folder
> produced by Wicket.
> There are a lot of those folders:
> "org.apache.wicket.protocol.http.WicketServlet-128f3c8-filestore", etc.
> and
> "file-prefix59601103483491554.tmp".
>
> Most files are very small but the sheer number of them gave them a size of
> a
> couple of giga bytes.
> This is not actually a large application. It has two or three pages with
> components.
>
> The number of temp files probably has grown over a large period of time
> where the Wicket page was always open in a browser and got reloaded often.
>
> Are those files not removed from time to time, automatically?
> If not, how can I remove them programmatically?
>
> A, yeah. the Wicket version is 6.19.0. Upgrading to 6.21.0 shows the same
> behavior.
>
> Regards,
> Manfred
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Lots-of-files-in-temp-folder-tp4673379.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>