Start & stop through command line

Need help? Post your questions here.

Moderator: moderators

Start & stop through command line

Postby SpritHansi » Wed Apr 08, 2009 2:52 pm

Hi!
Is it possible to start & stop the server through command line?
After a filescan, Subsonic eats over 500 MB RAM and I need to restart it....
Regards
SpritHansi
User avatar
SpritHansi
 
Posts: 37
Joined: Wed Jul 30, 2008 7:44 am
Location: Norway

Postby jigsaw » Wed Apr 08, 2009 4:29 pm

when you say command line I guess you're running Subsonic on something other than Windows..? You don't say..
You could look at this tutorial
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby SpritHansi » Wed Apr 08, 2009 4:41 pm

No, sorry. I use WinXP w/SP2
I want to use Windows Schedule to run a bat-file to stop and start Subsonic after filescan
Regards
SpritHansi
User avatar
SpritHansi
 
Posts: 37
Joined: Wed Jul 30, 2008 7:44 am
Location: Norway

Postby jigsaw » Wed Apr 08, 2009 7:31 pm

If you're running subsonic as a service you could just write a bat-file like this
Code: Select all
net stop <service>
net start <service>

Don't know if that's the optimal solution if it's eating up your RAM though. Sounds like a memory leak of somekind..
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby koboabe » Wed Apr 08, 2009 11:41 pm

jigsaw wrote:If you're running subsonic as a service you could just write a bat-file like this
Code: Select all
net stop <service>
net start <service>

Don't know if that's the optimal solution if it's eating up your RAM though. Sounds like a memory leak of somekind..


Agreed, I have 146 gigs of MP3s added to my config and it never uses even close to 100MB of RAM
1,056 artists
1,897 albums
24,865 songs
136.60 GB (~ 2,121 hours)
User avatar
koboabe
 
Posts: 21
Joined: Mon Nov 24, 2008 5:50 pm

Postby SpritHansi » Thu Apr 09, 2009 10:28 am

I have 240000 mp3's. That is about 1,2 TB.
Any suggestion how to free RAM? :?
Regards
SpritHansi
User avatar
SpritHansi
 
Posts: 37
Joined: Wed Jul 30, 2008 7:44 am
Location: Norway

Postby sindre_mehus » Sun Apr 12, 2009 8:28 pm

Alternatively:

Code: Select all
subsonic-service.exe -stop
subsonic-service.exe -start


(located in c:/program files/subsonic)

You could also try to reduce the Java heap size to, say, 120MB. Sounds like you're running with a very high heap size limit?
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests