wtorek, grudnia 26, 2017

Współczynnik rodzinności samochodu


poniedziałek, grudnia 18, 2017

Modern Tibco monitoring with JMX, Prometheus and Grafana












{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "hideControls": false,
  "id": 9,
  "links": [],
  "refresh": false,
  "rows": [
    {
      "collapse": false,
      "height": 507,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": null,
          "description": "$bw_apps",
          "fill": 1,
          "id": 1,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": true,
            "max": false,
            "min": false,
            "show": true,
            "sortDesc": false,
            "total": false,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "repeat": "bw_apps",
          "scopedVars": {
            "bw_apps": {
              "selected": true,
              "text": "TRA|BWPublicationService-1.tra",
              "value": "TRA|BWPublicationService-1.tra"
            }
          },
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 12,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "Bw_createdJobs{component=~\"$bw_apps\",job=~\"tibco-bw-prod.*\"}",
              "format": "time_series",
              "instant": false,
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "Created on {{host}} > {{object}}",
              "metric": "Bw_createdJobs",
              "refId": "A",
              "step": 120
            },
            {
              "expr": "Bw_completedJobs{component=~\"$bw_apps\",job=~\"tibco-bw-prod.*\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Completed on {{host}} > {{object}}",
              "metric": "Bw_completedJobs",
              "refId": "B",
              "step": 120
            },
            {
              "expr": "Bw_abortedJobs{component=~\"$bw_apps\",job=~\"tibco-bw-prod.*\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Aborted on {{host}} > {{object}}",
              "metric": "Bw_abortedJobs",
              "refId": "C",
              "step": 120
            },
            {
              "expr": "Bw_inFlightJobs{component=~\"$bw_apps\",job=~\"tibco-bw-prod.*\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Waiting on {{host}} > {{object}}",
              "metric": "Bw_inFlightJobs",
              "refId": "D",
              "step": 120
            },
            {
              "expr": "Bw_hasErrors{component=~\"$bw_apps\",job=~\"tibco-bw-prod.*\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "Errors on {{host}} > {{object}}",
              "metric": "Bw_hasErrors",
              "refId": "E",
              "step": 120
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "$bw_apps",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        }
      ],
      "repeat": null,
      "repeatIteration": null,
      "repeatRowId": null,
      "showTitle": false,
      "title": "Dashboard Row",
      "titleSize": "h6"
    }
  ],
  "schemaVersion": 14,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "text": "TRA|BWPublicationService-1.tra",
          "value": [
            "TRA|BWPublicationService-1.tra"
          ]
        },
        "datasource": "PrometheusBwMonitoring",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "bw_apps",
        "options": [],
        "query": "label_values(Bw_cores,component)",
        "refresh": 1,
        "regex": "TRA.*|BW.*",
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-30d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "BW Jobs",
  "version": 7
}


Tibco Designer on Linux

java.extended.properties -Dswing.defaultlaf=com.jgoodies.looks.plastic.Plastic3DLookAndFeel -Dsun.awt.disablegrab=true --add-opens=java.base/jdk.internal=ALL-UNNAMED --add-opens=java.management/sun.management=ALL-UNNAMED --add-opens=java.management/com.sun.jmx.remote.internal=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/jdk.internal.vm=ALL-UNNAMED --add-modules=java.xml.bind --illegal-access=permit -Dswing.defaultlaf=com.jgoodies.looks.plastic.Plastic3DLookAndFeel -Dsun.awt.disablegrab=true -Xscmx1g -Xshareclasses:name=bw -Xgcpolicy:metronome -Djdk.attach.allowAttachSelf=true -Xquickstart
-XX:+IdleTuningGcOnIdle -Xtune:virtualized
 

export _JAVA_AWT_WM_NONREPARENTING=1

sobota, grudnia 16, 2017

Java 9 for BW 5.x

Eclipse OpenJ9 is a Open Source JDK donated by IBM. It's a enterprise level JVM. Tibco BusinessWorks 5.12 shipped with Java 7.0 and 5.13 with Java 8. Java 7 nowadays has got problems with cryptography/security: HTTPS/TLS and SSH implementations are rejected by remote peers. Why? Because security is a state. It is not absolute. New bugs are found every day and countermeasures must be stronger and stronger. This causes situations where Tibco BW cannot communicate with remote business services. How to fix this? BW supports JVM in a configurable way, both Sun/Oracle and IBM implementations. We can switch Java to Eclipse OpenJ9. Advantages? Up to date security of Java 9. Low memory footprint. Fast startup time. High application throughput.  Java Updater for Tibco is here. You should unpack tgz file and run getjdk.sh. If you don't have access to shell try building EAR, deploying and starting.
Usual disclaimer: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.