Re: [tw5] Help reducing RAM usage when serving multiple tiddlywikis

2019-12-20 Thread 'Mark S.' via TiddlyWiki
I've noticed that when opening up a TW file in a browser, it takes a lot more memory (10x) than the original TW file. I suspect that there is a lot of stuff that has to be "unpacked" into memory. By extension, the same thing probably happens inside of a node running tw. On Friday, December 20,

Re: [tw5] Help reducing RAM usage when serving multiple tiddlywikis

2019-12-20 Thread Enrico Guiraud
Hi Jeremy, tiddlywiki uses 110MB of RAM to serve an *empty *tiddlywiki. The total size of all wikis that I need to serve is currently less than 15MB. I'm perfectly ok with all tiddlers being loaded in memory. What I find weird is that every server I spin up has an overhead of 110+ MB, and I'm

Re: [tw5] Help reducing RAM usage when serving multiple tiddlywikis

2019-12-20 Thread Jeremy Ruston
Hi Enrico TiddlyWiki under Node.js loads the entire wiki into RAM. It does so in order to support server-side processing (such as serverside page rendering). But, of course, it is relatively resource intensive, and unnecessary if all the server is doing is acting as a front end to a database

[tw5] Help reducing RAM usage when serving multiple tiddlywikis

2019-12-20 Thread Enrico Guiraud
Hi all, big fan of tiddlywiki (I routinely use 3, hosted on a VPS) and recently I started advertising it to my friends. To get more people into tiddlywiki, I just set them up for them on my VPS. The problem: I'm now serving an average of 5-6 tiddlywikis, and my little VPS is almost out of RAM: