Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very high RAM Usage! #84

Open
Ziya-Sharifli opened this issue May 20, 2023 · 13 comments
Open

Very high RAM Usage! #84

Ziya-Sharifli opened this issue May 20, 2023 · 13 comments

Comments

@Ziya-Sharifli
Copy link

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

Latest development FBW A32NX, Latest SimBridge version.

@Seriox
Copy link

Seriox commented May 26, 2023

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

image

@CoffeePanda0
Copy link

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.

@laszlo462
Copy link

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.

@Lucky38i
Copy link
Member

Lucky38i commented Sep 5, 2023

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

@deiks
Copy link

deiks commented Sep 5, 2023

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
Copy link

deiks commented Sep 5, 2023

Test, still goes up.

image

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

@Lucky38i
Copy link
Member

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

@deiks
Copy link

deiks commented Sep 22, 2023

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
Copy link

deiks commented Dec 25, 2023

Still active issue. Related to some specific areas.

Flew route OEJN MIGDA2V MIGDA L677 CVO DCT HECA

@BJ1960
Copy link

BJ1960 commented Dec 26, 2023

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.

@deiks
Copy link

deiks commented Dec 27, 2023

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

@vajonam
Copy link

vajonam commented Jan 25, 2024

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
Copy link

vajonam commented Jan 27, 2024

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
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants