mirror of
https://github.com/apache/skywalking.git
synced 2026-11-06 10:07:51 +00:00
Page:
3.2.3 部署探针Agent
Pages
1.0 Develop Guide of Plugin
2.0 Demo Application Cluster chn
2.0 Demo Application Cluster
2.0 Deploy Cluster chn
2.0 Deploy Cluster
2.0 How to build chn
2.0 How to build
2.0 Quick Start chn
2.0 Quick Start
2.0 Run Server Docker Images chn
2.0 Run Server Docker Images
2.x Documents
2.x Supported components
3.0 Collector TraceSegment in JSON format
3.0 Deploy cluster
3.0 Deploy docker image
3.0 Deploy skywalking agent
3.0 Trace a distributed services chain
3.0 supported list
3.0 部署Collector镜像
3.0 部署collector
3.0 部署探针Agent
3.1 supported list
3.2 Deploy cluster
3.2 Deploy skywalking agent
3.2 supported list
3.2 部署Collector镜像
3.2 部署collector
3.2 部署探针Agent
3.2.1 supported list
3.2.2 Plugin list and how to disable plugin zh
3.2.2 Plugin list and how to disable plugin
3.2.3 Deploy cluster
3.2.3 Deploy collector in standalone mode
3.2.3 Deploy skywalking agent
3.2.3 supported list
3.2.3 单机模式部署Collector
3.2.3 部署Collector
3.2.3 部署collector生产模式
3.2.3 部署探针Agent
3.2.3 集群模式部署Collector
3.2.4 supported list
FAQ_docker pull failure
Home
How to build
How to communicate with the collector?
Memory Usage and GC info
Plugin Development Guide
Quick start chn
Quick start
Sky Walking 2.x Architecture
Skywalking 3 Cross Process Propagation Headers Protocol CN
Skywalking 3 Cross Process Propagation Headers Protocol
Span tags and logging keys sample tables
Test Cases chn
Test Cases
Trace查询有数据,但是没有拓扑图和JVM数据
change project version
sky walking application toolkit chn
sky walking application toolkit log4j 1.x chn
sky walking application toolkit log4j 1.x
sky walking application toolkit log4j 2.x chn
sky walking application toolkit log4j 2.x
sky walking application toolkit logback 1.x chn
sky walking application toolkit logback 1.x
sky walking application toolkit trace chn
sky walking application toolkit trace context chn
sky walking application toolkit trace context
sky walking application toolkit trace
sky walking application toolkit
sky walking config file walkthrough
sky walking doc_Sidebar
sky walking documents zh contents
skywalking opentracing chn
skywalking opentracing
加载探针,Console被GRPC日志刷屏
No results
Table of contents
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
下载skywalking探针发布版本
- 前向发布页面
部署探针
- 拷贝skywalking-agent目录到所需位置,探针包含整个目录,请不要改变目录结构
- 增加JVM启动参数,
-javaagent:/path/to/skywalking-agent/skywalking-agent.jar。参数值为skywalking-agent.jar的绝对路径。
新目录结构如下:
+-- skywalking-agent
+-- activations
apm-toolkit-log4j-1.x-activation.jar
apm-toolkit-log4j-2.x-activation.jar
apm-toolkit-logback-1.x-activation.jar
...
+-- config
agent.config
+-- plugins
apm-dubbo-plugin.jar
apm-feign-default-http-9.x.jar
apm-httpClient-4.x-plugin.jar
.....
skywalking-agent.jar
/config/agent.config包含探针所需配置,中文说明如下。
# 当前的应用编码,最终会显示在webui上。
# 建议一个应用的多个实例,使用有相同的application_code。请使用英文
agent.application_code=Your_ApplicationName
# 每三秒采样的Trace数量
# 默认为负数,代表在保证不超过内存Buffer区的前提下,采集所有的Trace
# agent.sample_n_per_3_secs=-1
# 设置需要忽略的请求地址
# 默认配置如下
# agent.ignore_suffix=.jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.html,.svg
# 对应Collector的config/application.yml配置文件中 agent_server/jetty/port 配置内容
# 例如:
# 单节点配置:SERVERS="127.0.0.1:8080"
# 集群配置:SERVERS="10.2.45.126:8080,10.2.45.127:7600"
collector.servers=127.0.0.1:10800
# 日志文件名称前缀
logging.file_name=skywalking-agent.log
# 日志文件最大大小
# 如果超过此大小,则会生成新文件。
# 默认为300M
logging.max_file_size=314572800
# 日志级别,默认为DEBUG。
logging.level=DEBUG
- 启动被监控应用。
高级特性
- 插件会被统一放置在
plugins目录中,新的插件,也只需要在启动阶段,放在目录中,就自动生效。删除则失效。 - 配置除了通过
/config/agent.config文件外,可以通过环境变量和VM参数(-D)来进行设置- 参数的key =
skywalking.+agent.config文件中的key - 优先级:系统环境变量 > VM参数(-D) >
/config/agent.config中的配置
- 参数的key =
- Log默认使用文件输出,输出到
/log目录中
Tomcat配置探针FAQ
- Tomcat 7
修改
tomcat/bin/catalina.sh,在首行加入如下信息
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/skywalking-agent/skywalking-agent.jar"; export CATALINA_OPTS
- Tomcat 8
修改
tomcat/bin/catalina.sh,在首行加入如下信息
set "CATALINA_OPTS=... -javaagent:E:\apache-tomcat-8.5.20\skywalking-agent\skywalking-agent.jar"
WIKI documents are maintained by @OpenSkywalking