Thanks John! This is exactly the sort of thing I was looking for. I've changed the first line to -client KNOWN which is what it is on Windows. I am using Java 1.6 and this file is still present and working, so we'll just have to keep an eye out for future releases I guess, unless someone else can comment on its warning that it will go away?
William > -----Original Message----- > From: [email protected] [mailto:sunray-users- > [email protected]] On Behalf Of John Shott > Sent: Monday, December 14, 2009 5:36 PM > To: SunRay-Users mailing list > Subject: Re: [SunRay-Users] Java on a large server > > William: > > Although I've never tinkered with this file, on my machines I can find a > file named jvm.cfg that would appear to be of interest. > Note: I'm currently running JDK5 on a Solaris 10 machine running on top > of x86_64 hardware. > > On this machine, I find jvm.cfg in /usr/java/jre/lib/i386 and it contains: > > # @(#)jvm.cfg 1.8 04/02/02 > # > # Copyright 2003 Sun Microsystems, Inc. All rights reserved. > # SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. > # > # > # > # > # List of JVMs that can be used as an option to java, javac, etc. > # Order is important -- first in this list is the default JVM. > # NOTE that this both this file and its format are UNSUPPORTED and > # WILL GO AWAY in a future release. > # > # You may also select a JVM in an arbitrary location with the > # "-XXaltjvm=<jvm_dir>" option, but that too is unsupported > # and may not be available in a future release. > # > -client IF_SERVER_CLASS -server > -server KNOWN > -hotspot ALIASED_TO -client > -classic WARN > > It would appear to me that if you changed the first non-commented line to: > > -client > > instead of > > -client IF_SERVER_CLASS -server > > that you would get your desired default behavior of running the -client > JVM. However, the following line that has '-server KNOWN' would seem to > allow you to explicitly override this with a command-line '-server' option. > > Of course, I haven't tried this .... but this sure looks like the place > to start in altering system-wide defaults. > > By checking a SPARC machine, I can also see and equivalent, if not > identical file in /usr/java/jre/lib/sparc/jvm.cfg. > > I hope this helps, > > John > > _______________________________________________ > SunRay-Users mailing list > [email protected] > http://www.filibeto.org/mailman/listinfo/sunray-users _______________________________________________ SunRay-Users mailing list [email protected] http://www.filibeto.org/mailman/listinfo/sunray-users
