{"meta":{"title":"\"Out of disk\" and \"Out of memory\" errors","intro":"If you see one of these errors with GitHub Actions, you can try alternative runners.","product":"Security and code quality","breadcrumbs":[{"href":"/en/code-security","title":"Security and code quality"},{"href":"/en/code-security/reference","title":"Reference"},{"href":"/en/code-security/reference/code-scanning","title":"Code scanning"},{"href":"/en/code-security/reference/code-scanning/troubleshoot-analysis-errors","title":"Troubleshoot analysis errors"},{"href":"/en/code-security/reference/code-scanning/troubleshoot-analysis-errors/out-of-disk-or-memory","title":"Out of disk or memory"}],"documentType":"article"},"body":"# \"Out of disk\" and \"Out of memory\" errors\n\nIf you see one of these errors with GitHub Actions, you can try alternative runners.\n\n<!-- CodeQL CLI depends on a short URL generated from this article's URL. If this article's URL ever changes, make sure to update the short URL https://gh.io/troubleshooting-code-scanning/out-of-disk-or-memory. https://thehub.github.com/it/how-to/url-shortening -->\n\n## About these errors\n\nYou may see these errors when running code scanning if the runners you're using don't meet the recommended hardware requirements.\n\n* `Out of disk`\n* `Out of memory`\n\n## Confirming the cause of the problem\n\nYou can review the recommended hardware resources for running CodeQL to make sure the runners that you use for code scanning meet those requirements. For more information, see [Recommended hardware resources for running CodeQL](/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/recommended-hardware-resources-for-running-codeql).\n\n## Fixing the problem\n\nIf the runners you're using don't meet the recommended hardware requirements, consider using either larger runners or self-hosted runners.\n\nLarger runners are GitHub-hosted runners with more RAM, CPU, and disk space than standard runners. These runners have the runner application and other tools preinstalled. For more information about larger runners and code scanning, see [Using larger runners](/en/actions/using-github-hosted-runners/about-larger-runners) and [Configuring larger runners for default setup](/en/code-security/code-scanning/managing-your-code-scanning-configuration/configuring-larger-runners-for-default-setup).\n\nSelf-hosted runners offer more control of hardware, operating system, and software tools than GitHub-hosted runners can provide. For more information, see [Self-hosted runners](/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners)."}