help; service stops responding (lots of mem usage)

Need help? Post your questions here.

Moderator: moderators

help; service stops responding (lots of mem usage)

Postby wastedfluid » Wed Aug 11, 2010 1:03 pm

hello all,

I'm having a problem. I have a server setup at my house - it's a laptop, a dualcore 1.6ghz w/ 4gb of ram. It runs on winxpsp3...

After a few days of running, subsonic stops responding from remote connections. I have not tried local connections. Subsonic server tray says it's using 25-45mb of ram... but task manager shows over 200-300mb of memory usage.

If I stop the server, and restart it(via the tray) - it works immediately. I have permanent port forwards setup on a netgear 802.11n dual antenna router. I've tried restarting the router - and it does not fix the problem.

any troubleshooting info you need? logs? anything?

I love this program, and I have donated - it's just annoying that I have to manually restart the service every 3-4 days. That laptop usually averages 150-200 days uptime before I'll restart it since it's my torrent server, too. I would say a reboot server option in the HTTP server's Control Panel would work.. but it's not responding to http requests at all.
wastedfluid
 
Posts: 2
Joined: Wed Aug 11, 2010 12:44 pm

Postby Kirk » Wed Aug 11, 2010 3:51 pm

Log files would be great. This post is basically asking if anyone knows any reason why your Subsonic locks up every few days. There could be any NUMBER of reasons, so the logs would be very helpful.

I'm surprised that a laptop with 4 gigabytes of ram would have difficulties with Subsonic using a few hundred megs. I often see my Firefox ram usage go beyond that without any problems. I wonder if you're mistaken in thinking the memory usage is the problem. Have you looked to see how much ram Subsonic uses when it's working properly (in task manager)?

I don't think the Subsonic tray and your task manager are supposed to correlate. The Subsonic measurement is how much virtual memory in the server it's using. The java server is just a container... it uses memory itself too in order to run.

If you were on Linux, I'd suggest running a cron to check the port, and restart the service if it goes down. I was having a similar issue to this on a Linux server with 2GB of ram. After I made that scheduled task it's only run once... and that was about 2 months ago. I always end up restarting Subsonic for some other reason, like the bandwidth graphics stop refreshing or the album art covers get messed up. I just increased my Subsonic memory limit to try to resolve these issues... so far so good.

Cheers,
Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

Postby wastedfluid » Wed Aug 11, 2010 4:11 pm

Kirk wrote:Log files would be great. This post is basically asking if anyone knows any reason why your Subsonic locks up every few days. There could be any NUMBER of reasons, so the logs would be very helpful.

I'm surprised that a laptop with 4 gigabytes of ram would have difficulties with Subsonic using a few hundred megs. I often see my Firefox ram usage go beyond that without any problems. I wonder if you're mistaken in thinking the memory usage is the problem. Have you looked to see how much ram Subsonic uses when it's working properly (in task manager)?

I don't think the Subsonic tray and your task manager are supposed to correlate. The Subsonic measurement is how much virtual memory in the server it's using. The java server is just a container... it uses memory itself too in order to run.

If you were on Linux, I'd suggest running a cron to check the port, and restart the service if it goes down. I was having a similar issue to this on a Linux server with 2GB of ram. After I made that scheduled task it's only run once... and that was about 2 months ago. I always end up restarting Subsonic for some other reason, like the bandwidth graphics stop refreshing or the album art covers get messed up. I just increased my Subsonic memory limit to try to resolve these issues... so far so good.

Cheers,
Kirk


Thanks for your reply.

Which log files should I provide? I'll go home and find them and post tehm.

When subsonic first starts, it uses less than 100mb of ram. I don't think it's "locking up" per say - but I definitely don't think it should be using 250-300mb of memory(which is why I included in my post). Firefox always uses 100-300mb for me, which is never a problem either.

I'm really not trying to switch to linux just because I do not want to have to port 200 torrents over.. not an easy task.

I'll go home and post my entire log and hopefully someone can help from there.
wastedfluid
 
Posts: 2
Joined: Wed Aug 11, 2010 12:44 pm

Postby Kirk » Wed Aug 11, 2010 4:13 pm

Oh, I wasn't suggesting switching to Linux. I meant to suggest finding a way to do what I am doing, but on Windows. lol.

Either way, I have my script email me when it runs. I know it only ran once after I set it up. I'm not sure why my issue went away.

Kirk
Image
User avatar
Kirk
 
Posts: 310
Joined: Tue Jun 08, 2010 5:45 pm
Location: Illinois, USA

same here on windows server 2003

Postby JoelRSimpson » Tue Aug 17, 2010 5:35 pm

every few days the service stops responding (web page won't display). In Task Manager, 153mb of memory (though memory limit is set to 100mb).

In the subsonic.log the last few entries are like the following:

Code: Select all
[2010-08-17 03:15:51,207] ERROR SearchService - An error occurred while reading index entry 'F ixYxi 1219642326000 ixYxi 1219642326000 ixYxi d:\Multimedia\Music\Lenny Kravitz\1991 - tattoo me - paris zenith 30.05.91\13 - FREEDOM TRAINFEAR.mp3 ixYxi 9463955 ixYxi LENNY KRAVITZ FEATURING MICK JAGGER ixYxi TATTOO ME ixYxi FREEDOM TRAIN'.
java.lang.ArrayIndexOutOfBoundsException: 8
   at net.sourceforge.subsonic.service.SearchService$Line.parse(SearchService.java:736)
   at net.sourceforge.subsonic.service.SearchService.getIndex(SearchService.java:602)
   at net.sourceforge.subsonic.service.SearchService.doCreateIndex(SearchService.java:150)
   at net.sourceforge.subsonic.service.SearchService.access$000(SearchService.java:60)
   at net.sourceforge.subsonic.service.SearchService$1.run(SearchService.java:112)

[2010-08-17 03:15:51,207] ERROR SearchService - An error occurred while reading index entry 'FEAR ixYxi 1991 ixYxi Rock'.
java.lang.NumberFormatException: For input string: "Rock"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Long.parseLong(Unknown Source)
   at java.lang.Long.parseLong(Unknown Source)
   at net.sourceforge.subsonic.service.SearchService$Line.parse(SearchService.java:729)
   at net.sourceforge.subsonic.service.SearchService.getIndex(SearchService.java:602)
   at net.sourceforge.subsonic.service.SearchService.doCreateIndex(SearchService.java:150)
   at net.sourceforge.subsonic.service.SearchService.access$000(SearchService.java:60)
   at net.sourceforge.subsonic.service.SearchService$1.run(SearchService.java:112)
JoelRSimpson
 
Posts: 7
Joined: Wed Jul 14, 2010 3:55 am


Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests