From a4214ee52488da332189cc5066c7838aac3e70bc Mon Sep 17 00:00:00 2001 From: Niraj Tolia Date: Mon, 16 Oct 2023 15:41:29 -0700 Subject: [PATCH] Include docs on adding GC debug logs (#4516) Taken from Discord discussion --- #### Does this PR need a docs update or release note? - [x] :no_entry: No #### Type of change - [x] :world_map: Documentation --- website/docs/support/bugs-and-features.md | 43 +++++++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/website/docs/support/bugs-and-features.md b/website/docs/support/bugs-and-features.md index ac637655a..3480f1c54 100644 --- a/website/docs/support/bugs-and-features.md +++ b/website/docs/support/bugs-and-features.md @@ -1,8 +1,45 @@ # Bugs and new features +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + You can learn more about the Corso roadmap and how to interpret it [here](https://github.com/alcionai/corso-roadmap). If you run into a bug or have feature requests, please file a [GitHub issue](https://github.com/alcionai/corso/issues/) -and attach the `bug` or `enhancement` label to the issue. When filing bugs, please run Corso with `--log-level debug` -and add the logs to the bug report. You can find more information about where logs are stored in the -[log files](../../setup/configuration/#log-files) section in setup docs. +and attach the `bug` or `enhancement` label to the issue. When filing bugs, please run Corso with +`--log-level debug --hide-progress --mask-sensitive-data` and add the logs to the bug report. You can find more +information about where logs are stored in the [log files](../../setup/configuration/#log-files) section in setup docs. + +## Memory Issues + +Corso's memory usage depends on the size of the resource being backed up. The maximum memory usage occurs during full +backups (usually the first backup) vs. later incremental backups. If you believe Corso is using unexpected amounts of +memory, please run Corso with the following options: + +- Prefix the Corso run with `GODEBUG=gctrace=1` to get GC (Garbage Collection) logs +- Add `--log-level debug --hide-progress --mask-sensitive-data` +- Redirect output to a new log file (for example, `corso-gc.log`) + + + + + ```powershell + # Connect to the Corso Repository + .\corso -hide-progress --log-level debug --mask-sensitive-data > corso-gc.log 2>&1 + ``` + + + + + ```bash + # Connect to the Corso Repository + ./corso -hide-progress --log-level debug --mask-sensitive-data > corso-gc.log 2>&1 + ``` + + + + +Next, file a [GitHub issue](https://github.com/alcionai/corso/issues/) with the two log files +([default log file](../../setup/configuration/#log-files) and `corso-gc.log`, the Corso GC log file, from above) and +information on the size of the Exchange mailbox, OneDrive location, or SharePoint site that you are having an issue +with.