I’ve been having an issue with my main single file Wiki. Over the last month I’ve begun to get intermittent but frequent Out of Memory errors usually when importing tiddlers or attempting to save. I was hoping to get some troubleshooting advice.
Details
The wiki is on V5.3.8. It’s a single file encrypted wiki with a file size of 74,249KB. I don’t embed images in the wiki with the exception of the favicon which is a 17kb png file when downloaded. Images are stored in subfolders of the wiki’s location.
Plugins:
$:/core - 5.3.8
$:/plugins/bj/Calendar - 1.11.0
$:/plugins/inmysocks/WordCount - 5.1.10-prerelease
$:/temp/info-plugin -
$:/themes/tiddlywiki/snowwhite - 5.3.8
$:/themes/tiddlywiki/vanilla - 5.3.8
Number of tiddlers: 30701
Number of tags: 597
Number of system tiddlers: 75
Number of shadow tiddlers: 2348
Number of overridden shadow tiddlers: 28
Number of Missing Tiddlers listed in the More > Missing list: 9705.
I should also mention my TiddlyWiki has undergone a large expansion in the amount of tiddlers I have this year as I expand the scope of the file. My January 1st backup file is 59,080KB in size with 20,662 tiddlers.
I have a size check tiddler I’ve used for this description and these are the sizes of the top ten largest tiddlers.
$:/core 2115455
tiddler-name-removed 124742
tiddler-name-removed 109019
tiddler-name-removed 107269
tiddler-name-removed 99101
tiddler-name-removed 95912
$:/boot/boot.js 89769
$:/themes/tiddlywiki/vanilla 88543
tiddler-name-removed 84707
tiddler-name-removed 2021 80916
The problem has been seen in up to date browsers for Chrome and FireFox on two separate machines, both HP machines on Windows 10 Pro (on both machines the wiki is loaded from a network location – different location, different network).
Desktop PC, Intel Core i5-9500 3GHz, 8GB DDR4, Intel UHD
Desktop PC, Intel Core i5-8500T 2.1GHz, 8GB DDR4, Intel UHD
Chrome usually reports memory usage at 754MB. I’ve seen it as low as 600 and as high as 2.1GB.
I have a non-encrypted version of the wiki with sensitive tiddlers removed (56,296KB , 29,238 tiddlers) where I’ve yet to experience this issue.
I’m not sure what more I can provide in terms of the problem.
Things I have already tried with little or no effect.
Exporting all tiddlers into a fresh (empty) Tiddlywiki.
Changing browsers.
Changing machines (thinking there might be a hardware issue on my main machine).
Removing encryption.
Making sure no tiddlers are open when saving.
Things I’ve considered but not yet explored
Is my Wiki too big for a single file wiki? Do I need to look into other options (such as Tiddlywiki on Node.js)
Should I split my wiki up into separate single wiki’s?
Do I need a bigger boat? (a higher preforming computer, more RAM)
Is my wiki corrupted in some way? Is there something I should be looking out for to find out?
Current workarounds/ actions that have an effect.
I have more success in saving when the sidebar is on the Contents tab (I used to usually have it on More > Missing Tiddlers)
I now use a near empty TiddlyWiki file to draft tiddlers. If I need to modify existing tiddlers I move it into the draft wiki, make and save changes – import back and then attempt to save (if impot succeeds). It’s probably not worth mention that the near empty TiddlyWiki file is way faster than my main wiki.
I wait a few minutes between importing tiddlers to saving them.
So any ideas what else can I do to mitigate/ resolve the issue? Do I need to move away from a single wiki TiddlyWiki/ need more RAM? Something else I haven’t considered?