Thanks for the answers Bob!

>Try increasing the maximum heap via the JavaMem line in Flaunch.ini to e.g.
>"JavaMem=256" for 256 MB maximum, this should help somewhat. (Java's default gc
>likes to wait till it has almost no heap left before it bothers to collect, at
>which point it can thrash and do so very slowly.)
>  
>
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.

Before anyone asks - no Freenet isn't the last straw.  I've tested that 
possibility by stopping some of the other servers & applications but it 
doesn't make a difference.  I've isolated the pigginess to Freenet!

>Not only should it, it's supposed to :(
>Can you please post exactly what versions of 1.4 / 1.5 you have installed?
>  
>
Hence my surprise. :)

I have Java 1.5 Update 5 (1.5.0_05-b05) & Java 1.4.2_09 (1.4.2_09-b05).  
I have both the JDK/SDKs & the JREs for each version.  I've setup my 
environment such that a "java", "javaw" or "javaws" at the command line 
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\

>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?

>>>    2)  Is it possible to pass options to the JVM (e.g. AggressiveHeap, 
>>> DisableExplicitGC, server, etc.) via the system tray icon?  If so, how? By 
>>> default the 1.5 & 1.4 JREs don't use the -server option or other beneficial 
>>> options.  Hence Fred doesn't benefit from the aggressive server profiling 
>>> of the JVM.  A long running application like Fred would definitely benefit 
>>> from the -server option at least.
>>>      
>>>
>
>Good point, Fred does benefit from -server in my experience but at the cost of 
>more memory. At the moment I don't believe it's possible to directly pass 
>arguments to the windows launcher, a workaround would be to put the flags in 
>the default java control panel options but obviously they'd then apply to any 
>application using that JRE.
>  
>
I considered the control panel, but I can't have that.  I do Java 
development and don't want to change the JVM defaults on a system-wide 
basis as users (of applications I work on) might end up with poor 
performance if I allow the JVM to "hide" my bad programming practices 
during development.


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?

Thanks,

Ashton

Reply via email to