Setting the JVM Properties of a Host Through the CLI
Procedure
- Navigate to admin sample folder of CONFIG_HOME or TIBCO_HOME.
- Add the host details to modify in host_data.xml.
- Add the jvmArgs attribute to the <Host> tag of host_data.xml. This attribute is case-sensitive. Provide all the JVM-specific or user-specific properties within quotes as shown in the below example.
- Remove the options attribute from the "update" target of the host_build.xml to set the host properties.
Example: Host_build.xml
<target name="update">
<AMXAdminTask
remote="true"
propsFile="${instanceProperties}"
action="edit"
dataFile="${dataFile}"
objectSelector="Host"
overwrite="true"
merge="true"
createIfNotExists="true"
force="true"
failOnError="false"/>
</target>
Example: host_data.xml
<Host xsi:type="amxdata:Host"
name="SecondHost"
description="Description for SecondHost"
hostType="TibcoHost"
sourceHost="SystemHost"
windowsService="true"
jvmArgs="-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dprop1=value1"
managementUrl="service:jmx:jmxmp://localhost:36923" assignToEnvs="ALL">
Copyright © 2022. TIBCO Software Inc. All Rights Reserved.
