Hi Josh!
Thanks for your answer.
Could you explain the relationship between default.xml and template.xml. I never understood their dependency. When are the settings from the template.xml taken anyway.
It tried to add the following to default.xml, but it did not change the java cmd that is launched by bin/omero.
- Code: Select all
<properties id="Profile">
<!--
Any properties beginning with "omero" set here will
be passed to the servers as if via "-Domero.example=value"
were set on the command line. These values may be overwritten
by `bin/omero config` values.
-->
<property name="omero.blitz.xargs" value="-Xms512m -Xmx1024 -Djava.util.prefs.systemRoot=/home/bernhard/.java"/>
</properties>
Adding an option to the BlitzTemplate node in templates.xml similar to the WinBlitzTemplate node does not work, the server won't start anymore. I'm clearly missing some understanding of the configuration system
Here's the change I did to java.py's cmd function:
- Code: Select all
--- java.py~ 2009-05-08 13:32:22.000000000 +0200
+++ java.py 2009-08-19 13:09:02.000000000 +0200
@@ -38,12 +38,13 @@
command += [ "-Dlog4j.configuration=%s" % os.path.join("etc", "log4j.xml") ]
# Preapre arguments
- if xargs == None:
- if os.environ.has_key("JAVA_OPTS"):
- command += shlex.split(os.environ["JAVA_OPTS"])
- else:
+
+ if xargs is not None:
command += xargs
+ if os.environ.has_key("JAVA_OPTS"):
+ command += shlex.split(os.environ["JAVA_OPTS"])
+
# Prepare debugging
if debug == None:
if os.environ.has_key("DEBUG"):
Instead of using JAVA_OPTS from the environment only when xargs is not set, now they are always recoginzed and they are added at last so they are superseding values from configuration files.
FYI, the xargs is never unset for the "blitz" application as there is a default -Xmx400m arg in the blitz method of the ServerControl in server.py.
Thanks for you help! Bernhard