Getting "Out of Memory" While Recording or Editing? How to Check and Set Virtual Memory (Page File)

On a PC with around 8 GB of RAM, long recordings or video editing can trigger "Your computer is low on memory" warnings or make programs close suddenly. The first thing to check is Windows virtual memory (the page file), which borrows part of the disk to act like RAM when RAM runs short.
1. Check the current setting
- Type View advanced system settings in the Start menu search and open it.
- On the "Advanced" tab, click Settings under Performance, go to the "Advanced" tab again, and click Change under Virtual memory.
- If "Automatically manage paging file size for all drives" at the top is checked, you are on the default setting.
2. "Automatically manage" is usually the answer
- If the page file is turned off ("No paging file") or set very small, simply turning automatic management back on often fixes the problem.
- PCs where it was turned off following old "optimization" tips are the ones that see memory errors most often.
- Restart the PC after changing it so the setting takes effect.
3. Low on space in C:? Move it to another drive
- Turn off automatic management, leave C: on "System managed size" or a small value, and set "System managed size" on another SSD with plenty of free space.
- Avoid putting it on a slow hard disk (HDD) or a USB drive.
- If you remove the page file from C: completely, Windows may not be able to save error reports (dumps), so leave a little there.
4. If you set the size yourself
- With "Custom size", enter the initial and maximum size in MB. An initial size about equal to your RAM and a maximum of about twice that is a safe choice (for example 8 GB RAM → 8192 / 16384).
- Setting the maximum too low makes memory errors happen more often, not less.
- After entering the values, you must click Set and then OK for them to be saved.
If memory is still short
- Close programs you are not using while recording, such as browser tabs and messengers.
- Lowering the recording resolution or frame rate one step in oCam reduces memory use.
- Virtual memory is much slower than real RAM, so if you run short often, adding RAM is the surest fix.