You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/08/07 09:21:58 UTC

[GitHub] [skywalking] tmacjx opened a new issue #5263: uwsgi not work with skywalking-py

tmacjx opened a new issue #5263:
URL: https://github.com/apache/skywalking/issues/5263


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [ ] Question or discussion
   - [ ] Bug
      We test skyworking-py work with flask and uwsgi.  When Just run with Python,  it's ok
      But with uwsgi, we can't see any report log even can't find report in web page.
      When work with Gunicron, everthing look ok.So confuse.Any one help?
   
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   
   ___
   ### Bug
   - Which version of SkyWalking, OS and JRE?
   
   - Which company or project?
   
   - What happened?
   If possible, provide a way to reproduce the error. e.g. demo application, component version.
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo below
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal,  I even change the line of gevent monkey patch_all to below of sky-walking init code, but no effect.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   If we don't use gevent, The server concurrent very low, and can't use in production!
   My enviroment version info:
   flask 0.12
   gevent 1.4.0
   Python3.4   sw_tornado plugin use async which only support python3.6+, so we uninstall sw_tornado.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   `
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   `
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 edited a comment on issue #5263: Python agent doesn't work with gevent monkey

Posted by GitBox <gi...@apache.org>.
kezhenxu94 edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-678732774


   @tmacjx hello, after some experiments and search, I finally found that there is an issue https://github.com/grpc/grpc/issues/4629 and the workaround is in this [comment](https://github.com/grpc/grpc/issues/4629#issuecomment-376962677), the following is a runnable demo
   
   ```python
   from gevent import monkey
   monkey.patch_all()
   
   import grpc.experimental.gevent as grpc_gevent     # key point
   grpc_gevent.init_gevent()   # key point
   
   
   from skywalking import config, agent
   
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='127.0.0.1:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   
   
   app.run('0.0.0.0', 9090)
   ```
   
   if you have any further question, please let us know, thanks for using SkyWalking-Python and giving feedback :)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo blow
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal.
   I even change the line of gevent monkey patch_all to blow of sky-walking init code, but no effect.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   If we don't use gevent, The server concurrent very low, and can't use in production!
   My enviroment version info:
   flask 0.12
   gevent 1.4.0
   Python3.4   sw_tornado plugin use async which only support python3.6+, so we uninstall sw_tornado.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 closed issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
