From ac491464ab746462bb5282cfccf30e876904df99 Mon Sep 17 00:00:00 2001 From: ascrutae Date: Thu, 29 Sep 2016 09:54:23 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=94=AF=E6=8C=81Motan=E6=A1=86=E6=9E=B6=202?= =?UTF-8?q?.=E4=BF=AE=E5=A4=8D=E6=9C=8D=E5=8A=A1=E7=AB=AF=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../motan-plugin/pom.xml | 48 ++++++++++++++++++ .../plugin/motan/IdentificationUtil.java | 43 ++++++++++++++++ .../plugin/motan/MotanBuriedPointType.java | 32 ++++++++++++ .../plugin/motan/MotanClientInterceptor.java | 49 +++++++++++++++++++ .../plugin/motan/MotanServerInterceptor.java | 41 ++++++++++++++++ .../motan/define/MotanClientDefine.java | 22 +++++++++ .../motan/define/MotanServerDefine.java | 23 +++++++++ .../src/main/resources/skywalking-plugin.def | 2 + .../a/eye/skywalking/plugin/motan/Client.java | 30 ++++++++++++ .../skywalking/plugin/motan/FooService.java | 5 ++ .../plugin/motan/FooServiceImpl.java | 12 +++++ .../a/eye/skywalking/plugin/motan/Server.java | 27 ++++++++++ .../src/test/resources/motan_client.xml | 11 +++++ .../src/test/resources/motan_server.xml | 12 +++++ .../src/test/resources/sky-walking.auth | 45 +++++++++++++++++ .../skywalking-sdk-plugin/pom.xml | 3 +- skywalking-server/bin/swserver.sh | 3 +- 17 files changed, 406 insertions(+), 2 deletions(-) create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/pom.xml create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/IdentificationUtil.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanBuriedPointType.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanClientInterceptor.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanServerInterceptor.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanClientDefine.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanServerDefine.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/resources/skywalking-plugin.def create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Client.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooService.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooServiceImpl.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Server.java create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_client.xml create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_server.xml create mode 100644 skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/sky-walking.auth diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/pom.xml b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/pom.xml new file mode 100644 index 000000000..5459c261a --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/pom.xml @@ -0,0 +1,48 @@ + + + skywalking-sdk-plugin + com.a.eye + 2.0-2016 + + 4.0.0 + + motan-plugin + jar + + motan-plugin + http://maven.apache.org + + + UTF-8 + + + + + + com.weibo + motan-core + 0.2.1 + provided + + + com.weibo + motan-transport-netty + 0.2.1 + provided + + + com.weibo + motan-springsupport + 0.2.1 + provided + + + + org.springframework + spring-context + 4.2.4.RELEASE + test + + + diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/IdentificationUtil.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/IdentificationUtil.java new file mode 100644 index 000000000..2b22e60bc --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/IdentificationUtil.java @@ -0,0 +1,43 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.model.Identification; +import com.weibo.api.motan.rpc.Request; +import com.weibo.api.motan.rpc.URL; + +import java.util.Map; + +public class IdentificationUtil { + /** + * for example: + *

+ * service URL : motan://172.18.80.208:0/org.a.eye.skywalking.motan + * .FooService?group=default_rpc + * execute method : helloWorld + * execute parameter: java.lang.String,java.lang.String + *

+ *

