Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
784c54cc
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
784c54cc
编写于
11月 09, 2015
作者:
Z
zhangxin10
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改打包路径
上级
181482f2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
99 addition
and
51 deletion
+99
-51
skywalking-server/bin/swserver.sh
skywalking-server/bin/swserver.sh
+49
-0
skywalking-server/installer/config/config.properties
skywalking-server/installer/config/config.properties
+0
-35
skywalking-server/installer/config/log4j2.xml
skywalking-server/installer/config/log4j2.xml
+0
-13
skywalking-server/pom.xml
skywalking-server/pom.xml
+50
-3
未找到文件。
skywalking-server/bin/swserver.sh
0 → 100644
浏览文件 @
784c54cc
#!/bin/sh
# OS specific support. $var _must_ be set to either true or false.
cygwin
=
false
os400
=
false
darwin
=
false
case
"
`
uname
`
"
in
CYGWIN
*
)
cygwin
=
true
;;
OS400
*
)
os400
=
true
;;
Darwin
*
)
darwin
=
true
;;
esac
# resolve links - $0 may be a softlink
SW_SERVER_BIN
=
"
$0
"
while
[
-h
"
$SW_SERVER_BIN
"
]
;
do
ls
=
`
ls
-ld
"
$SW_SERVER_BIN
"
`
link
=
`
expr
"
$ls
"
:
'.*-> \(.*\)$'
`
if
expr
"
$link
"
:
'/.*'
>
/dev/null
;
then
SW_SERVER_BIN
=
"
$link
"
else
SW_SERVER_BIN
=
`
dirname
"
$SW_SERVER_BIN
"
`
/
"
$link
"
fi
done
# Get standard environment variables
SW_SERVER_BIN_DIR
=
`
dirname
"
$SW_SERVER_BIN
"
`
SW_PREFIX
=
"
${
SW_SERVER_BIN_DIR
}
/.."
SW_LOG_DIR
=
"
${
SW_SERVER_BIN_DIR
}
/../log"
SW_CFG_DIR
=
"
${
SW_SERVER_BIN_DIR
}
/../config"
#echo $SW_SERVER_BIN_DIR
#set java home
if
[
"
$JAVA_HOME
"
!=
""
]
;
then
JAVA
=
"
$JAVA_HOME
/bin/java"
else
JAVA
=
java
fi
CLASSPATH
=
"
$SW_CFG_DIR
:
$CLASSPATH
"
for
i
in
"
${
SW_SERVER_BIN_DIR
}
"
/../lib/
*
.jar
do
CLASSPATH
=
"
$i
:
$CLASSPATH
"
done
echo
"CLASSPATH=
$CLASSPATH
"
$JAVA
-classpath
$CLASSPATH
com.ai.cloud.skywalking.reciever.CollectionServer
>>
${
SW_SERVER_BIN_DIR
}
/../log/sw-server.log & 2>&1&
skywalking-server/installer/config/config.properties
已删除
100644 → 0
浏览文件 @
181482f2
#采集服务器的端口
server.port
=
34000
#最大数据缓存线程数量
buffer.max_thread_number
=
1
#每个线程最大缓存数量
buffer.per_thread_max_buffer_number
=
1024
#无数据处理时轮询等待时间(单位:毫秒)
buffer.max_wait_time
=
5000
#数据冲突时等待时间(单位:毫秒)
buffer.data_conflict_wait_time
=
10
#数据缓存文件目录
buffer.data_buffer_file_parent_directory
=
D:/test-data/data/buffer
#缓存数据文件最大长度(单位:byte)
buffer.data_file_max_length
=
10240
#每次Flush的缓存数据的个数
buffer.flush_number_of_cache
=
30
#最大持久化的线程数量
persistence.max_thread_number
=
1
#定位文件时,每次读取偏移量跳过大小
persistence.offset_file_skip_length
=
2048
#每次读取文件偏移量大小
persistence.offset_file_read_buffer_size
=
2048
#处理文件完成之后,等待时间(单位:毫秒)
persistence.switch_file_wait_time
=
5000
#偏移量注册文件的目录
registerpersistence.register_file_parent_directory
=
D:/test-data/data/offset
#偏移量注册文件名
registerpersistence.register_file_name
=
offset.txt
#偏移量注册备份文件名
registerpersistence.register_bak_file_name
=
offset.txt.bak
#偏移量写入文件等待周期(单位:毫秒)
registerpersistence.offset_written_file_wait_cycle
=
5000
\ No newline at end of file
skywalking-server/installer/config/log4j2.xml
已删除
100644 → 0
浏览文件 @
181482f2
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"debug"
>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<PatternLayout
pattern=
"%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"
/>
</Console>
</Appenders>
<Loggers>
<Root
level=
"debug"
>
<AppenderRef
ref=
"Console"
/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
skywalking-server/pom.xml
浏览文件 @
784c54cc
...
...
@@ -41,12 +41,28 @@
<executions>
<execution>
<id>
copy-resources
</id>
<phase>
pre-integration-test
</phase>
<phase>
install
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/installer/config
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
false
</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>
copy-start-script
</id>
<phase>
install
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<outputDirectory>
${project.b
asedir}/installer/config
</outputDirectory>
<outputDirectory>
${project.b
uild.directory}/installer/bin
</outputDirectory>
<resources>
<resource>
<directory>
src/main/resources
</directory>
...
...
@@ -69,11 +85,42 @@
</execution>
</executions>
<configuration>
<outputDirectory>
${project.b
asedir
}/installer/lib
</outputDirectory>
<outputDirectory>
${project.b
uild.directory
}/installer/lib
</outputDirectory>
<excludeTransitive>
false
</excludeTransitive>
<stripVersion>
true
</stripVersion>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-jar-plugin
</artifactId>
<configuration>
<excludes>
<exclude>
*.properties
</exclude>
<exclude>
*.xml
</exclude>
</excludes>
<finalName>
sky-walking-server
</finalName>
<outputDirectory>
${project.build.directory}/installer/lib
</outputDirectory>
</configuration>
</plugin>
<plugin>
<artifactId>
maven-antrun-plugin
</artifactId>
<executions>
<execution>
<id>
clean
</id>
<phase>
package
</phase>
<goals>
<goal>
run
</goal>
</goals>
<configuration>
<tasks>
<mkdir
dir=
"${project.build.directory}/installer/data/buffer"
/>
<mkdir
dir=
"${project.build.directory}/installer/data/offset"
/>
<mkdir
dir=
"${project.build.directory}/installer/log"
/>
<mkdir
dir=
"${project.build.directory}/installer/bin"
/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录