kezhenxu94 closed issue #5263:
URL: https://github.com/apache/skywalking/issues/5263


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo blow
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   If we don't use gevent, The server concurrent very low, and can't use in production!
   my event version info:
   flask 0.12
   gevent 1.4.0
   Python3.4   sw_tornado plugin use aync which only support python3.6+, so we uninstall sw_tornado.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo blow
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] alonelaval commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
alonelaval commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-671378544


   I used flask to test in the environment of gunicorn, it can run normally.
   
   ```
   import requests
   
   from skywalking import config, agent
   
   
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.flask_collect_http_params = True
   agent.start()
   
   from flask import Flask, jsonify
   
   app = Flask(__name__)
   
   @app.route("/users", methods=["POST", "GET"])
   def application():
       requests.post("http://github.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   command:`gunicorn -w 4 test_gunicorn:app` 
   
   when i use `uwsgi --http 127.0.0.1:8000 --buffer-size=65536 --processes=4 --module test_gunicorn:app `  still work well,but segment report slowed。
   ![image](https://user-images.githubusercontent.com/1763449/89791766-4e90bc00-db56-11ea-9e58-b6e945e28a98.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674773449


   So confuse, When I run demo with gevent demo. I post a request, log show nothing, the grpc show IDEL. 
   But when I ctrl+c,  the grpc show READY
   when I ctrl + c again, the server start normal.
   More detail can see in picture.
   ![cc](https://user-images.githubusercontent.com/11555807/90381262-b2176e00-e0af-11ea-8647-dde8feef389b.jpg)
   ![image](https://user-images.githubusercontent.com/11555807/90381290-bc396c80-e0af-11ea-81f5-69a6ac296b0b.png)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674773449


   So confuse, When I run demo with gevent demo. I post a request, log show nothing, the grpc show IDEL. 
   But when I ctrl+c,  the grpc show READY
   when I ctrl + c again, the server start normal.
   More detail can see in picture.
   
   **1.First  Run**
   ![cc](https://user-images.githubusercontent.com/11555807/90381262-b2176e00-e0af-11ea-8647-dde8feef389b.jpg)
   
   **2. ctrl + c**
   ![image](https://user-images.githubusercontent.com/11555807/90381573-23efb780-e0b0-11ea-9383-af5e767ae3dd.png)
   
   **3 ctr + c again**
   ![image](https://user-images.githubusercontent.com/11555807/90381290-bc396c80-e0af-11ea-81f5-69a6ac296b0b.png)
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-678732774


   @tmacjx hello, after some experiments and search, I finally found that there is an issue https://github.com/grpc/grpc/issues/4629 and the workaround is in this [comment](https://github.com/grpc/grpc/issues/4629#issuecomment-376962677), the following is a runnable demo
   
   ```python
   from gevent import monkey
   monkey.patch_all()
   
   import grpc.experimental.gevent as grpc_gevent
   grpc_gevent.init_gevent()
   
   
   from skywalking import config, agent
   
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='127.0.0.1:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   
   
   app.run('0.0.0.0', 9090)
   ```
   
   if you have any further question, please let us know, thanks for using SkyWalking-Python and giving feedback :)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo blow
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   But when I use gevent mode,  the server not start normal,  I even change the line of gevent monkey patch_all to blow of sky-walking init code, but no effect.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   If we don't use gevent, The server concurrent very low, and can't use in production!
   My enviroment version info:
   flask 0.12
   gevent 1.4.0
   Python3.4   sw_tornado plugin use async which only support python3.6+, so we uninstall sw_tornado.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-673894016


   @tmacjx can you share which version of Flask are you using, I suspect that it's because of version incompatible issue, now we have version-ized the plugins, and we'll come back to this issue after we determine all versions that the current plugins support, but before that if you could share more details of your case, we may get it resolved more quickly


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] alonelaval edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
alonelaval edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-671378544


   @tmacjx
   I used flask to test in the environment of gunicorn, it can run normally.
   
   ```
   import requests
   
   from skywalking import config, agent
   
   
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.flask_collect_http_params = True
   agent.start()
   
   from flask import Flask, jsonify
   
   app = Flask(__name__)
   
   @app.route("/users", methods=["POST", "GET"])
   def application():
       requests.post("http://github.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   command:`gunicorn -w 4 test_gunicorn:app` 
   
   when i use `uwsgi --http 127.0.0.1:8000 --buffer-size=65536 --processes=4 --module test_gunicorn:app `  still work well,but segment report slowed。
   ![image](https://user-images.githubusercontent.com/1763449/89791766-4e90bc00-db56-11ea-9e58-b6e945e28a98.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674755440


   My test demo blow
   ```
   from gevent import monkey
   monkey.patch_all()
   
   from skywalking import config, agent
   config.service_name = 'consumer'
   config.logging_level = 'DEBUG'
   config.disable_plugins = 'sw_tornado'
   config.init(collector='192.168.1.241:11800', service='app')
   agent.start()
   
   
   import requests
   
   from flask import Flask, jsonify
   
   
   app = Flask(__name__)
   
   
   @app.route("/users", methods=["POST", "GET"])
   def view():
       requests.post("http://baidu.com")
   
       return jsonify({"test": "hello world"})
   ```
   
   thanks,you guys advice.
   I think most import reason is sky-walking not support gevent mode.
   When I comment gevent monkey patch_all, log show well, server start with port and report log well.
   I even change the line of gevent monkey patch_all to blow of sky-walking init code, but no effect.
   But when I use gevent mode,  the server not start normal.
   
   ![a](https://user-images.githubusercontent.com/11555807/90377651-dde42500-e0aa-11ea-8745-f7464a30f78e.jpg)
   ![b](https://user-images.githubusercontent.com/11555807/90377660-e0df1580-e0aa-11ea-8c11-b87b14522247.jpg)
   
   If we don't use gevent, The server concurrent very low, and can't use in production!
   My enviroment version info:
   flask 0.12
   gevent 1.4.0
   Python3.4   sw_tornado plugin use async which only support python3.6+, so we uninstall sw_tornado.
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] tmacjx edited a comment on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
tmacjx edited a comment on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674773449


   So confuse, When I run demo with gevent demo. I post a request, log show nothing, the grpc show IDEL. 
   But when I ctrl+c,  the grpc show READY
   when I ctrl + c again, the server start normal.
   More detail can see in picture.
   
   **1.First  Run**
   ![cc](https://user-images.githubusercontent.com/11555807/90381262-b2176e00-e0af-11ea-8647-dde8feef389b.jpg)
   
   **2. ctrl + c**
   ![image](https://user-images.githubusercontent.com/11555807/90381573-23efb780-e0b0-11ea-9383-af5e767ae3dd.png)
   
   **3 ctr + c again**
   ![image](https://user-images.githubusercontent.com/11555807/90381290-bc396c80-e0af-11ea-81f5-69a6ac296b0b.png)
   
   
   So I guess  some wrong with GRPC init???


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #5263: uwsgi not work with skywalking-py

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-670431355


   We don't support uwsgi for now, contributions are welcome


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] kezhenxu94 commented on issue #5263: Python agent supports uwsgi

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on issue #5263:
URL: https://github.com/apache/skywalking/issues/5263#issuecomment-674758464


   @tmacjx thanks very much for further information, we'll take a detailed look and try to support gevent mode, will update here if any progress is made


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org