vertx 3.1.0: file-cache folders?

2,898 views
Skip to first unread message

Hoobajoob

unread,
Oct 19, 2015, 5:10:56 PM10/19/15
to vert.x
vertx appears to create a .vertx folder when it runs, and within that folder, subfolders named like "file-cache-<guid>", and these folders, in turn, are empty.

What are these folders for? Can/should I prevent them from being created?

Clement Escoffier

unread,
Oct 20, 2015, 2:38:26 AM10/20/15
to ve...@googlegroups.com
Hi,

This directory is used to serve files contained in jar files (for example web assets packaged in a fat jar). If you are not using this feature, you can disable the creation of this directory by setting the vertx.disableFileCPResolving system property to true. You can also change the location using the vertx.cacheDirBase system property.

Clement

On 19 octobre 2015 at 23:10:58, Hoobajoob (chefho...@gmail.com) wrote:

vertx appears to create a .vertx folder when it runs, and within that folder, subfolders named like "file-cache-<guid>", and these folders, in turn, are empty.

What are these folders for? Can/should I prevent them from being created?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/f0e12527-9359-4cbf-85a3-080b48aec18c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hoobajoob

unread,
Oct 20, 2015, 12:28:14 PM10/20/15
to vert.x
Thanks Clement - setting that property does indeed prevent those directories from being created.

Looks like the related feature in vertx that this affects is this one: http://vertx.io/docs/vertx-web/java/#_serving_static_resources

Thanks for the pointer

Clement Escoffier

unread,
Oct 21, 2015, 2:03:03 AM10/21/15
to ve...@googlegroups.com
Hi,

Yes this is one of the impacted feature. More generally, all “send file” methods are impacted.

Clement

charles....@gmail.com

unread,
Jul 18, 2022, 1:41:33 PM7/18/22
to vert.x
hi all, I'm trying these various options discussed above to defeat the creation of said "vertx" cache dir but when I pass these system options to my fat jar at startup they are apparently being ignored.
Any ideas ? 

this is on Windows btw, in case that's' relevant, we are still on Vertx 3.6.3

thanks

Reply all
Reply to author
Forward
0 new messages