用户工具

站点工具


linux:dubbo

mod_dubboreadmedubbo-samples

  • tengine:官网文档有误,dubbo_pass对变量支持不好
upstream dubbo_backend {
        multi 3;
        server 127.0.0.1:20880;
}
server {
        server_name  dubbo.xlongwei.com;
        location /demo/tengineDubbo {
            dubbo_pass_all_headers on;
            dubbo_pass_set args $args;
            dubbo_pass_set uri $uri;
            dubbo_pass_set method $request_method;
            dubbo_pass org.apache.dubbo.samples.tengine.DemoService 0.0.0 tengineDubbo dubbo_backend;
        dubbo_connect_timeout 2s;
        dubbo_send_timeout 3s;
        dubbo_read_timeout 3s;
        }
}
  • dubbo
git clone git://github.com/apache/dubbo-samples.git
cd ./dubbo-samples/dubbo-samples-tengine
mvn package
cd dubbo-samples-tengine-provider/target/
java -Djava.net.preferIPv4Stack=true -jar dubbo-demo-provider.one-jar.jar

java -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Xmx84m -Xms84m -XX:NewSize=20m -XX:MaxNewSize=20m -XX:SurvivorRatio=8 -Xss228k -jar target/dubbo-demo-provider.one-jar.jar

curl http://dubbo.xlongwei.com/demo/tengineDubbo -i
#http_load测试结果不如light-4j

#dubbo.properties
dubbo.application.qos.enable=false
#dubbo-demo-provider.xml
<dubbo:registry address="N/A"/>
linux/dubbo.txt · 最后更改: 2021/02/23 18:14 由 admin