Ashton Vaz <[EMAIL PROTECTED]> writes: > -- snip -- > That's just the problem. I have 512MB of RAM and with various > applications running concurrently [Palm Desktop, Thunderbird, Mozilla, > jEdit, Apache HTTP, Sun J2EE RI, MySQL, I2P, Tor, Gaim, GoogleTalk, > Prime95, WorldCommunityGrid, BOINC, electricsheep, etc.] there's no more > left to hand over to Freenet. All the applications were well-behaved > until Freenet got installed - now my machine is a *turtle*. The use of > 1.5 however is a huge improvement.
Uh, do you really need stuff like Prime95 running? Most people only use that as a system stress test ... unfortunately 0.5x does use considerable resources. You can tune it somewhat though. Things to try : - Set outputBandwidthLimit and inputBandwidthLimit (freenet.ini) if you haven't already, if you have you might need to reduce them. - Reduce maximumThreads, this should have significant impact. - JRE flags, particularly -server as you note and -XX:+AggressiveHeap. Yes I know, afaik the launcher can't pass them to the freenet java instance yet :/ However there is a crappy workaround I forgot about before, you can launch from a batch instead of freenet.exe and thereby pass arbitrary JRE arguments. this means you don't get the systray bunny but other than that it should work. Something like this : http://wikiserver.freenethelp.org:14741/MaxDirectMemorySize Alternatively the Java service wrapper can probably do this (end of post.) More esoteric things like -XX:-UseTLAB, -XX:+UseBoundThreads and -XX:+UseThreadPriorities may also help. -XX:MaxDirectMemorySize is set by default on *nix, I can't remember if the windows launcher does so but apparently the benefits can be significant so try setting it (to less than -Xmx.) Finally setting -Xms and -Xmx is advisable. Some like to set them to the same value to reduce reallocation overhead but this isn't really appropriate for a desktop situation like yours. -- snip -- > starts up the 1.5 version of the apps. Could my Windows registry be > corrupted? What keys' existence should I check for? > > The paths are as follows > Java 1.5 JDK: C:\java\se\sdk\1.5.0_05\ > Java 1.5 JRE: C:\Program Files\Java\jre1.5.0_05\ > Java 1.4 JDK: C:\java\se\sdk\1.4.2_09\ > Java 1.4 JRE: C:\Program Files\Java\j2re1.4.2_09\ The install script basically looks for 1.4 and 1.5 JRE and JDK keys in the registry. This code is a tad inelegant since NSI only allows for IF/THEN/GOTO logic. Presumably it doesn't correctly handle the uncommon case of having both JREs and JDKs for 1.4 and 1.5. > >Hopefully the wininstaller can be dropped for the proposed amazing java thing maintained in core by the > time 1.6 is mainstream ;) > > > I'm curious, what amazing java thing? The wininstaller and associated programs have suffered from neglect because most of the serious freenet developers run Linux and don't do windows coding. A while ago things got bad enough (e.g. sourceforge change made installer apparently hang for ages) that they even accepted a bunch of patches from me :) For 0.7 it's proposed to make an installer in Java and move config stuff that helper programs like NodeConfig currently have to do into fproxy. The effect of this should be that they're maintained by Real Programmers(tm), changing common config options for the user is not unlike about:config in firefox, and the windows exe installer can become a simple wrapper to launch the installer jar / install Java if neccessary. -- snip -- > A related question: Since the windows launcher can't pass options to > the JVM, does anyone know if there is a service wrapper (for Windows XP) > available for Java applications? I can then configure the service > wrapper with the necessary JVM options & have freenet run 24/7 as a > Windows service on all workstations under my control? This should be possible, there's a specialised Java service wrapper which seems to be recommended : http://wrapper.tanukisoftware.org/doc/english/introduction.html http://bdn.borland.com/article/0,1410,32068,00.html Bob _______________________________________________ Support mailing list Support@freenetproject.org http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]