Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75090 - PATCH: Add server JVM support to Azureus startup script
Summary: PATCH: Add server JVM support to Azureus startup script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Jochen Maes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 12:30 UTC by B. Keroack
Modified: 2005-11-27 01:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds server JVM support to /usr/bin/azureus (az.patch,1.79 KB, patch)
2004-12-20 12:32 UTC, B. Keroack
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description B. Keroack 2004-12-20 12:30:29 UTC
Using the server JVM included with the Sun JRE/JDK (and possibly others) results in significantly better interactive performance with the tradeoff of slower startup and slightly increased RAM usage. It's particularly noticable when Azureus draws lots of GUI widgets (such as when displaying the My Torrents tab), performance comes much closer to a native application than when using the default client VM.

The only way to enable this with the current ebuild is to manually edit the /usr/bin/azureus script, adding "-server" to the java command line. This patch adds support for a new variable, JVM_TYPE, in ~/.Azureus/gentoo.config which defaults to "client" (the equivalent of no flag at all) but also supports "server". The script adds the appropriate flag to the command line depending upon this variable's value.

Possible problem: I can verify that this works with both the Blackdown JVM and Sun JDK 1.5.0, but I'm not sure if the IBM JVM has a seperate server/client JVM. This may need to default to no flag (rather than "-client") if some JVMs bomb out with a command line syntax error.
Comment 1 B. Keroack 2004-12-20 12:32:48 UTC
Created attachment 46467 [details, diff]
Adds server JVM support to /usr/bin/azureus
Comment 2 Joël 2005-05-30 08:27:37 UTC
Just a note: the JVM server mode *can* also be selected without modifying
/usr/bin/azureus. Just add the following to ~/.Azureus/gentoo.config:

java() { command java -server "$@"; }

I like it but.. this is a bit of a [temporary] hack :-)
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-11-26 12:16:36 UTC
In dev-java/azureus-2.3.0.6, which I just unmasked, you can put JAVA_OPTIONS to
your gentoo-config file to pass options to the java binary. You can use this
variable to make the vm run in server mode. Sorry about this taking so long.

# Options you want to pass to the java binary
JAVA_OPTIONS="-server"
Comment 4 Joël 2005-11-27 01:50:09 UTC
Works great, thanks !