Comments (8)
Which process is causing the load? Client or server?
Does is make a difference if audio is playing or not?
from snapcast.
It's /usr/sbin/snapserver -d
7364 root 20 0 51844 2420 2148 S ** CPU100,0 %** 0,2 4:15.62 snapserver
It's 100 % all the time.
It's make no difference if audio is playing.
Snapclient is using about 3%
This is from the Master bransh.
7797 root 20 0 70676 2496 2216 S CPU 6,2 % 0,3 0:18.77 snapserver
from snapcast.
can you see something suspicious in syslog?
cat /var/log/syslog
You can also stop the service and start snapserver manually on the command line to see, if an error is logged.
from snapcast.
I got this when i start the service manually and without any FIFO stream.
Settings file: /home/pi/.config/snapcast/server.json
2016-03-04 23-38-04 [out] Adding service 'Snapcast'
2016-03-04 23-38-04 [err] Stream: ReaderUri: pipe:///tmp/snapfifo?name=default
2016-03-04 23-38-04 [err] PcmReader sampleFormat: 48000:16:2
2016-03-04 23-38-04 [7] {"fragment":"","host":"","id":"pipe:///tmp/snapfifo","pa th":"/tmp/snapfifo","query":{"buffer_ms":"20","codec":"flac","name":"default","s ampleformat":"48000:16:2"},"scheme":"pipe","uri":"pipe:///tmp/snapfifo?name=defa ult"}
2016-03-04 23-38-04 [err] PcmReader start: 48000:16:2
2016-03-04 23-38-05 [out] Service 'Snapcast' successfully established.
2016-03-04 23-38-05 [err] Exception: end of file
I got this message all the time [err] Exception: end of file
and the core is on 100 %
If i first start the mpd with FIFO (streaming) then starting the server deamon. then i don't get the [err] Exception: end of file and it's working. :)
It seems that the error messages lock the cpu to 100%
2890 root 20 0 32388 3200 2924 S cpu 3,3 % 0,3 0:02.79 snapserver
2016-03-05 00-22-57 [err] PcmReader start: 48000:16:2
2016-03-05 00-22-57 [out] onResync (default): 124ms
2016-03-05 00-22-58 [out] onResync (default): 3ms
2016-03-05 00-22-58 [5] StreamServer::NewConnection: 192.168.2.182
2016-03-05 00-22-58 [out] Hello from , host: volumio, v0.5.0-be ta-1
2016-03-05 00-22-58 [out] {
2016-03-05 00-22-58 [7] "jsonrpc": "2.0",
2016-03-05 00-22-58 [7] "method": "Client.OnConnect",
2016-03-05 00-22-58 [7] "params": {
2016-03-05 00-22-58 [7] "data": {
2016-03-05 00-22-58 [7] "IP": "192.168.2.182",
2016-03-05 00-22-58 [7] "MAC": "",
2016-03-05 00-22-58 [7] "connected": true,
2016-03-05 00-22-58 [7] "host": "volumio",
2016-03-05 00-22-58 [7] "lastSeen": {
2016-03-05 00-22-58 [7] "sec": 1457133778,
2016-03-05 00-22-58 [7] "usec": 556574
2016-03-05 00-22-58 [7] },
2016-03-05 00-22-58 [7] "latency": 0,
2016-03-05 00-22-58 [7] "name": "",
2016-03-05 00-22-58 [7] "stream": "pipe:///tmp/snapfifo",
2016-03-05 00-22-58 [7] "version": "0.5.0-beta-1",
2016-03-05 00-22-58 [7] "volume": {
2016-03-05 00-22-58 [7] "muted": false,
2016-03-05 00-22-58 [7] "percent": 100
2016-03-05 00-22-58 [7] }
2016-03-05 00-22-58 [7] }
2016-03-05 00-22-58 [7] }
2016-03-05 00-22-58 [7] }
2016-03-05 00-22-58 [out] Service 'Snapcast' successfully established.
2016-03-05 00-22-58 [out] onResync (default): 1ms
2016-03-05 00-23-33 [out] onResync (default): 5ms
from snapcast.
Little more info, when i start from /etc/init.d/snapserver start
i got 100% cpu on one core.
If i start manually without deamon mode it's working.
from snapcast.
Hi!
The problem is gone with your latest release. :)
br Tommy
from snapcast.
Cool, acutally I wasn't able to reproduce the issue (using the latest version)
from snapcast.
Actually I am now seeing exactly the same behaviour with the latest snapserver 0.10 on FreeBSD. If I run it as deamon, load rises to 100% as soon as a client is connected.
If I run it manually, all is good.
Syslogs don't show anything. How could I help debugging this?
from snapcast.
Related Issues (20)
- `snapclient --host='some.cname.dns.record'` fails to connect while `snapclient --host='ip.of.server'` succeeds HOT 6
- snapserver: `Error creating TCP acceptor: bind: Address in use` when binding to the same port with IPv4 and IPv6 HOT 2
- Add `Name` to Server Settings message HOT 1
- Add documentation on using the source:tcp, especially with 'desktop' setups (e.g. pulse/pipe wire) HOT 3
- feature request: hidden / meta-only sources HOT 2
- The compilation of Snapcast in OpenWrt 23.05.3 still encounters errors and remains unresolved for an extended period HOT 1
- Prefer dlopen() for dynamic library loading
- Move 'heavy lifting' to server (from client) HOT 1
- Cover Art URI schema HOT 2
- Snapserver service won't start HOT 3
- Snapserver protocol expansion to dynamically use source HOT 8
- music dropouts/block completely on snapserver HOT 1
- Chromecast support HOT 5
- Register snapcast service name
- No metadata and stream control
- WIP: snapclient 0.28.0 (armbian/armv7l) despite repeated attempts cannot connect to snapserver 0.28.0 (openwrt/arm64) after some time. HOT 3
- [Error] (main) Exception: Can't set channel count: Invalid argument
- Add ability to set different sample rate for different streams HOT 4
- Snapclient blocks soundcard/ALSA and stops playing after changing radio station HOT 10
- changing server via the API HOT 1
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 snapcast.