Skip to content

Commit 62da347

Browse files
author
Tim Middleton
authored
Minor update to enable thread dumps lock by default (#226)
* Minor update to enable thread dumps lock by default * Add -D option to disable padding on startup
1 parent 6e2f1d9 commit 62da347

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pkg/cmd/cluster_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func startCluster(cmd *cobra.Command, connection ClusterConnection, serverCount,
336336
func getCommonArguments(connection ClusterConnection) []string {
337337
splitArguments := strings.Split(connection.Arguments, " ")
338338
return append(splitArguments, "-cp", connection.BaseClasspath, getPersistenceProperty(connection.PersistenceMode),
339-
getLogLevelProperty(logLevelParam))
339+
getLogLevelProperty(logLevelParam), "-Dcom.oracle.coherence.common.util.Threads.dumpLocks=FULL")
340340
}
341341

342342
func startClient(cmd *cobra.Command, connection ClusterConnection, class string) error {

pkg/cmd/monitor_cluster.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ var (
5454
padMaxHeightParam = true
5555
showAllPanels bool
5656
ignoreRESTErrors bool
57+
disablePadding bool
5758
monitorCluster bool
5859
additionalMonitorMsg = pressAdditional
5960
expandedPanel = ""
@@ -161,6 +162,10 @@ Use --show-panels to show all available panels.`,
161162
return err
162163
}
163164

165+
if disablePadding {
166+
padMaxHeightParam = false
167+
}
168+
164169
// check for default layouts
165170
if l, ok := defaultMap[layoutParam]; ok {
166171
layoutParam = l
@@ -1338,6 +1343,7 @@ func init() {
13381343
monitorClusterCmd.Flags().StringVarP(&layoutParam, "layout", "l", defaultLayoutName, "layout to use")
13391344
monitorClusterCmd.Flags().BoolVarP(&showAllPanels, "show-panels", "", false, "show all available panels")
13401345
monitorClusterCmd.Flags().BoolVarP(&ignoreRESTErrors, "ignore-errors", "I", false, "ignore errors after initial refresh")
1346+
monitorClusterCmd.Flags().BoolVarP(&disablePadding, "disable-padding", "D", false, "disable padding of panels by default")
13411347
monitorClusterCmd.Flags().StringVarP(&serviceName, serviceNameOption, "S", "", serviceNameDescription)
13421348
monitorClusterCmd.Flags().StringVarP(&selectedCache, "cache-name", "C", "", "cache name")
13431349
monitorClusterCmd.Flags().StringVarP(&selectedTopic, "topic-name", "T", "", "topic name")

0 commit comments

Comments
 (0)