Loading apm-collector/apm-collector-boot/bin/collectorService.bat 0 → 100644 +21 −0 Original line number Diff line number Diff line @echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" org.skywalking.apm.collector.boot.CollectorBootStartUp endlocal apm-collector/apm-collector-boot/bin/collectorService.sh 0 → 100644 +34 −0 Original line number Diff line number Diff line #!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` [ -z "$COLLECTOR_HOME" ] && COLLECTOR_HOME=`cd "$PRGDIR/.." >/dev/null; pwd` COLLECT_LOG_DIR="${COLLECTOR_HOME}/logs" JAVA_OPTS=" -Xms256M -Xmx512M" if [ ! -d "${COLLECTOR_HOME}/logs" ]; then mkdir -p "${COLLECT_LOG_DIR}" fi _RUNJAVA=${JAVA_HOME}/bin/java [ -z "$JAVA_HOME" ] && _RUNJAVA=java CLASSPATH="$COLLECTOR_HOME/config:$CLASSPATH" for i in "$COLLECTOR_HOME"/libs/*.jar do CLASSPATH="$i:$CLASSPATH" done WEBUI_OPTIONS=" -Dcollector.logDir=${COLLECT_LOG_DIR}" eval exec "\"$_RUNJAVA\" ${JAVA_OPTS} ${WEBUI_OPTIONS} -classpath $CLASSPATH org.skywalking.apm.collector.boot.CollectorBootStartUp \ 2>${COLLECT_LOG_DIR}/collector.log 1> /dev/null &" if [ $? -eq 0 ]; then sleep 1 echo "Skywalking Web started successfully!" else echo "Skywalking Web started failure!" exit 1 fi apm-collector/apm-collector-boot/bin/startup.bat 0 → 100644 +5 −0 Original line number Diff line number Diff line @echo off setlocal call "%~dp0"\collectorService.bat start endlocal apm-collector/apm-collector-boot/bin/startup.sh 0 → 100644 +7 −0 Original line number Diff line number Diff line #!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` EXECUTABLE=collectorService.sh exec "$PRGDIR"/"$EXECUTABLE" start apm-collector/apm-collector-boot/pom.xml +52 −1 Original line number Diff line number Diff line Loading @@ -144,4 +144,55 @@ </dependency> <!-- cache provider --> </dependencies> <build> <finalName>Skywalking-Collector</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compiler.version}</source> <target>${compiler.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <configuration> <excludes> <exclude>application.yml</exclude> <exclude>log4j2.xml</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/assembly/assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> Loading
apm-collector/apm-collector-boot/bin/collectorService.bat 0 → 100644 +21 −0 Original line number Diff line number Diff line @echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" org.skywalking.apm.collector.boot.CollectorBootStartUp endlocal
apm-collector/apm-collector-boot/bin/collectorService.sh 0 → 100644 +34 −0 Original line number Diff line number Diff line #!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` [ -z "$COLLECTOR_HOME" ] && COLLECTOR_HOME=`cd "$PRGDIR/.." >/dev/null; pwd` COLLECT_LOG_DIR="${COLLECTOR_HOME}/logs" JAVA_OPTS=" -Xms256M -Xmx512M" if [ ! -d "${COLLECTOR_HOME}/logs" ]; then mkdir -p "${COLLECT_LOG_DIR}" fi _RUNJAVA=${JAVA_HOME}/bin/java [ -z "$JAVA_HOME" ] && _RUNJAVA=java CLASSPATH="$COLLECTOR_HOME/config:$CLASSPATH" for i in "$COLLECTOR_HOME"/libs/*.jar do CLASSPATH="$i:$CLASSPATH" done WEBUI_OPTIONS=" -Dcollector.logDir=${COLLECT_LOG_DIR}" eval exec "\"$_RUNJAVA\" ${JAVA_OPTS} ${WEBUI_OPTIONS} -classpath $CLASSPATH org.skywalking.apm.collector.boot.CollectorBootStartUp \ 2>${COLLECT_LOG_DIR}/collector.log 1> /dev/null &" if [ $? -eq 0 ]; then sleep 1 echo "Skywalking Web started successfully!" else echo "Skywalking Web started failure!" exit 1 fi
apm-collector/apm-collector-boot/bin/startup.bat 0 → 100644 +5 −0 Original line number Diff line number Diff line @echo off setlocal call "%~dp0"\collectorService.bat start endlocal
apm-collector/apm-collector-boot/bin/startup.sh 0 → 100644 +7 −0 Original line number Diff line number Diff line #!/usr/bin/env sh PRG="$0" PRGDIR=`dirname "$PRG"` EXECUTABLE=collectorService.sh exec "$PRGDIR"/"$EXECUTABLE" start
apm-collector/apm-collector-boot/pom.xml +52 −1 Original line number Diff line number Diff line Loading @@ -144,4 +144,55 @@ </dependency> <!-- cache provider --> </dependencies> <build> <finalName>Skywalking-Collector</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${compiler.version}</source> <target>${compiler.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.4.3</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.3.2</version> <configuration> <excludes> <exclude>application.yml</exclude> <exclude>log4j2.xml</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/assembly/assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>