zoukankan      html  css  js  c++  java
  • 安装-apache skywalking (java 应用性能监控)

     官网:http://skywalking.apache.org/

    服务器:10.30.31.28 

    centos 7

    jdk 1.8.x

    ES 5.x

    5.0.0-bet a2版本 . http://skywalking.apache.org/downloads/

    Skywalking

    SkyWalking 是针对分布式系统的 APM 系统,也被称为分布式追踪系统

    • 自动监控和手动监控可以同时使用,使用手动监控弥补自动监控不支持的组件,甚至私有化组件。
    • 纯 Java 后端分析程序,提供 RESTful 服务,可为其他语言探针提供分析能力。
    • 高性能纯流式分析。

    安装服务端skywalking

    #tar zxvf apache-skywalking-apm-incubating-5.0.0-beta2.tar.gz

    修改配置文件 :config/application.yml 

    naming:
    jetty:
    #OS real network IP(binding required), for agent to find collector cluster
    host: 0.0.0.0  ##这里
    port: 10800
    contextPath: /
    cache:

    remote:
    gRPC:
    # OS real network IP(binding required), for collector nodes communicate with each other in cluster. collectorN --(gRPC) --> collectorM
    host: 10.30.31.28  ##这里
    port: 11800

    agent_gRPC:
    gRPC:
    #OS real network IP(binding required), for agent to uplink data(trace/metrics) to collector. agent--(gRPC)--> collector
    host: 10.30.31.28  ##这里
    port: 11800

    agent_jetty:
    jetty:
    # OS real network IP(binding required), for agent to uplink data(trace/metrics) to collector through HTTP. agent--(HTTP)--> collector
    # SkyWalking native Java/.Net/node.js agents don't use this.
    # Open this for other implementor.
    host: 10.30.31.28  ##这里

    ui:
    jetty:
    # Stay in `localhost` if UI starts up in default mode.
    # Change it to OS real network IP(binding required), if deploy collector in different machine.
    host: 10.30.31.28 ##这里
    port: 12800

    部署ES 5.x

    network.host: 0.0.0.0
    thread_pool.bulk.queue_size: 1000

    cluster.name: CollectorDBCluster
    node.name: anyname

    启动server 端:

    #cd bin

    #bash startup.sh 

    ###agent

    安装agent

    scp agent目录到tomcat服务器

    修改配置文件:

    collector.servers=10.30.31.28:10800   #服务端ip

    ##配置tomcat catclina.sh脚本

    找到部署项目tomcat 放在catalina.sh第一行,application_code代表当前应用的名称 

    CATALINA_OPTS="$CATALINA_OPTS -javaagent:/usr/local/skywalking-agent/skywalking-agent.jar -Dskywalking.agent.application_code=xAlgo"; export CATALINA_OPTS

    或者 加这个

    setenv.sh

    -javaagent:/usr/local/skywalking-agent/skywalking-agent.jar -Dskywalking.agent.application_code=irsapi-8081-10.30.31.64

    打开服务端:http://服务端ip:8080   admin/admin

  • 相关阅读:
    19_多态及引用类型的转化
    18_接口以及基本实现
    17_super关键字 超,基,父
    Static 关键字
    17_抽象类
    17_继承
    数 函数类 Math类
    ArrayList类 Arrays类 注释
    我的第一篇博客
    hdu 3478 Catch--二分图判断
  • 原文地址:https://www.cnblogs.com/Qing-840/p/9779549.html
Copyright © 2011-2022 走看看