Bugzilla – Bug 1059
Web interface hogging CPU
Last modified: 2008-08-18 10:53:01 UTC
Depsite a low background CPU usage (17-20%), when the server homepage is loaded, the CPU is 100% hogged to the point that the music stops playing. Web update is very slow (7+ seconds) for a playlist of 58 items. Closing browser allows music to start almost immediately but CPU is still hogged for several seconds after browser is clossed. Both Linux an Windows XP have been reported to have the same issue in 6.01b.
What browser are you using?
Browser is IE 6.0
Does this happen if you try using the Default2 skin?
It works OK with Default2 - looks like a Fishbone skin problem then?
Could be - what about the default skin? Does it have the same behavior?
James - I've just checked in some changes to subversion change 2528, which should alleviate the problem. If you're tracking subversion, could you give it a try? Otherwise the change will be in the 2005-03-17 build. Thanks.
Hi Dan, I tried the 17/3 nightly and I have the same problem - although it doesn't seem quite so bad. Even when using the default skin, the music stutters. It seems to be related to the amount of content in the panes - which is probably obvious I suppose. i.e. long playlists or album lists seem to create problems. Cheers, James
That is correct, James. What is your itemsPerPage variable set at?
It was 100 but I've dropped it to 30 and it seems well again. I hope this helps track it down. Cheers, James
Yes - that would do it. What type of CPU / Memory is on this system?
It's a celeron 1.1 with 512MB memory. It has 7 players attached (6 x SliMP3 +1 Squeezebox - only one streaming when tests undertaken). With no music playing, top shows about 8% to slimserver. One MP3 playing to a slimp3 produces 27% which seems a little high to me. Two different MP3s -> 2 x SliMP3 = 40%. Despite using MySQL, I still see a 51MB memory footprint from 5700 tracks.
James - I've checked in quite a few changes today regarding memory usage and leaking. The nightly build will kick off in 1 hour (9am your time), with those changes. Also - have you tried using SQLite? I believe it's quite a bit faster than MySQL.
Thanks Dan, I'll give it a try - tomorrow most likely. I already had MySQL installed so I didn't really want another running unless I have to. The MySQL isn't really hitting the CPU (about 8% during scanning) and once scanning is done, I've not noticed any significant impact. Browsing and searching seems fast enough to me so far. I've also got ODBC gateways set up for MySQL so I'd rather keep it in use as I can pull off my collection and produce collection reports. Somethng I've not done since I used to use Jreceiver and some awful players (can't remember name) that I had before Slim Devices came along :) If it becomes an issue for me, I'll give SQLite a try. Cheers, James