{"__v":44,"_id":"553a6c030074c80d00621bd6","category":{"__v":15,"_id":"54cfba0ebba1a023008741b8","pages":["54d0331dc795960d009f4213","54d0333f94f7980d0081b83e","54d03369f530ca0d0005395d","54d0338894f7980d0081b840","54d033a8c795960d009f4216","54d033df94f7980d0081b842","54d0340094f7980d0081b844","54d034d0f530ca0d00053960","5531432b29603d2300011386","553529553ad5c90d00d0609c","5537df420899730d0081368a","553a6c030074c80d00621bd6","5571f7fe8956493700aae248","55dc0a267fa0290d00558e6c","56696a5155e4b32100935db5"],"project":"54cf411f9d09bb0d00a17a1c","version":"54cf411f9d09bb0d00a17a1f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-02T17:55:26.712Z","from_sync":false,"order":3,"slug":"workspaces","title":"Workspaces"},"parentDoc":null,"project":"54cf411f9d09bb0d00a17a1c","user":"54cfa8c8a8a4fd0d00b7fd1c","version":{"__v":14,"_id":"54cf411f9d09bb0d00a17a1f","project":"54cf411f9d09bb0d00a17a1c","createdAt":"2015-02-02T09:19:27.656Z","releaseDate":"2015-02-02T09:19:27.656Z","categories":["54cf41209d09bb0d00a17a20","54cfb99bbba1a023008741af","54cfb9a65ff7e617002bbd7f","54cfba03bba1a023008741b6","54cfba0ebba1a023008741b8","54cfba19bba1a023008741b9","54cfba29bba1a023008741bb","54cfba345ff7e617002bbd87","54cfba3ebba1a023008741bc","54cfba473995cf0d0006f6f0","54e371b18ef7552300409bf2","54e37aa5e887c50d005ef629","555a4e9b147f91190092d137","56b0e91802f4bc0d006ce254"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["563a948e1846790d00895435"],"next":{"pages":[],"description":""},"createdAt":"2015-04-24T16:14:59.489Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Introducing the new Individual plan!\",\n  \"body\": \"We recently introduced a new [individual plan](doc:picking-a-plan) that allows *unlimited* workspaces with a maximum RAM of 2.5GB and 10GB Disk. [Check it out!](https://c9.io/pricing/webide).\"\n}\n[/block]\n## Out of RAM\n \nIf you run out of RAM/memory, you will be notified and processes may be killed to stay within the limit. You'll want to inspect your [Process List](doc:process-list) to see what processes are running and taking up memory. Following are a couple things to watch out for.\n\n  * Avoid running multiple instances of any process\n  * If memory meter fills up, shut down your server, and any tasks that you're running. See if there are still processes running that shouldn't be. If so, kill them. Sometimes duplicate processes are created and can cause workspaces to run out of RAM. Killing them will reclaim some memory.\n  * If the base RAM being used by your system doesn't go down even after killing all unnecessary processes, [restart your workspace](doc:reseting-a-workspace), by clicking on the stats menu and clicking 'Restart'. Follow that with a quick browser refresh and RAM usage goes down to a much more reasonable number\n  * If you're using Spring, try stopping it. You can stop spring by `bin/spring stop` or by running the command `pkill -9 -f spring`. Note that spring will start automatically the next time you run rails or rake.\n\nIf all those things are done and you're still getting memory limits, you probably need more RAM. You can [resize your workspace](doc:workspace-resizing) to something a little larger or you can try an [SSH workspace](doc:running-your-own-ssh-workspace) with your own server.\n[block:callout]\n{\n  \"type\": \"success\",\n  \"body\": \"Currently both `top` and our process list are showing you the percentage of memory being used by a process 'for the entire server'. We're looking at ways to gather better data for your workspace.\",\n  \"title\": \"Inaccurate Process Percentages\"\n}\n[/block]\n## Out of Disk Space\n\nIf you run out of disk space, the terminal will display a message to let you know and any downloads will be stopped.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/5vUp65ZQI18YWQ4H7RTA_Screen%20Shot%202015-04-24%20at%2011.07.00%20AM.png\",\n        \"Screen Shot 2015-04-24 at 11.07.00 AM.png\",\n        \"1155\",\n        \"201\",\n        \"#61a02a\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nTo see what's taking up all your disk space, you can try our custom `du-c9` command within the terminal and it will list all the files and their respective sizes. You can sort them by the files and folders taking up most space running the following:\n\n`du-c9 | sort -h`\n​​\n\nNow look through the largest folders and see what is taking up all your disk space. If you think you can't remove any files, you can [resize your workspace](doc:workspace-resizing).","excerpt":"","slug":"reaching-resource-limits","type":"basic","title":"Reaching Resource Limits"}

Reaching Resource Limits


[block:callout] { "type": "info", "title": "Introducing the new Individual plan!", "body": "We recently introduced a new [individual plan](doc:picking-a-plan) that allows *unlimited* workspaces with a maximum RAM of 2.5GB and 10GB Disk. [Check it out!](https://c9.io/pricing/webide)." } [/block] ## Out of RAM If you run out of RAM/memory, you will be notified and processes may be killed to stay within the limit. You'll want to inspect your [Process List](doc:process-list) to see what processes are running and taking up memory. Following are a couple things to watch out for. * Avoid running multiple instances of any process * If memory meter fills up, shut down your server, and any tasks that you're running. See if there are still processes running that shouldn't be. If so, kill them. Sometimes duplicate processes are created and can cause workspaces to run out of RAM. Killing them will reclaim some memory. * If the base RAM being used by your system doesn't go down even after killing all unnecessary processes, [restart your workspace](doc:reseting-a-workspace), by clicking on the stats menu and clicking 'Restart'. Follow that with a quick browser refresh and RAM usage goes down to a much more reasonable number * If you're using Spring, try stopping it. You can stop spring by `bin/spring stop` or by running the command `pkill -9 -f spring`. Note that spring will start automatically the next time you run rails or rake. If all those things are done and you're still getting memory limits, you probably need more RAM. You can [resize your workspace](doc:workspace-resizing) to something a little larger or you can try an [SSH workspace](doc:running-your-own-ssh-workspace) with your own server. [block:callout] { "type": "success", "body": "Currently both `top` and our process list are showing you the percentage of memory being used by a process 'for the entire server'. We're looking at ways to gather better data for your workspace.", "title": "Inaccurate Process Percentages" } [/block] ## Out of Disk Space If you run out of disk space, the terminal will display a message to let you know and any downloads will be stopped. [block:image] { "images": [ { "image": [ "https://files.readme.io/5vUp65ZQI18YWQ4H7RTA_Screen%20Shot%202015-04-24%20at%2011.07.00%20AM.png", "Screen Shot 2015-04-24 at 11.07.00 AM.png", "1155", "201", "#61a02a", "" ] } ] } [/block] To see what's taking up all your disk space, you can try our custom `du-c9` command within the terminal and it will list all the files and their respective sizes. You can sort them by the files and folders taking up most space running the following: `du-c9 | sort -h` ​​ Now look through the largest folders and see what is taking up all your disk space. If you think you can't remove any files, you can [resize your workspace](doc:workspace-resizing).