|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Sep 2012
Posts: 1
|
Segmentation fault on 1024 listeners while ulimit is raised
When I'm stress-testing my Linux (CentOS6) Shoutcast server with 3 active streams. The server gives a segmentation fault when hitting 1024 listeners, and crashes.
The ulimit is raised for all users. Tested on both root and non-root user (with sudo rights). code: (start.sh is my script that launches Shoutcast) ulimit -a returns the following (with the changed open files directive). code: Does anyone know why this happens and/or how to solve it? Thanks in advance. |
|
|
|
|
|
#2 |
|
Join Date: Sep 2003
Posts: 27,873
|
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2012
Posts: 4
|
DrO,
Why is that? I'm wondering here... Am I missing something? I have all limits set properly and dnas version 1.9.8 runs smoothly with more than 1.5k listeners. When I try to do the same with dnas 2 (sc_serv2_linux_x64_07_31_2011.tar.gz), it crashes after exactly 1038 listeners. Is there a newer version with a correction for this bug? I'm quite sure this is not a limit imposed by my operating system... |
|
|
|
|
|
#4 |
|
Join Date: Sep 2003
Posts: 27,873
|
v1 and v2 are completely different code bases and just because v1 could go that high unfortunately doesn't mean v2 currently can go that high (which in all honesty is not the norm for listener numbers with listed stations).
there was work being done in the internal builds to try to try to resolve it (which was working ok up to 1000-1500 listeners depending on the platform build, other processes and system interations, sun-spots, etc), but going above 1500 was still an issue with the modifications to the v2 DNAS and so requires a re-write of part of the networking stack for linux versions. so you are correct, it has nothing to do with the OS limits, it's purely down to how the v2 DNAS has been originally coded (which was for making it easier to do cross-platform but alas has caused a number of issues like this with scaling). there is no publically available 'fixed' version as it has not been completely resolved in the internal builds and i cannot provide interim builds of the DNAS either (before that is asked). |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|