+ * view point: motan://172.18.80.208:0/org.a.eye.skywalking.motan.FooService.helloWorld + * (java.lang.String,java.lang.String)?group=default_rpc + * + * @param serviceURI such as: motan://172.18.80.208:0/org.a.eye.skywalking.motan.FooService?group=default_rpc + * @param request + * @return such as: motan://172.18.80.208:0/org.a.eye.skywalking.motan.FooService.helloWorld + * (java.lang.String,java.lang.String)?group=default_rpc + */ + private static String generateViewPoint(URL serviceURI, Request request) { + StringBuilder viewPoint = new StringBuilder(serviceURI.getUri()); + viewPoint.append("." + request.getMethodName()); + viewPoint.append("(" + request.getParamtersDesc() + ")?group=" + serviceURI.getGroup()); + return viewPoint.toString(); + } + + /** + * @param request + * @param serviceURI such as: motan://172.18.80.208:0/org.a.eye.skywalking.motan.FooService?group=default_rpc + * @return + */ + public static Identification generateIdentify(Request request, URL serviceURI) { + return Identification.newBuilder().viewPoint(generateViewPoint(serviceURI, request)) + .spanType(MotanBuriedPointType.instance()).build(); + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanBuriedPointType.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanBuriedPointType.java new file mode 100644 index 000000000..e7e1b5786 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanBuriedPointType.java @@ -0,0 +1,32 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.api.IBuriedPointType; +import com.a.eye.skywalking.protocol.common.CallType; + +public class MotanBuriedPointType implements IBuriedPointType { + + private static MotanBuriedPointType motanBuriedPointType; + + public static IBuriedPointType instance() { + if (motanBuriedPointType == null) { + motanBuriedPointType = new MotanBuriedPointType(); + } + + return motanBuriedPointType; + } + + @Override + public String getTypeName() { + return "M"; + } + + @Override + public CallType getCallType() { + return CallType.SYNC; + } + + private MotanBuriedPointType() { + //Non + } + +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanClientInterceptor.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanClientInterceptor.java new file mode 100644 index 000000000..f70462bf7 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanClientInterceptor.java @@ -0,0 +1,49 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.invoke.monitor.RPCClientInvokeMonitor; +import com.a.eye.skywalking.model.ContextData; +import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.ConstructorInvokeContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor; +import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult; +import com.weibo.api.motan.rpc.Request; +import com.weibo.api.motan.rpc.URL; + +import static com.a.eye.skywalking.plugin.motan.IdentificationUtil.generateIdentify; + +/** + * Motan client interceptor + */ +public class MotanClientInterceptor implements InstanceMethodsAroundInterceptor { + @Override + public void onConstruct(EnhancedClassInstanceContext context, ConstructorInvokeContext interceptorContext) { + context.set("serviceURI", interceptorContext.allArguments()[1]); + } + + @Override + public void beforeMethod(EnhancedClassInstanceContext context, InstanceMethodInvokeContext interceptorContext, + MethodInterceptResult result) { + Request request = (Request) interceptorContext.allArguments()[0]; + if (request != null) { + ContextData contextData = new RPCClientInvokeMonitor() + .beforeInvoke(generateIdentify(request, (URL) context.get("serviceURI"))); + String contextDataStr = contextData.toString(); + request.setAttachment("contextData", contextDataStr); + } + } + + @Override + public Object afterMethod(EnhancedClassInstanceContext context, InstanceMethodInvokeContext interceptorContext, + Object ret) { + new RPCClientInvokeMonitor().afterInvoke(); + return ret; + } + + @Override + public void handleMethodException(Throwable t, EnhancedClassInstanceContext context, + InstanceMethodInvokeContext interceptorContext) { + new RPCClientInvokeMonitor().occurException(t); + } + +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanServerInterceptor.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanServerInterceptor.java new file mode 100644 index 000000000..1d0d49c64 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/MotanServerInterceptor.java @@ -0,0 +1,41 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.invoke.monitor.RPCServerInvokeMonitor; +import com.a.eye.skywalking.model.ContextData; +import com.a.eye.skywalking.plugin.interceptor.EnhancedClassInstanceContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.ConstructorInvokeContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodInvokeContext; +import com.a.eye.skywalking.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor; +import com.a.eye.skywalking.plugin.interceptor.enhance.MethodInterceptResult; +import com.weibo.api.motan.rpc.Request; +import com.weibo.api.motan.rpc.URL; + +public class MotanServerInterceptor implements InstanceMethodsAroundInterceptor { + @Override + public void onConstruct(EnhancedClassInstanceContext context, ConstructorInvokeContext interceptorContext) { + context.set("serviceURI", interceptorContext.allArguments()[0]); + } + + @Override + public void beforeMethod(EnhancedClassInstanceContext context, InstanceMethodInvokeContext interceptorContext, + MethodInterceptResult result) { + Request request = (Request) interceptorContext.allArguments()[0]; + if (request != null) { + new RPCServerInvokeMonitor().beforeInvoke(new ContextData(request.getAttachments().get("contextData")), + IdentificationUtil.generateIdentify(request, (URL) context.get("serviceURI"))); + } + } + + @Override + public Object afterMethod(EnhancedClassInstanceContext context, InstanceMethodInvokeContext interceptorContext, + Object ret) { + new RPCServerInvokeMonitor().afterInvoke(); + return ret; + } + + @Override + public void handleMethodException(Throwable t, EnhancedClassInstanceContext context, + InstanceMethodInvokeContext interceptorContext) { + new RPCServerInvokeMonitor().occurException(t); + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanClientDefine.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanClientDefine.java new file mode 100644 index 000000000..5fbf9cc42 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanClientDefine.java @@ -0,0 +1,22 @@ +package com.a.eye.skywalking.plugin.motan.define; + +import com.a.eye.skywalking.plugin.interceptor.MethodMatcher; +import com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine; +import com.a.eye.skywalking.plugin.interceptor.matcher.SimpleMethodMatcher; + +public class MotanClientDefine extends ClassInstanceMethodsEnhancePluginDefine { + @Override + protected String enhanceClassName() { + return "com.weibo.api.motan.rpc.AbstractReferer"; + } + + @Override + protected MethodMatcher[] getInstanceMethodsMatchers() { + return new MethodMatcher[] {new SimpleMethodMatcher("call")}; + } + + @Override + protected String getInstanceMethodsInterceptor() { + return "com.a.eye.skywalking.plugin.motan.MotanClientInterceptor"; + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanServerDefine.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanServerDefine.java new file mode 100644 index 000000000..703196f83 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/java/com/a/eye/skywalking/plugin/motan/define/MotanServerDefine.java @@ -0,0 +1,23 @@ +package com.a.eye.skywalking.plugin.motan.define; + +import com.a.eye.skywalking.plugin.interceptor.MethodMatcher; +import com.a.eye.skywalking.plugin.interceptor.enhance.ClassInstanceMethodsEnhancePluginDefine; +import com.a.eye.skywalking.plugin.interceptor.matcher.SimpleMethodMatcher; + +public class MotanServerDefine extends ClassInstanceMethodsEnhancePluginDefine { + + @Override + protected String enhanceClassName() { + return "com.weibo.api.motan.rpc.AbstractProvider"; + } + + @Override + protected MethodMatcher[] getInstanceMethodsMatchers() { + return new MethodMatcher[] {new SimpleMethodMatcher("call")}; + } + + @Override + protected String getInstanceMethodsInterceptor() { + return "com.a.eye.skywalking.plugin.motan.MotanServerInterceptor"; + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/resources/skywalking-plugin.def b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/resources/skywalking-plugin.def new file mode 100644 index 000000000..e70bf5478 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/main/resources/skywalking-plugin.def @@ -0,0 +1,2 @@ +com.a.eye.skywalking.plugin.motan.define.MotanClientDefine +com.a.eye.skywalking.plugin.motan.define.MotanServerDefine diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Client.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Client.java new file mode 100644 index 000000000..d4e881e28 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Client.java @@ -0,0 +1,30 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.plugin.PluginException; +import com.a.eye.skywalking.plugin.TracingBootstrap; +import com.a.eye.skywalking.testframework.api.RequestSpanAssert; +import org.junit.Test; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +import java.lang.reflect.InvocationTargetException; + +/** + * Created by xin on 16/9/27. + */ +public class Client { + @Test + public void test() + throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, + PluginException { + TracingBootstrap.main(new String[] {Client.class.getName()}); + } + + public static void main(String[] args) throws InterruptedException { + ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:motan_client.xml"); + FooService service = (FooService) ctx.getBean("remoteService"); + System.out.println(service.hello("motan", "1")); + RequestSpanAssert + .assertEquals(new String[][] {{"0", "motan://localhost:8002/com.a.eye.skywalking.plugin.motan.FooService.hello(java.lang.String,java.lang.String)?group=default_rpc", ""}}); + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooService.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooService.java new file mode 100644 index 000000000..e4717bef5 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooService.java @@ -0,0 +1,5 @@ +package com.a.eye.skywalking.plugin.motan; + +public interface FooService { + public String hello(String name, String value); +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooServiceImpl.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooServiceImpl.java new file mode 100644 index 000000000..194bdfbd0 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/FooServiceImpl.java @@ -0,0 +1,12 @@ +package com.a.eye.skywalking.plugin.motan; + +/** + * Created by xin on 16/9/27. + */ +public class FooServiceImpl implements FooService { + + public String hello(String name, String value) { + System.out.println(name + " invoked rpc service"); + return "hello " + name + " " + value; + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Server.java b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Server.java new file mode 100644 index 000000000..50bc0e8a1 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/java/com/a/eye/skywalking/plugin/motan/Server.java @@ -0,0 +1,27 @@ +package com.a.eye.skywalking.plugin.motan; + +import com.a.eye.skywalking.plugin.PluginException; +import com.a.eye.skywalking.plugin.TracingBootstrap; +import org.junit.Test; +import org.springframework.context.ApplicationContext; +import org.springframework.context.support.ClassPathXmlApplicationContext; + +import java.lang.reflect.InvocationTargetException; + +public class Server { + @Test + public void test() + throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, + PluginException { + TracingBootstrap.main(new String[] {Server.class.getName()}); + } + + public static void main(String[] args) throws InterruptedException { + ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:motan_server.xml"); + System.out.println("server start..."); + + while (true) { + Thread.sleep(100000L); + } + } +} diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_client.xml b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_client.xml new file mode 100644 index 000000000..171756cbb --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_client.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_server.xml b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_server.xml new file mode 100644 index 000000000..10f893109 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/motan_server.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/sky-walking.auth b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/sky-walking.auth new file mode 100644 index 000000000..ff0b6dcf1 --- /dev/null +++ b/skywalking-collector/skywalking-sdk-plugin/motan-plugin/src/test/resources/sky-walking.auth @@ -0,0 +1,45 @@ +#skyWalking用户ID +skywalking.user_id=123 +#skyWalking应用编码 +skywalking.application_code=test +#skywalking auth的环境变量名字 +skywalking.auth_system_env_name=SKYWALKING_RUN +#skywalking数据编码 +skywalking.charset=UTF-8 +skywalking.auth_override=true + +#是否打印数据 +buriedpoint.printf=true +#埋点异常的最大长度 +buriedpoint.max_exception_stack_length=4000 +#业务字段的最大长度 +buriedpoint.businesskey_max_length=300 +#过滤异常 +buriedpoint.exclusive_exceptions=java.lang.RuntimeException + +#最大发送者的连接数阀比例 +sender.connect_percent=100 +#发送服务端配置 +sender.servers_addr=127.0.0.1:34000 +#最大发送的副本数量 +sender.max_copy_num=2 +#发送的最大长度 +sender.max_send_length=20000 +#当没有Sender时,尝试获取sender的等待周期 +sender.retry_get_sender_wait_interval=2000 + +#最大消费线程数 +consumer.max_consumer=0 +#消费者最大等待时间 +consumer.max_wait_time=5 +#发送失败等待时间 +consumer.consumer_fail_retry_wait_interval=50 + +#每个Buffer的最大个数 +buffer.buffer_max_size=18000 +#Buffer池的最大长度 +buffer.pool_size=5 + +#发送检查线程检查周期 +senderchecker.check_polling_time=200 + diff --git a/skywalking-collector/skywalking-sdk-plugin/pom.xml b/skywalking-collector/skywalking-sdk-plugin/pom.xml index ecadf17b8..b8b3e9cbf 100644 --- a/skywalking-collector/skywalking-sdk-plugin/pom.xml +++ b/skywalking-collector/skywalking-sdk-plugin/pom.xml @@ -17,7 +17,8 @@ jedis-2.x-plugin tomcat-7.x-8.x-plugin custom-local-method-interceptor-plugin - + motan-plugin + pom skywalking-sdk-plugin diff --git a/skywalking-server/bin/swserver.sh b/skywalking-server/bin/swserver.sh index c1eea09c5..e1b9169c0 100644 --- a/skywalking-server/bin/swserver.sh +++ b/skywalking-server/bin/swserver.sh @@ -48,4 +48,5 @@ echo "CLASSPATH=$CLASSPATH" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" -$JAVA ${JAVA_OPTS} -classpath $CLASSPATH com.ai.cloud.skywalking.reciever.CollectionServer >> ${SW_SERVER_BIN_DIR}/../log/sw-server.log & 2>&1& +$JAVA ${JAVA_OPTS} -classpath $CLASSPATH com.a.eye.skywalking.reciever.CollectionServer >> ${SW_SERVER_BIN_DIR}/. +./log/sw-server.log & 2>&1&