cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 24950] New: - cocoon.sh script does not invoke Sun JVM >= 1.3 with preferred options
Date Mon, 24 Nov 2003 20:42:27 GMT
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: dev@cocoon.apache.org
        ReportedBy: john@integerservices.no-ip.com


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.

Mime
View raw message