DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24950>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24950 cocoon.sh script does not invoke Sun JVM >= 1.3 with preferred options Summary: cocoon.sh script does not invoke Sun JVM >= 1.3 with preferred options Product: Cocoon 2 Version: Current CVS 2.1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: general components AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The Sun JVM performs CPU-intensive workloads faster with the -server option. This option invokes the JVM with a version of Java Virtual Machine that is designed for use in CPU-intensive Server environments. The following patch uses the 'java' command's help option and some old-fashioned shell scripting, to insert the option '-server' in the command line when the JVM in use is one of the appropriate Sun releases. Note: there are other non-portable '-X' options all ready used in this script. Patch has been tested with Sun's SDK 1.4.1 and IBM's SDK 1.4.1 on RH 9 using BASH. Patch is as follows: ============================================================================ 106c106,107 < JAVA="$JAVA_HOME/bin/java" --- > SUN_SERVER_OPTION=`$JAVA_HOME/bin/java -help | grep server | cut -f1` > JAVA="$JAVA_HOME/bin/java $SUN_SERVER_OPTION" ============================================================================ I have not supplied a Windows version as the Java JRE on my Win98 system does not include the -server JVM. This excuses me the task of figuring out how to do a "| grep server | cut -f1" on Windows without installing a huge tool set like Cygnus or adding a Java program that creates a BAT file to be CALLed. If this is important enough to Windows people, they will do a better job than I.