simbridge icon indicating copy to clipboard operation
simbridge copied to clipboard

Very high RAM Usage!

Open southstar21angel opened this issue 2 years ago • 20 comments

SimBridge is using almost 7gb of ram on my 32gb PC. Is this normal? simbridge issue

Latest development FBW A32NX, Latest SimBridge version.

southstar21angel avatar May 20 '23 17:05 southstar21angel

Got 32GB DDR5 RAM and Simbridge is using more than 15GB

image

Seriox avatar May 26 '23 19:05 Seriox

Same here - seems to be a memory leak. RAM use increased from 100mb to 9GB after 2hrs before I killed it. Hopefully gets fixed soon as it's RAM use caused my sim to OOM.

CoffeePanda0 avatar Jul 02 '23 15:07 CoffeePanda0

Also seeing this issue. After about an hour in flight, RAM usage is up to around 1500MB. While this is less than the other high values above, by this point my 99% frames has dropped into the 10s. Quite a jarring drop in performance for a 7800X3D with 32GB RAM and a 4080.

laszlo462 avatar Aug 29 '23 15:08 laszlo462

The Terrain Display has been greatly refactored in the latest release. Can you please test and let me know?

Lucky38i avatar Sep 05 '23 10:09 Lucky38i

Hi @Lucky38i

I have experienced the same and I live with that few months :D

My motherboard limit is 64GB and I have 24GB installed. Also I have added Pagesize 40GB. When using Terrain it will fill RAM and Pagesize and if it go over 64GB, sim would crash. I have to monitor RAM + Pagesize usage and if I see that it goes in total to 61, 62GB then I turn off Terrain in sim and it will go down.

I will test and let you know.

deiks avatar Sep 05 '23 11:09 deiks

Test, still goes up.

image

It was 57GB, when turned of terrain, after few mins, went to 40GB.

deiks avatar Sep 05 '23 18:09 deiks

Test, still goes up.

image

It was 57GB, when turned of terrain, after few mins, went to 40GB.

Committed RAM is not the same as actual RAM usage. What is the actual RAM usage

Lucky38i avatar Sep 14 '23 10:09 Lucky38i

Just received CTD since didn't monitor memory. It increases "In use" memory and also commited. So def., issue is Terrain radar. Overall RAM usage was nearly full. When I got CTD, it wen't to 5-6 GB in idle.

From events:

Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: FlightSimulator.exe (6728) consumed 45770653696 bytes, fbw-simbridge.exe (4156) consumed 3046891520 bytes, and Navigraph Charts.exe (4816) consumed 1790185472 bytes.

Application popup: Windows - Out of Virtual Memory : Your system is low on virtual memory. To ensure that Windows runs properly, increase the size of your virtual memory paging file. For more information, see Help.

Update:

Tested it again on the same route (and seems that it has something with it, because some routes are perfectly fine, while on others it will increase). If you are curious to try: LOWI BRENO2J BRENO M726 NAXAV M984 EVANO N850 TALEP UN850 ABRON UT250 RIXOT RIXOT1P LEPA (critical moment happen between NIVDA and BALEN waypoints)

sb-start sb-stop

These two images represent the state before Terrain turned on, and on highest peak before I turned off.

Simbridge process is pretty much the same, goes from 1.5-6GB before start, up to 2GB before stop Terrain on ND. But SIM has high increase from maybe 4-5GB to 8.5GB which might lead to actual issue with SIM itself, but caused by Terrain thing.

deiks avatar Sep 22 '23 19:09 deiks

Still active issue. Related to some specific areas.

Flew route OEJN MIGDA2V MIGDA L677 CVO DCT HECA

deiks avatar Dec 25 '23 19:12 deiks

Still active this issue. Flight over Spain, FBW-Simbridge start with 2 GB RAM ussage and after 30 minutes flight now at 15 GB and ascending with every minute +1 GB more.

BJ1960 avatar Dec 26 '23 12:12 BJ1960

I downloaded the latest version and started local server. Received CTD with this error. Don't know if anything is helpful.

Error: vips_tracked: out of memory --- size == 1MB
vips2png: unable to write to target target

Before this, it was regular

[FBW-SimBridge] info 12/27/2023, 9:19:13 PM [McduGateway] Client connected +0ms

deiks avatar Dec 27 '23 22:12 deiks

Had this today with 17G usage on the current version.

CYYZ/05 N0441F380 BETES2 FOXEE DCT HVQ J85 SPA/N0438F390 DCT QUIWE/N0438F380 Q93 FISHO/N0441F390 Q93 GURGE/N0440F380 Q93 GIPPL Q85 LPERD SNFLD1 KMCO/17L

fbw-simbridge-2024-01-.zip

added logs, but nothing obvious on the logs.

using terrain on ND

vajonam avatar Jan 25 '24 16:01 vajonam

I wrote a powershell script to relaunch it after 18G of ram, and there is less than 5G for RAM free, this seems to be working well for me. I have 32G system.

$procName = "fbw-simbridge"
$RAMLimit = 18GB
$FREELimit = 5GB


while ($true) {
    $proc = Get-Process $procName -ea 0
    if ($proc -ne $null) {
         if ($proc.WorkingSet64 -gt $RAMLimit) {
        $free = get-ciminstance Win32_OperatingSystem | % FreePhysicalMemory
            if ($free*1024 -lt $FREELimit) {
           Write-Host "killing fbw-simbridge larger than $RAMLimit and free mem less than $free*1024"
               Stop-Process $proc -Force
               Start-Process E:\FlightSim2020\Community\flybywire-externaltools-simbridge\fbw-simbridge.exe  -ArgumentList "-hide"
            }
    }
    }
    Start-Sleep -s 30
}

vajonam avatar Jan 27 '24 00:01 vajonam

I have been having problems with CTDs (on the A32nx, I have not flown anything else) and when looking at the Event Viewer I found this

Image

Apperently i am running out of memory and Simbridge is using 18930782208 bytes aka ~18GB. That seems excessive

zaregg avatar Apr 26 '25 00:04 zaregg

Using VMMap I got this:

Image

It uses about 22GB of virtual memory. When stopping simbridge using the installer the process fbw-simbridge does not get killed, I had to kill it using the taskmanager. This freed the virtual memory.

zaregg avatar Apr 26 '25 12:04 zaregg

@zaregg works fine for me since the update a few months ago. It was something "rerendering map and feeding memory". So hope you have your simbridge up to date.

deiks avatar Apr 26 '25 20:04 deiks

@deiks Yea i have the latest update of simbridge and recently deleted my whole sim because of the constant CTDs. Which I know found out are being caused by too little free virtual memory, and that simbridge uses like 20gb of virtual memory

zaregg avatar Apr 26 '25 22:04 zaregg

I find its related to enabling Terrain on ND, if you turn that off it lasts a while, but still have a script the kills it and relaunches it when grows to big. attached above.

vajonam avatar Apr 27 '25 00:04 vajonam

Yes, if you see your memory goes to high, just turn off Terrain and wait it to calm down. So you don't have to kill process.

Btw. Did you try with clean install of simbridge?

deiks avatar Apr 27 '25 01:04 deiks

Yes, if you see your memory goes to high, just turn off Terrain and wait it to calm down. So you don't have to kill process.

Btw. Did you try with clean install of simbridge?

Yea I clean installed my whole sim and the flybywire installer

zaregg avatar Apr 29 '25 11:04 zaregg