Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#5672 - Standardize JVM options for Java Packages
Attached to Project:
Arch Linux
Opened by AqD (aquila_deus) - Thursday, 26 October 2006, 11:26 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 14 June 2009, 20:54 GMT
Opened by AqD (aquila_deus) - Thursday, 26 October 2006, 11:26 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 14 June 2009, 20:54 GMT
|
DetailsHi!
It would be good if all java packages append an environment variable in JVM options, such as $JAVA_OPTS (used by ant and some other apps). It should be put to the end before -jar, to avoid being overrided. Also, I have a small java wrapper that makes ps/top to show apps' original names instead of "java": (put to /usr/local/bin or somewhere to override the real java) ################################################# if [ -z "${JAVA_APPNAME}" ]; then JAVA_APPNAME="java" fi JAVA_HOME=/opt/java JAVA_TMPDIR=/tmp/java-tmpdir-${UID} mkdir -p ${JAVA_TMPDIR}/bin ln -sfT ${JAVA_HOME}/jre ${JAVA_TMPDIR}/jre ln -fT ${JAVA_HOME}/jre/bin/java ${JAVA_TMPDIR}/bin/$JAVA_APPNAME exec ${JAVA_TMPDIR}/bin/$JAVA_APPNAME "$@" ################################################# Packages that use binary launchers would need to be rewritten. Following is the script for eclipse: APP_NAME=eclipse exec java -Xms256m -Xmx320m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.library.path=/usr/lib $JAVA_OPTS -jar /opt/eclipse/startup.jar -os linux -ws gtk -arch x86 -launcher /opt/eclipse/eclipse -name Eclipse -showsplash 600 -exitdata 4aeb003f -vm /opt/java/jre/bin/java -vmargs -jar /opt/eclipse/startup.jar |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Sunday, 14 June 2009, 20:54 GMT
Reason for closing: Won't implement
Sunday, 14 June 2009, 20:54 GMT
Reason for closing: Won't implement
Examples would be good.
I'm also not sure about changing the java name to be something other than what they say. Making changes to binary/package scripts though is probably fine.
The naming could help a lot when you use ps/kill/etc, otherwise it's nearly impossible to script any process-related commands for java apps.
Opinions guys?