High number of Processes

Need help? Post your questions here.

Moderator: moderators

High number of Processes

Postby scotton » Fri Feb 25, 2011 5:21 pm

I would like to know how many java processes (threads) are to be expected when the subsonic daemon is running. Recently (since I upgraded to 4.4 i believe, but can not be certain), the downloading of songs has been hit or miss. A download will often start and then just sit after a couple of MB's. I have tried restarting (or stopping then starting) the service and this does not seem to help.

Some context:

Cent OS 5.5 i686
Subsonic 4.4 (i usually run the betas and then upgrade, gotta love me some bleeding edge)
I run the subsonic UI as a http_proxy vhost under apache. here is that config:

Code: Select all
<IfModule mod_proxy.c>
  <VirtualHost *:80>
        ServerName ss.my-domain-name.com
        ProxyPass / http://localhost:4040/
        ProxyPassReverse / http://localhost:4040/
        ProxyRequests     Off

        <Proxy http://localhost:4040/*>
                Order Allow,Deny
                Allow from all
        </Proxy>

  </VirtualHost>
</IfModule>


Subsonic is thus accessed through port 80 on a subdomain, and this has worked fine for about 3 months now.

Here is my SUBSONIC_ARGS line from /etc/sysconfig/subsonic (yes my drives are named after the 3 stooges)

Code: Select all
SUBSONIC_ARGS="--max-memory=100 --default-music-folder=/media/moe/Music/Library --default-playlist-folder=/media/moe/Music/Playlists"


Other than that, the setup is standard. Have a user, have some tunes, and I mostly use the Android App (driving, at work) and only use the UI (via the subdomain) from the local network. Perhaps of note is the fact that I have the server set up in the Android App to point to the subdomain.

So the issue I am seeing is that the files are not downloading consistently. They stop and will not restart. I am wondering if this has to do with the use of the subdomain. When I use htop (seriously one of the best cli apps ever created), I see 30 processes running the following command:

Code: Select all
java -Xmx100m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.defaultMusicFolder=/media/moe/Music/Library -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -DdefaultPlaylistFolder=/media/moe/Music/Playlists -Djava.awt.headless=true -jar subsonic-booter-jar-with-dependencies.jar


So that makes sense, its grabbing my config from /etc/sysconfig/subsonic. But why are there 30 of them? Each says its taking about 6% of my memory, and yeah, thats just not cool. (i know the math doesnt work out, but the end result is still the same. Slow). Has anyone else been running subsonic through apache, and has anyone experienced such a large number of processes?
scotton
 
Posts: 2
Joined: Fri Feb 25, 2011 5:06 pm

Update, after Testing

Postby scotton » Fri Feb 25, 2011 5:38 pm

I just added in a port forward to my router to point straight at the configured port (4040).
I then added a second server to the Android App pointing to this new port forward.
Switched servers and tried a different album.

I opened up htop and I now have 45 subsonic processes where I had 30 before.

Same issue with the songs not fully downloading.

Is there a way that I can determine if this is being caused by the Android App or the subsonic daemon? log files or the such that i could include in this thread?
scotton
 
Posts: 2
Joined: Fri Feb 25, 2011 5:06 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests