Magento2.3.1 : No.of files increased
Magento generates files in following directories
- generated
- var
- pub/static
- pub/media/catalog/products/cache (In most cases this directory takes most of the storage)
The no of files you have uploaded at start would surly increase after Magento generates all other files.
You need to manually check directory sizes in each of the above listed directories by command, something like this:
cd var/
du -sh
When Magento compiles (di compilation and static content deploy) it takes a lot of the already existing files in the app/code/
directory, or vendor directory, and produces a lot of generated and cached content in the generated/
and var/
directories.
File caching will also generate a large number of files, try to cache using Redis instead if you don't already