Omaha #3678 don't enable jmx at alertviz or cave startup
Change-Id: Ife722d85de8be57300a49aa3d21be02ff7cf39f7 Former-commit-id:8c3c592190
[formerly131f5ec9f7
] [formerly799ba1babf
] [formerly8c3c592190
[formerly131f5ec9f7
] [formerly799ba1babf
] [formerly41427a57bb
[formerly799ba1babf
[formerly 501aa1ac560f34024ab906391dc8c22c422d8509]]]] Former-commit-id:41427a57bb
Former-commit-id:0b0b9900fe
[formerlye6100e8e7f
] [formerly 8b3857e4c194aa2076e394aa0028ebf5c0ba2ab8 [formerly78054658a3
]] Former-commit-id: eac63f07f79044de4bb76979473040b0e13d3b46 [formerly86271d7dc9
] Former-commit-id:18f7a6f1c0
This commit is contained in:
parent
df1ed325c5
commit
0e57a71184
5 changed files with 0 additions and 164 deletions
|
@ -29,8 +29,6 @@ Developed on the Raytheon Visualization Environment (viz)
|
||||||
-XX:MaxPermSize=128m
|
-XX:MaxPermSize=128m
|
||||||
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
||||||
-Dqpid.dest_syntax=BURL
|
-Dqpid.dest_syntax=BURL
|
||||||
-Dcom.sun.management.jmxremote.authenticate=false
|
|
||||||
-Dcom.sun.management.jmxremote.ssl=false
|
|
||||||
-Dlogback.configurationFile=logback-alertviz.xml
|
-Dlogback.configurationFile=logback-alertviz.xml
|
||||||
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
||||||
-Dthrift.stream.maxsize=200</vmArgs>
|
-Dthrift.stream.maxsize=200</vmArgs>
|
||||||
|
|
|
@ -23,9 +23,6 @@
|
||||||
-XX:MaxPermSize=128m
|
-XX:MaxPermSize=128m
|
||||||
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
||||||
-Dqpid.dest_syntax=BURL
|
-Dqpid.dest_syntax=BURL
|
||||||
-Dcom.sun.management.jmxremote
|
|
||||||
-Dcom.sun.management.jmxremote.authenticate=false
|
|
||||||
-Dcom.sun.management.jmxremote.ssl=false
|
|
||||||
-XX:OnOutOfMemoryError="capture -t no -p $pid &"
|
-XX:OnOutOfMemoryError="capture -t no -p $pid &"
|
||||||
-Dlogback.configurationFile=logback-viz-core.xml
|
-Dlogback.configurationFile=logback-viz-core.xml
|
||||||
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
-Dorg.eclipse.update.reconcile=false -XX:MaxPermSize=256m
|
-Dorg.eclipse.update.reconcile=false -XX:MaxPermSize=256m
|
||||||
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
-Dorg.eclipse.ui/KEY_CONFIGURATION_ID=com.raytheon.viz.ui.awips.scheme
|
||||||
-Dqpid.dest_syntax=BURL
|
-Dqpid.dest_syntax=BURL
|
||||||
-Dcom.sun.management.jmxremote
|
|
||||||
-Dcom.sun.management.jmxremote.authenticate=false
|
|
||||||
-Dcom.sun.management.jmxremote.ssl=false
|
|
||||||
-Dlogback.configurationFile=logback-viz-core-developer.xml
|
-Dlogback.configurationFile=logback-viz-core-developer.xml
|
||||||
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
-Dlogback.statusListenerClass=com.raytheon.uf.common.status.logback.UFLogbackInternalStatusListener
|
||||||
-Dthrift.stream.maxsize=200
|
-Dthrift.stream.maxsize=200
|
||||||
|
|
|
@ -1,133 +0,0 @@
|
||||||
/**
|
|
||||||
* This software was developed and / or modified by Raytheon Company,
|
|
||||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
||||||
*
|
|
||||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
||||||
* This software product contains export-restricted data whose
|
|
||||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
||||||
* to non-U.S. persons whether in the United States or abroad requires
|
|
||||||
* an export license or other authorization.
|
|
||||||
*
|
|
||||||
* Contractor Name: Raytheon Company
|
|
||||||
* Contractor Address: 6825 Pine Street, Suite 340
|
|
||||||
* Mail Stop B8
|
|
||||||
* Omaha, NE 68106
|
|
||||||
* 402.291.0100
|
|
||||||
*
|
|
||||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
||||||
* further licensing information.
|
|
||||||
**/
|
|
||||||
package com.raytheon.viz.ui.personalities.awips.menus;
|
|
||||||
|
|
||||||
import java.lang.management.ManagementFactory;
|
|
||||||
|
|
||||||
import org.eclipse.jface.action.Action;
|
|
||||||
import org.eclipse.jface.action.ActionContributionItem;
|
|
||||||
import org.eclipse.jface.action.IContributionItem;
|
|
||||||
import org.eclipse.ui.actions.CompoundContributionItem;
|
|
||||||
|
|
||||||
import sun.management.Agent;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Command that displays the system id
|
|
||||||
*
|
|
||||||
* <pre>
|
|
||||||
*
|
|
||||||
* SOFTWARE HISTORY
|
|
||||||
*
|
|
||||||
* Date Ticket# Engineer Description
|
|
||||||
* ------------ ---------- ----------- --------------------------
|
|
||||||
* Aug 10, 2011 mschenke Initial creation
|
|
||||||
*
|
|
||||||
* </pre>
|
|
||||||
*
|
|
||||||
* @author mschenke
|
|
||||||
* @version 1.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class SystemIdItem extends CompoundContributionItem {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Boolean to mark if we can use the file names as a connection checking
|
|
||||||
* method for determining orphaned locks
|
|
||||||
*/
|
|
||||||
private static boolean canCheckConnection = false;
|
|
||||||
|
|
||||||
static {
|
|
||||||
try {
|
|
||||||
String val = System
|
|
||||||
.getProperty("com.sun.management.jmxremote.port");
|
|
||||||
// If the port is set, then the Agent is already started and we
|
|
||||||
// would shutdown if we couldn't connect
|
|
||||||
if (val == null) {
|
|
||||||
// Get starting jmx remote port, default to 20000
|
|
||||||
boolean connectionFailed = true;
|
|
||||||
int startPort = 20000;
|
|
||||||
int i = 0;
|
|
||||||
System.setProperty("com.sun.management.jmxremote.port", ""
|
|
||||||
+ startPort);
|
|
||||||
do {
|
|
||||||
// Stop at 50 since at that point, may be underlying issue
|
|
||||||
// (firewall) blocking it and less likely there are 50
|
|
||||||
// instances
|
|
||||||
try {
|
|
||||||
++i;
|
|
||||||
Agent.startAgent();
|
|
||||||
// jmx manager successfully started
|
|
||||||
connectionFailed = false;
|
|
||||||
canCheckConnection = true;
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.setProperty("com.sun.management.jmxremote.port",
|
|
||||||
"" + (startPort + i));
|
|
||||||
Agent.getManagementProperties()
|
|
||||||
.setProperty(
|
|
||||||
"com.sun.management.jmxremote.port",
|
|
||||||
System.getProperty("com.sun.management.jmxremote.port"));
|
|
||||||
|
|
||||||
}
|
|
||||||
} while (connectionFailed && i < 50);
|
|
||||||
} else {
|
|
||||||
canCheckConnection = true;
|
|
||||||
}
|
|
||||||
} catch (Throwable t) {
|
|
||||||
t.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String jmxPort = System
|
|
||||||
.getProperty("com.sun.management.jmxremote.port");
|
|
||||||
|
|
||||||
private static final String NAME = ManagementFactory.getRuntimeMXBean()
|
|
||||||
.getName();
|
|
||||||
|
|
||||||
private static final String HOST = NAME.split("[@]")[1];
|
|
||||||
|
|
||||||
private static final String PID = NAME.split("[@]")[0];
|
|
||||||
|
|
||||||
// name is in form processid@host, ID = host:port if we can check
|
|
||||||
// connections or we will just use processid@host
|
|
||||||
private static final String ID = HOST + ":"
|
|
||||||
+ (canCheckConnection ? jmxPort : PID);
|
|
||||||
|
|
||||||
static {
|
|
||||||
System.out.println(ID);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* (non-Javadoc)
|
|
||||||
*
|
|
||||||
* @see
|
|
||||||
* org.eclipse.ui.actions.CompoundContributionItem#getContributionItems()
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
protected IContributionItem[] getContributionItems() {
|
|
||||||
return new IContributionItem[] { new ActionContributionItem(new Action(
|
|
||||||
HOST + ":" + PID) {
|
|
||||||
@Override
|
|
||||||
public boolean isEnabled() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}) };
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,23 +0,0 @@
|
||||||
/**
|
|
||||||
* This software was developed and / or modified by Raytheon Company,
|
|
||||||
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
||||||
*
|
|
||||||
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
||||||
* This software product contains export-restricted data whose
|
|
||||||
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
||||||
* to non-U.S. persons whether in the United States or abroad requires
|
|
||||||
* an export license or other authorization.
|
|
||||||
*
|
|
||||||
* Contractor Name: Raytheon Company
|
|
||||||
* Contractor Address: 6825 Pine Street, Suite 340
|
|
||||||
* Mail Stop B8
|
|
||||||
* Omaha, NE 68106
|
|
||||||
* 402.291.0100
|
|
||||||
*
|
|
||||||
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
||||||
* further licensing information.
|
|
||||||
**/
|
|
||||||
/**
|
|
||||||
* Provides menu management for the AWIPS application
|
|
||||||
*/
|
|
||||||
package com.raytheon.viz.ui.personalities.awips.menus;
|
|
Loading…
Add table
Reference in a new issue