-
1. Re: Multiple memory configurations using same JBoss instance
peterj Jan 8, 2007 11:19 AM (in response to bbalmer)Low tech solution: make four copies of run.sh (and possibly run.conf) and set the memory in each one.
High tech solution: I assume that each server is a separate configuration (that is, 'run.sh -c config1'), so you can modify the scripts to base the memory size on the configuration passed to the script. -
2. Re: Multiple memory configurations using same JBoss instance
bbalmer Jan 8, 2007 11:26 AM (in response to bbalmer)Is there a way to pass the run.conf location to the run.sh on the fly? Then I could just specify multiple run.conf files and let the configuration know which one to use.
-
3. Re: Multiple memory configurations using same JBoss instance
peterj Jan 8, 2007 11:27 AM (in response to bbalmer)I am not a shell script expert, but offhand I would say it is possible.
-
4. Re: Multiple memory configurations using same JBoss instance
kalimero Jan 8, 2007 12:09 PM (in response to bbalmer)We are using something like that:
1. start jboss with run.sh start myserver
2. run.myserver.conf:JAVA_OPTS="$JAVA_OPTS -server -Xms2000m -Xmx2000m ...."
3. run.sh# --- Read an optional running configuration file if [ "x$2" = "x" ]; then RUN_CONF="$DIRNAME/run.conf" else RUN_CONF="$DIRNAME/run.$2.conf" fi if [ -r $RUN_CONF ]; then . $RUN_CONF fi echo "using configuration file: $RUN_CONF"
lg Wolfgang -
5. Re: Multiple memory configurations using same JBoss instance
bbalmer Jan 8, 2007 12:19 PM (in response to bbalmer)Thank you very much. Simple approach that works perfectly.
-
6. Re: Multiple memory configurations using same JBoss instance
hv11663 Jul 18, 2007 4:18 AM (in response to bbalmer)We have now the following error durinx execution run.sh:
run.sh: unused non-option argument: "Server_name"
Do you have the same one?