Node TiddlyWiki (which handles data folders) is responsible for the large
memory consumption. As best as I can tell it's actually not something
TiddlyServer can do anything about. Single file wikis on TiddlyServer
should have similar memory consumption to the other products you mentioned
that serve single file wikis.

On Sun, Apr 19, 2020 at 1:09 PM Mohammad <[email protected]> wrote:

> Arlen,
> I did some tests! I see around 40-55MB when node is idle and around
> 86-92MB when it is active (e.g TW is opened in browser and one edits it)
>
> [image: pic-33.png]
> So, node seems hungry and eats memory!
>
> Amazingly TWexe assume 4MB per wiki and Apache when is used 33MB (16 + 18)
> but none have the feature you have on node.js
> The Twexe and Apache serve single .html
>
> Just for information
>
> --Mohammad
>
>
>
> On Sunday, April 19, 2020 at 6:24:21 PM UTC+4:30, Arlen Beiler wrote:
>>
>> Ok, I ran top to see what the memory actually is. My computer is a 16 GB
>> machine. TiddlyWiki on Node uses 150 MB. TiddlyServer used 100 MB per wiki
>> (approximately), but less than 30 MB when no wikis were loaded (sorry, top
>> only listed the first page of results). Now, given Node's memory
>> management, I would guess that a more constrained environment would use
>> less, so I'm curious what results other people get.
>>
>> In my mind, this is huge, so I'm not surprised people need a way around
>> it, but I'm not sure what the culprit is. I'll do some digging. All I know
>> is it's it's big on Node TiddlyWiki and on TiddlyServer both, so it's
>> probably somewhere in TiddlyWiki.
>>
>> On Sun, Apr 19, 2020 at 8:47 AM Arlen Beiler <[email protected]> wrote:
>>
>>> People have in the past had problems with memory consumption when using
>>> data folders and because TiddlyServer is intended to load data folders as
>>> faithfully as possible, Jed created Bob, which does things a little
>>> different but still works with almost all data folders. However the latest
>>> raspberry pi should have enough memory to be able to handle TiddlyServer
>>> quite easily. I’m assuming one would get the 4 GB version if you’re going
>>> to use it for a server anyway. So I’m guessing this isn’t as big of a
>>> problem as it used to be.
>>>
>>> Single file wikis on the other hand shouldn’t take much memory. The
>>> TiddlyServer  documentation says how to enable back ups for single file
>>> wikis. And the WebDAV saver works as expected, unlike Apache.
>>>
>>> On Sun, Apr 19, 2020 at 04:16 Mohammad <[email protected]> wrote:
>>>
>>>> Further to the instruction by Arlen one can download simplesrv
>>>>
>>>> https://github.com/lucsan/simpserv
>>>>
>>>>
>>>> and create a readonly webserver to fire any single .html Tiddlywiki.
>>>>
>>>> So, it possible to have a portable webserver for Tiddlywiki (and
>>>> holding plugin libraries) on a thumb drive
>>>> The size of server 14MB if one use Node.JS 6.x
>>>>
>>>> In summary
>>>>
>>>> 1. Follow the instruction by Arlen above, lets you have a tiny
>>>> NodeJS+Tiddlywiki server (read/write/save) + (Arlen may guide us to create
>>>> backup)
>>>> 2. Add the simpleserv above to have a readonly webserver on another port
>>>> 3. Put all in folder on a thumb drive
>>>>
>>>> The above setup is small and can be used on Raspberry Pi and similar
>>>> device.
>>>>
>>>> I am thinking  one can put whole of these on an old Android cell phone
>>>> and setup a portable NodeJS+Tiddlywiki server
>>>>
>>>>
>>>>
>>>> On Saturday, April 18, 2020 at 1:23:32 AM UTC+4:30, Arlen Beiler wrote:
>>>>>
>>>>> Another way is to download the zip file from NodeJS.org, and copy the
>>>>> node.exe file into the tiddlywiki folder, then (on windows) run "node.exe
>>>>> tiddlywiki.js". You can download the tiddlywiki folder from GitHub. It
>>>>> sounds like that is slightly more complicated than your method, but just
>>>>> thought I'd mention it.
>>>>>
>>>>> On Fri, Apr 17, 2020 at 4:01 PM 'Mark S.' via TiddlyWiki <
>>>>> [email protected]> wrote:
>>>>>
>>>> If you use "-g", isn't it putting the data down in your user drive? Or
>>>>>> is it smart enough to put it all on the thumb drive ?
>>>>>>
>>>>>> Plus, in the past, node had a habit of creating empty directories in
>>>>>> the app/roaming directories even if you had specified specific local
>>>>>> directories. This would be hard to detect unless you test on a machine 
>>>>>> that
>>>>>> has never used node.js at all. That is, is it possible that bread crumbs
>>>>>> are being left even if you use a portable device?
>>>>>>
>>>>>>
>>>>>> On Friday, April 17, 2020 at 12:41:12 PM UTC-7, Mohammad wrote:
>>>>>>>
>>>>>>> You may like to have a Tiddlywiki on Node.js with all its features
>>>>>>> on a thumb drive!
>>>>>>> Or a Plug and Play Tiddlywiki.
>>>>>>>
>>>>>>> If so, this is a short instruction for Windows user.
>>>>>>>
>>>>>>> 1. Download the portable Node.js:  (NodeJSPortable_6.14.2.zip)  from
>>>>>>> here
>>>>>>>   https://github.com/garethflowers/nodejs-portable/releases
>>>>>>>
>>>>>>> 2. Unzip on your thumb drive in the folder of choice
>>>>>>>
>>>>>>> 3. Run NodeJSPortable.exe
>>>>>>>
>>>>>>> 4. In the command window appears install Tiddlywiki with below
>>>>>>> command (you need internet access)
>>>>>>>     npm install -g tiddlywiki
>>>>>>>
>>>>>>> 5. That's all
>>>>>>>
>>>>>>>
>>>>>>> Make a test
>>>>>>> 1. Create a new wiki, by entering  below command
>>>>>>>     tiddlywiki mynewwiki --init server
>>>>>>>
>>>>>>> 2. Run your wiki by entering  below command
>>>>>>>     tiddlywiki mynewwiki --listen
>>>>>>>
>>>>>>> 3. Open a browser (FF, Chrome, Edge, Safari, ...) and
>>>>>>>      visit http://127.0.0.1:8080/ in your browser
>>>>>>>
>>>>>>>
>>>>>>> It has all the same features as Tiddlywiki on NodeJS, plus, it
>>>>>>> leaves no personal information behind on the machine you run it on, so 
>>>>>>> you
>>>>>>> can take it with you wherever you go.
>>>>>>>
>>>>>>>
>>>>>>> This is another journey in Tiddlywiki wonderland.
>>>>>>>
>>>>>>> --Mohammad
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "TiddlyWiki" group.
>>>>>>
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>>> an email to [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/tiddlywiki/9bc1ec76-a308-472c-b99c-f66e5dd31519%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/9bc1ec76-a308-472c-b99c-f66e5dd31519%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "TiddlyWiki" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tiddlywiki/0e7967b9-7f71-4c0b-93cb-f6bd2a8e76ce%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/tiddlywiki/0e7967b9-7f71-4c0b-93cb-f6bd2a8e76ce%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4370f38d-0525-4c49-839b-3cad6df6bb19%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/4370f38d-0525-4c49-839b-3cad6df6bb19%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJ1vdSTzpkfaLVsxNB%3DMYrSd2dmE-RdxtL-c99yktfVNNMe-cg%40mail.gmail.com.

Reply via email to