Increase Virtual Memory (Page File): Press Win+R, type sysdm.cpl, press Enter
👇 See all 3 solutions below
What is Error 13859?
Windows System Error Code 13859, known as ERROR_IPSEC_IKE_OUT_OF_MEMORY, is a Internet & WinHTTP error that occurs during WinHTTP, WinInet, and internet protocols. The error indicates that: Memory allocation failed. When this error is encountered, the Windows operating system was unable to complete the requested operation within the internet services subsystem. The error code 13859 is returned by the GetLastError() function and provides developers with a specific identifier to diagnose the root cause of the failure. The symbolic name ERROR_IPSEC_IKE_OUT_OF_MEMORY maps directly to this numeric code and is commonly referenced in Microsoft documentation, developer forums, and system logs. Understanding this error and its context within WinHTTP, WinInet, and internet protocols is essential for effective troubleshooting.
Common Causes
- A running application has a memory leak consuming all available RAM
- The system page file (virtual memory) is too small or disabled
- Too many applications are running simultaneously
- A driver is consuming excessive kernel memory (nonpaged pool)
Mastering the Windows Command Line: WMIC, Netsh, and Diskpart
An expert's guide to using native Windows command-line utilities for deep diagnostic reporting, network tracing, and disk volume management.
Read the full guide →Step-by-Step Solutions
- Press Win+R, type sysdm.cpl, press Enter
- Go to Advanced tab → Performance Settings → Advanced → Virtual Memory → Change
- Uncheck 'Automatically manage paging file size'
- Select your system drive, choose 'Custom size'
- Set Initial size to 1.5x your RAM, Maximum to 3x your RAM (e.g., 12288 / 24576 for 8GB RAM)
- Click Set → OK → Restart your computer
Video Tutorials
Diagnostic Command
Run this PowerShell command to find related events in your system log:
Get-EventLog -LogName System -Newest 20 | Where-Object {$_.Message -like "*13859*" -or $_.Message -like "*ERROR_IPSEC_IKE_OUT_OF_MEMORY*"} | Format-List
💡 Open PowerShell as Administrator, paste the command above, and press Enter.
Prevention Tips
- Monitor memory usage with Task Manager and set alerts for >85% usage
- Keep your page file on an SSD for faster virtual memory performance
- Close unused browser tabs and applications before running heavy software