* Out of memory warnings with 2 projects open

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
davidm_uk
Megastar
Posts: 740
Joined: 20 Mar 2004 12:33
Family Historian: V7
Location: St Albans, Hertfordshire, UK

Out of memory warnings with 2 projects open

Post by davidm_uk »

In the last couple of weeks I've been using two copies of FH open at the same time, to compare two projects containing some duplicate branches of individuals that I am gradually merging into one tree. Each has an All Relatives diagram open for the part of the tree containing the duplicate people so that I can compare the information.

After an hour or so of use I'm getting an out of memory warning from Windows, telling me to shut down the FH programs (if I don't Windows just freezes and I have to do a hard reset of the PC to get things going again). I'm using W10 Pro, and have 16Gb of memory installed. The only other apps running are Windows Explorer and Avast anti virus. Digging around on the net for Windows 10 Low Memory Problems find this description https://superuser.com/questions/943175/ ... -available and the picture in the first post is almost exactly what I'm seeing, it's the "commit limit" that I'm reaching. I must admit to not understanding all of the detail in that post. Closing both copies of FH, it still takes a few minutes before the "commit charge" drops back to just a few Gb.

Has anyone else seen this problem? Is it FH misbehaving, or Windows or both?
David Miller - researching Miller, Hare, Walker, Bright (mostly Herts, Beds, Dorset and London)
User avatar
johnmorrisoniom
Megastar
Posts: 904
Joined: 18 Dec 2008 07:40
Family Historian: V7
Location: Isle of Man

Re: Out of memory warnings with 2 projects open

Post by johnmorrisoniom »

I have this problem on One computer I run after the W10 creator update. Memory Hole effect comes in at 3:00pm each day. I have to restart.
User avatar
tatewise
Megastar
Posts: 28410
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Out of memory warnings with 2 projects open

Post by tatewise »

Having read that article this is my understanding.

The Commit Charge is not actual memory use, but reserved memory use.
As FH uses its features, it makes sure it can obtain enough memory by increasing its Commit Charge.
It may never need it, but it is reserved just in case.
Maybe when a feature is closed, FH does not reduce its Commit Charge appropriately.

The Commit Charge Limit is the maximum allowed Commit Charge.
It is the sum of your PC RAM and the Pagefile that allows the RAM to be exceeded.
So the way to increase the Commit Charge Limit is to either increase RAM (that costs money) or increase Pagefile size (free).

In Windows 10, right-click Start and choose System (or Control Panel > System)
Then Advanced system settings top left, and on Advanced tab Performance Settings.
In the Performance Options, on Advanced tab in Virtual Memory it tells you the paging file size.
To alter it click Change clear the Automatically manage... tick box, and set the Custom size.

If that postpones the problem, then report the symptoms to Calico Pie.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ronk
Superstar
Posts: 428
Joined: 19 Feb 2016 22:50
Family Historian: V7
Location: MN, USA
Contact:

Re: Out of memory warnings with 2 projects open

Post by ronk »

davidm_uk wrote:In the last couple of weeks I've been using two copies of FH open at the same time, to compare two projects containing some duplicate branches of individuals that I am gradually merging into one tree.
Are you using Windows? I thought it wasn't possible to run multiple instances of FH. It seems I tried that a while back. Maybe it has to be different projects?

Never mind...I must have been thinking of another software, I just was able to do it. Perhaps Legacy Family Tree, since it definitely does not permit it, even if different versions.
Ron Krzmarzick~~ FH 7.0.20 TNG 14.0.2 website Roots & Relatives Remembered, Laragon 5.0, Win 11 pro
User avatar
davidm_uk
Megastar
Posts: 740
Joined: 20 Mar 2004 12:33
Family Historian: V7
Location: St Albans, Hertfordshire, UK

Re: Out of memory warnings with 2 projects open

Post by davidm_uk »

Since I've got an SSD as my C: drive and there's plenty of spare space, I have set my max page file size at 32Gb (double what it was) and will see if that helps. I'll report back on the results.

I've seen some reports saying that this problem is a "feature" of W10 upgrades, which will/may go away with a clean install of W10 (and reinstalling all the applications). One day (or week) when I've nothing better to do I'll try this, maybe!
David Miller - researching Miller, Hare, Walker, Bright (mostly Herts, Beds, Dorset and London)
User avatar
tatewise
Megastar
Posts: 28410
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Out of memory warnings with 2 projects open

