Comments (8)
I am unable to produce this error. Can you provide some information on your stud build options (using ssl cache?), libev version and some info on the client setup please?
I ran 5 httperf instances, each with 1000 concurrent connections fetching a 48M file and found other issues (which I'll be addressing), but not that one.
Thanks!
from stud.
Hi,
I'm using libev 4.04 and openssl 1.0.0d.
And starting it with: ./stud --tls -b 127.0.0.1,21100 -f 0.0.0.0,21111 -n 2 -B 1000 server.pem
The client is a python based client (using twisted) that open an ssl connection (isn't http, but a inhouse protocol over tcp) and keep it open for some random time.
from stud.
So, just glancing at one of my machines, I have a -n 16 instance of stud running for about 4 weeks that's used about 10 CPU-days in that time, and I haven't run into that. But... it's possible my connections are not as long-lived as yours--mine seldom last more than an hour or two.
How long are these connections being held open? Any more details about OS and version? amd64 or x86? etc
from stud.
Also, related to the platform questions, do you know which libev backend is being used on your stud build? epoll, kqueue, select, etc. Something about that error makes me wonder if you exceeded a max fd count for a particular backend (select, etc). Mine are all using epoll on linux.
from stud.
Hi,
I these tests, long-lived means N minutes...not even close to an hour. The max time a connection is held open is 30 minutes, but there are also connections that only live 1 minute.
I'm using a vm (kvm): Ubuntu 10.04 amd64, with openssl-1.0.0d and libev-4.04 (both backported from oneiric archive)
I don't know how to tell which libev backend is being used....but I needed to bump the max fd count in order to make it work, I was getting a different assertion error, so I'm using a wrapper shell script that increase the ulimit to 8192 before starting stud.
Regards,
from stud.
So, sorry if I'm stating the obvious here and you've already accounted for this, but if you're using 4k clients (and 1024 * 4 or 4,000?) it's entirely possible you are still exceeding the 8192 fd limit, since at the very minimum each client needs two fds (one to the frontend and one to the backend). Do you still have the problem with the ulimit set absurdly high, like 20k?
from stud.
oh, excellent point! I'll bump the ulimit and get back with the results.
If it's the ulimit issue, It would be nice (if it's possible, I know nothing about libev) if stud doesn't die like this when the max fd count is reached.
Thanks!
from stud.
Since I haven't heard anything back, I'll mark this closed.
from stud.
Related Issues (20)
- ipv6 front address in configfile wrong when deamon starts
- Client mode still needs a cert file HOT 1
- Support the addition of a custom header to the client request HOT 1
- Support wildcards in the pem-file option
- Brew formula
- Makefile errors in FreeBSD 9.0
- what does "{client} Unexpected SSL error (in handshake): 5" mean? HOT 3
- stud segfaulting HOT 1
- Print client IP on logs HOT 2
- Installation on CentOS 6.2 notes HOT 2
- Memory leak on OpenSSL handling
- Is this project still maintained? HOT 4
- How can i uninstall this application? HOT 1
- when i try to install stud on centos i got below error HOT 2
- when i try to install stud on centos i got below error HOT 1
- SSL offloading to libvirtd
- FIPS Build Options
- --daemon does not work with --chroot HOT 8
- Enhancement: add a "--verbose" mode if possible
- Support for TLS 1.2 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stud.