Chris,

We're currently doing this exact thing. What we ended up having to do was

to create a configuration file in the $JRUN_HOME/bin directory and then

manually kick the JRun instance off telling it where the configuration file

is by using the command line parameter '-config {config filename}'. Once

you've done this, you have to always do so to start that JRun instance off

(the web based GUI tool will start the JRun instance off, but will instead

use the global libraries and resources that were set up for all of the

instances).

So, for instance, we have a JRun server instance named:

jsm-foo

We have a jsm-foo.config file in /opt/java/jrun4/bin with the following

content:

#

# VM configuration

#

# Where to find JVM, if {java.home}/jre exists then that JVM is used

# if not then it must be the path to the JRE itself

#

# If no java.home is specified a VM is located by looking in these places in

thi

s

# order:

#

# 1) JAVA_HOME environment variables (same rules as java.home above)

# 2) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)

# 3) ../jre

# 4) registry (windows only)

#

java.home=/usr/jdk1.4.1

# Arguments to VM

java.args=-Xms25M -Xmx51m -Djava.awt.headless=true

java.class.path={application.home}/servers/lib,/opt/java/jdbc/oracle/Oracle_

driver_9.2.0.3_jdk_1.4.jar

#

# where to find shared libraries, again use commas to separate entries

java.library.path=



We then have a script we kick off that runs the following command (to start

jsm-foo):

jrun -config jsm.foo.config -nohup -start jsm-foo > ../logs/jsm-foo.out 2>&1

And that's how we're handling multiple JRun configurations on the same

machine.

Erik

  -----Original Message-----
  From: Chris Boyce [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 02, 2004 2:13 PM
  To: JRun-Talk
  Subject: JVM settings

  Saw a previous post for this with no replies...

  Is there any way to have unique JVM settings for each Jrun4 server on a
  machine?  We have a very small and very large site on one machine and
  don't want to have the same heap allocation for both.

  thank you!

  --
  Chris Boyce
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to