Post by tatewise »

Ron, you can run two instances of FH, even on the same Project, but they will often 'interfere' with each other.
In much the same way AS and FH share the same Gedcom and if either detect a change they request a reload.
Also if you change FH customisations they may not 'flow' to the other instance without a Close & Open cycle.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
ronk
Superstar
Posts: 428
Joined: 19 Feb 2016 22:50
Family Historian: V7
Location: MN, USA
Contact:

Re: Out of memory warnings with 2 projects open

Post by ronk »

tatewise wrote:Ron, you can run two instances of FH, even on the same Project.
Understood, I would only do it for viewing only on one of the instances anyway..thanks for confirming.
Ron Krzmarzick~~ FH 7.0.20 TNG 14.0.2 website Roots & Relatives Remembered, Laragon 5.0, Win 11 pro
User avatar
tatewise
Megastar
Posts: 28410
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Out of memory warnings with 2 projects open

Post by tatewise »

David, you promised to report back on your experiments.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
davidm_uk
Megastar
Posts: 740
Joined: 20 Mar 2004 12:33
Family Historian: V7
Location: St Albans, Hertfordshire, UK

Re: Out of memory warnings with 2 projects open

Post by davidm_uk »

Indeed I did Mike, thanks for the reminder.

Increasing the max page file size to 32Gb did allow me to use two instances of FH (with diagrams open in both) for a much longer time, but still a couple of times after extended sessions (4 hours or so) the out of memory warning appeared again. I used Sysinternals Process Explorer, with the System Information window open on the Memory tab, and I could see the System Commit graph slowly building up towards the maximum. In the end I just used a pragmatic solution and saved any changes I'd made then closed both instances of FH, let the "system" settle down for half an hour while I went for a cup of tea, then started again from where I'd left off. I could watch that graph gradually reducing to more normal levels, but it didn't happen instantly when I closed FH(s). It does seem to be related to having diagrams open, without them the problem didn't occur (or maybe it just took a lot longer than I monitored things for).

I've now finished the amalgamation of my two trees into one, so am unlikely to be stressing things in this way again for some time.
David Miller - researching Miller, Hare, Walker, Bright (mostly Herts, Beds, Dorset and London)
User avatar
tatewise
Megastar
Posts: 28410
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Out of memory warnings with 2 projects open

Post by tatewise »

Great! That seems to confirm that increasing Page File size significantly postpones the Out of Memory error due to the Commit Charge and I have added that workaround to how_to:family_historian_installation_problems#errorout_of_memory|> Error: Out of Memory.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
User avatar
Jane
Site Admin
Posts: 8514
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Re: Out of memory warnings with 2 projects open

Post by Jane »

The limited memory explains the problem. Personally I let the page file get bigger than there here needed double my actual memory, but my normal PC has memory 32GB so I don't need it often, Windows 10 is a bit of a memory hog, so you might consider adding another stick of memory to the machine, alternately turn off the media caching on FH when you want to run multiple copies with lots of media. Turning off the pictures when working with diagrams will also help.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
User avatar
davidm_uk
Megastar
Posts: 740
Joined: 20 Mar 2004 12:33
Family Historian: V7
Location: St Albans, Hertfordshire, UK

Re: Out of memory warnings with 2 projects open

Post by davidm_uk »

I already have 16Gb of memory installed, way more than the recommended amount. When I bought the PC the supplier queried why I want so much!
David Miller - researching Miller, Hare, Walker, Bright (mostly Herts, Beds, Dorset and London)
User avatar
tatewise
Megastar
Posts: 28410
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Out of memory warnings with 2 projects open

Post by tatewise »

Jane, do you mean adjusting the Thumb Nail Cache as described in 'Out of Memory' when adding photo's. (15099)?

The physical RAM is not really the issue, because the Commit Charge is only reserved for potential use and rarely ever actually needed, but its upper Commit Charge Limit is the sum of the PC RAM and the Pagefile size as explained earlier near the start of this thread. So simply increasing the Pagefile size postpones the problem as confirmed by David. Allowing the Pagefile to increase automatically often does not help, especially if you have lots of RAM, because the actual memory usage is typically much lower than the Commit Charge reservation. Also FH does not appear to reduce the Commit Charge when it should.

I am sure Calico Pie could give a better explanation, since they appear to understand the problem, and it would be helpful if they could confirm whether the above workaround is the best solution at present.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Post Reply