Page 1 of 1

Start & stop through command line

PostPosted: Wed Apr 08, 2009 2:52 pm
by SpritHansi
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....

PostPosted: Wed Apr 08, 2009 4:29 pm
by jigsaw
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

PostPosted: Wed Apr 08, 2009 4:41 pm
by SpritHansi
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

PostPosted: Wed Apr 08, 2009 7:31 pm
by jigsaw
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..

PostPosted: Wed Apr 08, 2009 11:41 pm
by koboabe
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

PostPosted: Thu Apr 09, 2009 10:28 am
by SpritHansi
I have 240000 mp3's. That is about 1,2 TB.
Any suggestion how to free RAM? :?

PostPosted: Sun Apr 12, 2009 8:28 pm
by sindre_mehus
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?