[Win7] Subsonic memory leak? ["connection refused"

Need help? Post your questions here.

Moderator: moderators

[Win7] Subsonic memory leak? ["connection refused"

Postby mtnkodiak » Fri Nov 19, 2010 8:22 pm

Hello,

First of all, great application (I donated), I am a total subsonic evangelist now, and three of my friends are all running their own servers. Kudos!

HOWEVER (and you knew that was coming), my subsonic server's memory use will regularly balloon up, and it will hit the memory limit I define in the subsonic tray gadget. The result at that point is that anyone trying to access it will get a network error "connection refused".

Typically, the memory footprint will soar up over 500mb. I have not been able to determine what causes this, as I am usually at work when it happens. There is another thread here from July that mentions this, and the thought there is that it is caused by the website home page's regular refreshes of a random selection of albums. If someone left this page up on their browsers for a long time, would it cause this?

I left for work today and noticed that my server was at about 30Mb, but moments ago, the main frame of the homepage did not refresh, and now when I refresh the whole page, I get the "connection refused" error.

Thanks for any ideas. --cj
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm

Postby mtnkodiak » Fri Nov 19, 2010 8:23 pm

Also, somewhat related... has anyone come up with a good solution for remotely rebooting their server? Barring an actual solution for this, it would be nice to be able to restart a borked server remotely.
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm

Postby GJ51 » Sat Nov 20, 2010 5:41 am

Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby mtnkodiak » Sat Nov 20, 2010 6:07 am

GJ51 wrote:http://lmgtfy.com/?q=remote+reboot :wink:


Gee thanks. Actually, I was looking for a method of restarting the subsonic server, not the entire system. I can most likely whip something up to do it, but it's always nice if someone has done it already.
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm

Postby GJ51 » Sat Nov 20, 2010 7:19 am

Remote desktop to the server, right click the tray icon, select Subsonic Control Panel.

Actually, a double left click on the icon will open the panel too.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby Exrace » Sat Nov 20, 2010 1:51 pm

What version of java you running?
If your using virus protection I would make sure it is not scanning your music directories on access.
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Postby mtnkodiak » Sat Nov 20, 2010 5:19 pm

GJ51 wrote:Remote desktop to the server, right click the tray icon, select Subsonic Control Panel.

Actually, a double left click on the icon will open the panel too.


Gary, you must think I'm incompetent. Maybe it's conditioning, but I assure you, I'm not. (I'm a java developer.)

Of course I could remote in to my PC, but that is a much heavier solution than what I was looking for. I obviously should have been more descriptive, but I had in mind a small deamon process running, listening on a port for a specific message to restart JUST the subsonic server process when requested.

I'll prolly just write one myself, no worries. If/when I do, I'll make it available for download for others, here. A simple app, really, but I just need to find some time to crank it out.

As for the version of java (Exrace asked):

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

I do not understand why having anti-virus running has anything to do with the subsonic process's memory leak. I am running Norton, and I have no plans for turning it off, especially in an area that receives new files onto my PC!
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm

Postby alphawave7 » Sat Nov 20, 2010 6:53 pm

mtnkodiak wrote:
I do not understand why having anti-virus running has anything to do with the subsonic process's memory leak. I am running Norton, and I have no plans for turning it off, especially in an area that receives new files onto my PC!


Does the log show any clues? Perhaps the AV is hitting the files, SS registers those hits in the form of accumulating db (actually, I've heard of this before on other music db proggies). Try turning off that specific drive/folder in the AV to see if it's remedied.
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Postby GJ51 » Sat Nov 20, 2010 7:43 pm

I run Avira free and MS Security Essentials on all my workstations and MSSE on my WHS. Even streaming video I rarely exceed 50MB memory usage on SS.

I'm running 4.1 on Server 2008R2 and WHS with MSSE installed on the WHS. I also have the latest Java installed.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby Exrace » Sat Nov 20, 2010 9:57 pm

mtnkodiak,
I have seen in the past virus scanning tools cause a process to "leak" due to the low level access it has on the system, file handles etc. Just a thought - not sure how big your LIB is.

On the restart...I am surprised this is not in the service already. That would be a handy option to have in the control panel... a self termination/restart of itself.
Exrace
 
Posts: 218
Joined: Thu Nov 11, 2010 5:02 am

Postby mtnkodiak » Tue Nov 23, 2010 2:39 pm

Exrace wrote:On the restart...I am surprised this is not in the service already. That would be a handy option to have in the control panel... a self termination/restart of itself.


I completely agree. It seems a little self-defeating to be able to set the upper memory limit in the control panel, only for the app to become unresponsive when it hits that limit (!). It should offer an option to restart the service if it happens.

It seems that something "triggers" the memory explosion. It's typically sitting at around 30-45Mb, until "something" happens and it balloons up to 500Mb+.

I will look into the virus protection issue... at the very least I will set Norton to ignore everything in my music folder besides my "Incoming" folder and see if that alleviates the problem. My library is sitting around 65G right now.

Thanks for your input.
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm

Postby mtnkodiak » Tue Nov 23, 2010 2:41 pm

alphawave7 wrote:
mtnkodiak wrote:
I do not understand why having anti-virus running has anything to do with the subsonic process's memory leak. I am running Norton, and I have no plans for turning it off, especially in an area that receives new files onto my PC!


Does the log show any clues? Perhaps the AV is hitting the files, SS registers those hits in the form of accumulating db (actually, I've heard of this before on other music db proggies). Try turning off that specific drive/folder in the AV to see if it's remedied.


I do not see any clues in the log. I am going to try turning off Norton in the music folder (except for the Incoming folder-- I need to virus-scan incoming files) and see if that helps.

Thanks for the input!
mtnkodiak
 
Posts: 11
Joined: Fri Jul 23, 2010 8:13 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests