# Setup java agent
1. Find `agent` folder in SkyWalking release package
1. Set `agent.service_name` in `config/agent.config`. Could be any String in English.
1. Set `collector.backend_service` in `config/agent.config`. Default point to `127.0.0.1:11800`, only works for local
backend.
1. Add `-javaagent:/path/to/skywalking-package/agent/skywalking-agent.jar` to JVM argument. And make sure to add it
before the `-jar` argument.
The agent release dist is included in Apache [official release](http://skywalking.apache.org/downloads/). New agent
package looks like this.
```
+-- 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
```
- Start your application.
## Advanced features
- All plugins are in `/plugins` folder. The plugin jar is active when it is in there. Remove the plugin jar, it
disabled.
- The default logging output folder is `/logs`.
## Install javaagent FAQs
- Linux Tomcat 7, Tomcat 8
Change the first line of `tomcat/bin/catalina.sh`.
```shell
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/skywalking-agent/skywalking-agent.jar"; export CATALINA_OPTS
```
- Windows Tomcat 7, Tomcat 8
Change the first line of `tomcat/bin/catalina.bat`.
```shell
set "CATALINA_OPTS=-javaagent:/path/to/skywalking-agent/skywalking-agent.jar"
```
- JAR file
Add `-javaagent` argument to command line in which you start your app. eg:
```shell
java -javaagent:/path/to/skywalking-agent/skywalking-agent.jar -jar yourApp.jar
```
## Table of Agent Configuration Properties
This is the properties list supported in `agent/config/agent.config`.
property key | Description | Default |
----------- | ---------- | --------- |
`agent.namespace` | Namespace isolates headers in cross process propagation. The HEADER name will be `HeaderName:Namespace`. | Not set |
`agent.service_name` | Application(5.x)/Service(6.x) code is showed in sky-walking-ui. Suggestion: set a unique name for each service, service instance nodes share the same code | `Your_ApplicationName` |
`agent.sample_n_per_3_secs`|Negative or zero means off, by default.SAMPLE_N_PER_3_SECS means sampling N TraceSegment in 3 seconds tops.|Not set|
`agent.authentication`|Authentication active is based on backend setting, see application.yml for more details.For most scenarios, this needs backend extensions, only basic match auth provided in default implementation.|Not set|
`agent.span_limit_per_segment`|The max number of spans in a single segment. Through this config item, skywalking keep your application memory cost estimated.|Not set |
`agent.ignore_suffix`|If the operation name of the first span is included in this set, this segment should be ignored.|Not set|
`agent.is_open_debugging_class`|If true, skywalking agent will save all instrumented classes files in `/debugging` folder.Skywalking team may ask for these files in order to resolve compatible problem.|Not set|
`agent.active_v2_header`|Active V2 header in default.|`true`|
`agent.active_v1_header `|Deactive V1 header in default.|`false`|
`collector.grpc_channel_check_interval`|grpc channel status check interval.|`30`|
`collector.app_and_service_register_check_interval`|application and service registry check interval.|`3`|
`collector.backend_service`|Collector skywalking trace receiver service addresses.|`127.0.0.1:11800`|
`logging.level`|The log level. Default is debug.|`DEBUG`|
`logging.file_name`|Log file name.|`skywalking-api.log`|
`logging.dir`|Log files directory. Default is blank string, means, use "system.out" to output logs.|`""`|
`logging.max_file_size`|The max size of log file. If the size is bigger than this, archive the current file, and write into a new file.|`300 * 1024 * 1024`|
`jvm.buffer_size`|The buffer size of collected JVM info.|`60 * 10`|
`buffer.channel_size`|The buffer channel size.|`5`|
`buffer.buffer_size`|The buffer size.|`300`|
`dictionary.service_code_buffer_size`|The buffer size of application codes and peer|`10 * 10000`|
`dictionary.endpoint_name_buffer_size`|The buffer size of endpoint names and peer|`1000 * 10000`|
`plugin.mongodb.trace_param`|If true, trace all the parameters in MongoDB access, default is false. Only trace the operation, not include parameters.|`false`|
`plugin.elasticsearch.trace_dsl`|If true, trace all the DSL(Domain Specific Language) in ElasticSearch access, default is false.|`false`|
## Supported middlewares, frameworks and libraries
See [supported list](Supported-list.md).
## Optional Plugins
Java agent plugins are all pluggable. Optional plugins could be provided in `optional-plugins` folder under agent or 3rd
party repositores. For using these plugins, you need to put the target plugin jar file into `/plugins`.
Now, we have the following known optional plugins.
* [Trace Spring beans](agent-optional-plugins/Spring-bean-plugins.md)
* [Trace Oracle and Resin](agent-optional-plugins/Oracle-Resin-plugins.md)
* [Filter traces through specified endpoint name patterns](agent-optional-plugins/trace-ignore-plugin.md)
* Gson serialization lib in optional plugin folder
## Advanced Features
* Set the settings through system properties for config file override. Read [setting override](Setting-override.md).
* Use gRPC TLS to link backend. See [open TLS](TLS.md)
* Monitor a big cluster by different SkyWalking services. Use [Namespace](Namespace.md) to isolate the context
propagation.
* Set client [token](Token-auth.md) if backend open [token authentication](../../backend/backend-token-auth.md).
* Application Toolkit, are a collection of libraries, provided by skywalking APM. Using them, you have a bridge between
your application and skywalking APM agent.
* If you want to use OpenTracing Java APIs, try [SkyWalking OpenTracing compatible tracer](Opentracing.md). More
details you could find at http://opentracing.io
* If you want to print trace context(e.g. traceId) in your logs, choose the log
frameworks, [log4j](Application-toolkit-log4j-1.x.md),
[log4j2](Application-toolkit-log4j-2.x.md), [logback](Application-toolkit-logback-1.x.md)
* If you want to use annotations or SkyWalking native APIs to read context,
try [SkyWalking manual APIs](Application-toolkit-trace.md)
* If you want to continue traces across thread manually,
use [across thread solution APIs](Application-toolkit-trace-cross-thread.md).
* If you want to specify the path of your agent.config file.
Read [set config file through system properties](Specified-agent-config.md)
## Plugin Development Guide
SkyWalking java agent supports plugin to extend [the supported list](Supported-list.md). Please follow
our [Plugin Development Guide](../../../guides/Java-Plugin-Development-Guide.md).
# Test
If you are interested in plugin compatible tests or agent performance, see the following reports.
* [Plugin Test](https://github.com/SkywalkingTest/agent-integration-test-report)
* [Java Agent Performance Test](https://skywalkingtest.github.io/Agent-Benchmarks/)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
教育部认可的大学生竞赛备赛资料代码,源码,竞赛总结,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通 全国电子设计大赛、全国大学生智能汽车竞赛、蓝桥杯、集成电路创新创业大赛、光电设计竞赛、挑战杯、大创项目、互联网+、三创赛、计算机设计竞赛、创新创业大赛、ACM-ICPC国际大学生程序设计竞赛、全国大学生数学建模竞赛、全国大学生电子商务“创新、创意及创业”挑战赛、全国大学生节能减排社会实践与科技竞赛、全国大学生工程训练综合能力竞赛、全国大学生机器人大赛-RoboMaster、RoboCon、“西门子杯”中国智能制造挑战赛、中国大学生计算机设计大赛、世界技能大赛、中国高校计算机大赛-大数据挑战赛、团体程序设计天梯赛、移动应用创新赛、网络技术挑战赛、全国大学生信息安全竞赛、“中国软件杯”大学生软件设计大赛、全国大学生光电设计竞赛、中国机器人及人工智能大赛、“大唐杯”全国大学生移动通信5G技术大赛、华为ICT大赛、全国大学生嵌入式芯片与系统设计竞赛、中国高校智能机器人创意大赛
资源推荐
资源详情
资源评论
收起资源包目录
竞赛资料源码-Java的学习库,包括Java蓝桥杯、Java框架以及一些新知识都会在这里写.zip (2000个子文件)
org.apache.skywalking.apm.agent.core.boot.BootService 1KB
org.apache.skywalking.apm.agent.core.boot.BootService 920B
org.apache.skywalking.apm.agent.core.boot.BootService 859B
org.apache.skywalking.apm.agent.core.boot.BootService 859B
CHECKSTYLE_HEAD 805B
mvnw.cmd 6KB
agent.config 2KB
apm-trace-ignore-plugin.config 1KB
agent.config 875B
skywalking-plugin.def 2KB
skywalking-plugin.def 2KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1KB
skywalking-plugin.def 1005B
skywalking-plugin.def 1002B
skywalking-plugin.def 999B
skywalking-plugin.def 991B
skywalking-plugin.def 981B
skywalking-plugin.def 978B
skywalking-plugin.def 974B
skywalking-plugin.def 973B
skywalking-plugin.def 972B
skywalking-plugin.def 971B
skywalking-plugin.def 955B
skywalking-plugin.def 952B
skywalking-plugin.def 950B
skywalking-plugin.def 945B
skywalking-plugin.def 944B
skywalking-plugin.def 912B
skywalking-plugin.def 907B
skywalking-plugin.def 894B
skywalking-plugin.def 893B
skywalking-plugin.def 891B
skywalking-plugin.def 886B
skywalking-plugin.def 885B
skywalking-plugin.def 883B
skywalking-plugin.def 880B
skywalking-plugin.def 878B
skywalking-plugin.def 877B
skywalking-plugin.def 875B
skywalking-plugin.def 874B
skywalking-plugin.def 871B
skywalking-plugin.def 868B
skywalking-plugin.def 859B
skywalking-plugin.def 851B
SWCallableStatementTest.java 39KB
SWCallableStatement.java 37KB
SwPreparedStatementTest.java 28KB
TracingContext.java 20KB
JdbcConnectionWrapper.java 20KB
SWPreparedStatement.java 20KB
CallableStatementWrapper.java 19KB
SegmentBuilder.java 18KB
RestMappingMethodInterceptorTest.java 16KB
TraceQueryService.java 16KB
SkywalkingSpanActivationTest.java 15KB
SWConnectionTest.java 14KB
ContextManagerTest.java 14KB
TelemetryDataDispatcher.java 14KB
H2MetadataQueryDAO.java 13KB
RunningRule.java 13KB
MakeWrapperInterceptor.java 12KB
SWStatementTest.java 12KB
SegmentParseV2.java 12KB
SegmentParse.java 12KB
SWConnection.java 12KB
MultiScopesSpanListener.java 11KB
MetadataQueryEsDAO.java 11KB
PreparedStatementWrapper.java 11KB
StatementWrapper.java 11KB
ContextCarrier.java 11KB
ClassEnhancePluginDefine.java 11KB
DurationUtils.java 11KB
RunningRuleTest.java 10KB
HttpAsyncClientInterceptorTest.java 10KB
SpanDecorator.java 10KB
AbstractTracingSpan.java 10KB
MongoDBMethodInterceptor.java 10KB
SWStatement.java 10KB
ElasticSearchClient.java 10KB
DubboInterceptorTest.java 10KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
妄北y
- 粉丝: 1w+
- 资源: 1万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功