Giter Site home page Giter Site logo

pyramid_metrics's People

Contributors

hadrien avatar jrwren avatar pior avatar

Stargazers

 avatar

Watchers

 avatar  avatar

pyramid_metrics's Issues

UDP listeners leak.

I noticed this using uwsgi to host our application. Now I do not think it is uwsgi related.

lsof -p <mypid> shows many UDP listeners

...
uwsgi_pyt 8855 myapp 1014u  IPv4           61164162      0t0      UDP *:37440
uwsgi_pyt 8855 myapp 1015u  IPv4           61164204      0t0      UDP *:50661
uwsgi_pyt 8855 myapp 1016u  IPv4           61165045      0t0      UDP *:59752
uwsgi_pyt 8855 myapp 1017u  IPv4           61164224      0t0      UDP *:49717
uwsgi_pyt 8855 myapp 1018u  IPv4           61164375      0t0      UDP *:46519
uwsgi_pyt 8855 myapp 1019u  IPv4           61164441      0t0      UDP *:47617
uwsgi_pyt 8855 myapp 1020u  IPv4           61165421      0t0      UDP *:50587
uwsgi_pyt 8855 myapp 1021u  IPv4           61165334      0t0      UDP *:48802
uwsgi_pyt 8855 myapp 1022u  IPv4           61165425      0t0      UDP *:40760
uwsgi_pyt 8855 myapp 1023u  IPv4           61165372      0t0      UDP *:47147
...

The per request StatsClient object may get garbage collected, but the socket listener resource is never cleaned up. This ultimately causes us to run out of file descriptors.

Cannot install latest release version (v0.3.0) with pip - new release?

Installing v0.3.0 which is on pypi (or v0.3.1 from GH) fails with a substitution error:

bash-4.4# pip install https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
  Downloading https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
     | 317kB 23.0MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-req-build-QkpX0S/setup.py", line 43, in <module>
        'de = devup.app:cli',
      File "/opt/conda/envs/dlweb/lib/python2.7/distutils/core.py", line 124, in setup
        dist.parse_config_files()
      File "/opt/conda/envs/dlweb/lib/python2.7/distutils/dist.py", line 397, in parse_config_files
        val = parser.get(section,opt)
      File "/opt/conda/envs/dlweb/lib/python2.7/ConfigParser.py", line 623, in get
        return self._interpolate(section, option, value, d)
      File "/opt/conda/envs/dlweb/lib/python2.7/ConfigParser.py", line 669, in _interpolate
        option, section, rawval, e.args[0])
    ConfigParser.InterpolationMissingOptionError: Bad value substitution:
        section: [zest.releaser]
        option : tag-format
        key    : version
        rawval : v%%(version)s


    ----------------------------------------

Installing from the latest commit (e9f1325) works fine. Is it possible to make a release with this fix to pypi?

Additionally, I'm using statsd 3.2.2 and it seems to work ok with pyramid_metrics, however the setup.py file for pyramid_metrics forces <2.2 -- is there any reason for this or is it just out of date?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.