diskspace

Docker container logs taking all my disk space

狂风中的少年 提交于 2019-12-02 16:29:01
I am running a container on a VM. My container is writing logs by default to /var/lib/docker/containers/CONTAINER_ID/CONTAINER_ID-json.log file until the disk is full. Currently, I have to delete manually this file to avoid the disk to be full. I read that in Docker 1.8 there will be a parameter to rotate the logs . What would you recommend as the current workaround? poiuytrez Docker 1.8 has been released with a log rotation option. Adding: --log-opt max-size=50m when the container is launched does the trick. You can learn more at: https://docs.docker.com/engine/admin/logging/overview/ CAUTION

MacOS Xcode CoreSimulator folder very big. Is it ok to delete content?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 13:47:26
My ~/Library/Developer/CoreSimulator/Devices folder is 26 Gb in size. Is it safe to just delete all the content? Will those files be automatically regenerated? Petr Syrov Try to run xcrun simctl delete unavailable in your terminal. Original answer: Xcode - free to clear devices folder? That directory is part of your user data and you can delete any user data without affecting Xcode seriously. You can delete the whole CoreSimulator/ directory. Xcode will recreate fresh instances there for you when you do your next simulator run. If you can afford losing any previous simulator data of your apps

Android and data storage space?

北城以北 提交于 2019-12-02 05:01:50
问题 Im wondering how much data storage is available for my application in android? I need to cache lots of files, and i was thinking to store it inside the sharedpreferences, this way it gets deleted if the application is uninstalled. Afterall its just alot of cache files. I guess i could also use the SDCard, but than i dont have any controll of what the user does outside the application... So, how many MB can my application steel from SharedPreferences when storing files ? 回答1: If you are

Android and data storage space?

时光总嘲笑我的痴心妄想 提交于 2019-12-02 01:30:50
Im wondering how much data storage is available for my application in android? I need to cache lots of files, and i was thinking to store it inside the sharedpreferences, this way it gets deleted if the application is uninstalled. Afterall its just alot of cache files. I guess i could also use the SDCard, but than i dont have any controll of what the user does outside the application... So, how many MB can my application steel from SharedPreferences when storing files ? If you are planning to store MBs of data then try to use the sdcard to avoid filling the often limited storage built into the

With Phonegap, how can I check how much free disk space remaining?

二次信任 提交于 2019-12-01 23:40:40
问题 I have a Phonegap app that uses filesystem API to save file on device filesystem. On startup the app requires some filesystem space with window.requestFileSystem but runtime it's possible to download other files and I can't predict the total amount of needed disk space. The idea is to check the space available before download begins and if the space is not enough then trigger a message to user. Is there some method with Phonegap to check remaining free space? 回答1: Phonegap does not provide

“size on disk” is zero for non-zero file in windows 8?

风流意气都作罢 提交于 2019-12-01 15:19:05
问题 I found there are some files on my disk, which 1) the real size is not zero, but it is small, around 500 bytes 2) the "size on disk" shows zero when you check its properties 3) if I make the file smaller, the "size on disk" is still 0 4) if I make the file bigger, even 1 bytes bigger, the size on disk will change to 4096 5) the disk is not compressed How it is possible? My os is windows 8.1: Is this a new feature in windows 8? Is windows 8 so smart that it can merge those small files into one

How big is a sonar database?

为君一笑 提交于 2019-12-01 13:36:08
It might looks like a dumb question. In fact it's more like a poll: how big is your Sonar database? I need this to estimate the requirements for a virtual machine to host my Sonar instance. Also: how big is your team? how many additional bytes is used in the Sonar database for every new commit? I will appreciate any help. I'm assuming that you're referring to Sonar from Codehaus , and not SOund Navigation And Ranging . From the installation page : The Sonar web server requires 500Mo of RAM to run efficiently. In terms of data space and as an indication, on Nemo the public instance of Sonar,

How big is a sonar database?

一世执手 提交于 2019-12-01 10:31:15
问题 It might looks like a dumb question. In fact it's more like a poll: how big is your Sonar database? I need this to estimate the requirements for a virtual machine to host my Sonar instance. Also: how big is your team? how many additional bytes is used in the Sonar database for every new commit? I will appreciate any help. 回答1: I'm assuming that you're referring to Sonar from Codehaus, and not SOund Navigation And Ranging. From the installation page: The Sonar web server requires 500Mo of RAM

Finding out total and free disk space

别等时光非礼了梦想. 提交于 2019-11-30 17:29:53
I am trying to find a way to determine the total and available disk space in an arbitrary folder from a .NET app. By "total disk space" and "available disk space" in a folder I refer to the total and available disk space that this folder would report if you performed a "dir" command on it, that is, the total and available disk space of the logical drive containing that folder, considering the user account under which the request is being made. I am using C#. The method should work both for local and remote folders given as UNC paths (rather than accessed through mapped drive letters). For

Finding out total and free disk space in .NET

六眼飞鱼酱① 提交于 2019-11-30 16:38:28
问题 I am trying to find a way to determine the total and available disk space in an arbitrary folder from a .NET app. By "total disk space" and "available disk space" in a folder I refer to the total and available disk space that this folder would report if you performed a "dir" command on it, that is, the total and available disk space of the logical drive containing that folder, considering the user account under which the request is being made. I am using C#. The method should work both for