Well, we need to start doing some research into this - so let me get the
ball rolling with some simple observations:
So I have noticed that Freenet's memory usage gets to about 97MB within
about 4 seconds of starting up in IBM JDK 1.3 running on Linux with
default parameters - this is clearly rediculous. This suggests that it
isn't a question of threads being left behind after requests, since no
requests have taken place at this stage, but that it is something
happening during initialisation.
Not running FProxy reduces it to 86MB on startup, suggesting that FProxy
is not the culprit, although it does contribute to the problem.
Deactivating thread management (by setting maximumConnectionThreads to
0) has no significant effect upon the memory usage.
Wow! I just temporarily removed my datastore (rm -rf .freenet/*) - and
now memory usage is at 140MB within seconds of startup, but when I stop
and restart the node, it is back to around 80MB.
Hmmm, so if we compare the memory requirements for a few different sizes
of datastore (in terms of total items stored, not diskcache) I don't
notice any particular correlation (although the memory requirements vary
between 80 and 90 MB).
Ian "Sherlock" Clarke signing off...
Ian.
PGP signature