Page 1 of 1

Edit Info.plist. for Mac - Help Reqd (SOLVED)

PostPosted: Tue Jan 10, 2012 11:33 pm
by alexj700
Hi, I have just installed iSub on my iPad and my iPhone and SS in my iMac. Yesterday it worked perfectly. I have a very large music library in FLAC files (11.000 albums)

Suddenly, today I receive this message in my SS in Mac: java.lang.OutOfMemoryError. Exactly

Exception java.lang.OutOfMemoryError
Message Java heap space
Java version Apple Inc. 1.6.0_29
Operating system Mac OS X 10.6.8
Server jetty-6.1.x
Memory Used 97 of 97 MB
Stack trace java.lang.OutOfMemoryError: Java heap space

I've tried to activate the Control Panel to increase the memory to 300 or 1.000 but when I activate Control Panel in the iMac, I only can see a "dead" panel, with only info about the status, but I cannot write anything.

Please, can you help??? Many thanks in advance and regards from Canary Islands

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Tue Jan 10, 2012 11:36 pm
by BKKKPewsey
From the installation Guide for Mac

To change the port number, Java memory settings or other startup parameters, edit /Application/Subsonic.app/Contents/Info.plist.


:mrgreen:

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 12:05 am
by alexj700
Many thanks but sorry... :oops:

I don't know how to edit that file. I've tried changing to Root user, but it's impossible for me to access to that file. Anyway I think that it ought to be "Applications" no Application, but I can be wrong

Can you help, please?

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 1:25 am
by ytechie
It is applications with the 's' at the end. I have a mac, but I do not use it as a subsonic server, but I did check that applications is spelled with an 's'.

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 1:49 am
by ytechie
Ok. I have never done this myself, but here is how to edit files that are hidden without doing anything crazy.

Open up a terminal in Mac either by going to Applications > Utilities > Terminal or typing term into spotlight.

In the terminal, type "cd /" and press enter.

Now type "ls -la". This is the command to show you a list of the files and directories. The "-la" means to show you everything including hidden files and folders.

Start navigating to where the file is by typing "cd " followed by the next folder. If the folder or file has a space, enclose everything after "cd" in quotes.
Everything is case-sensitive.

When you get to the directory in which the file resides, type "nano " followed by the file name. If it needs permission, it will tell you, and instead type "sudo nano" followed by the file name.

Proceed to edit the file as needed. When finished, type control+x and press "y" to save.

Again, I do not have subsonic installed on my Mac, so I cannot tell you for sure that this will work, only that this is how to edit the file if it exists. :D

Have fun, but be careful! :mrgreen:

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 4:22 pm
by alexj700
Million thanks. But once I opened the file, I find this

?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Subsonic</string>
<key>CFBundleShortVersionString</key>
<string>4.6</string>
<key>CFBundleGetInfoString</key>
<string>4.6</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell

And I have no idea of what do I have to do to increase the memory of Java...

Sorry, but I feel like stupid... :-(

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 4:31 pm
by BKKKPewsey
alexj700 wrote:Sorry, but I feel like stupid...


Don't be - faced with that I would be as stumped as you :|

I thought Apples were supposed to be easier then Windows :?

Re: java.lang.OutOfMemoryError in Mac

PostPosted: Wed Jan 11, 2012 9:34 pm
by alexj700
No solution?

Any one has an iMac with Subsonic?

Edit Info.plist. for Mac - Help Reqd

PostPosted: Wed Jan 11, 2012 9:43 pm
by BKKKPewsey
I will edit the thread title to reflect the new problem
Hope that is correct :?
:mrgreen:

Re: Edit Info.plist. for Mac - Help Reqd

PostPosted: Wed Jan 11, 2012 9:56 pm
by alexj700
Thanks once again.

Re: Edit Info.plist. for Mac - Help Reqd

PostPosted: Thu Jan 12, 2012 12:22 am
by alexj700
SOLVED. :D

You must open a Terminal window.

Type sudo nano /Applications/Subsonic.app/Contents/Info.plist

Type your password (you'll not see it, just write it) + Enter

You'll see this

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Subsonic</string>
<key>CFBundleShortVersionString</key>
<string>4.6</string>
<key>CFBundleGetInfoString</key>
<string>4.6</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>false</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleExecutable</key>
<string>JavaApplicationStub</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


Press Ctrl + V to advance to next page

<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleIconFile</key>
<string>subsonic.icns</string>
<key>CFBundleIdentifier</key>
<string>net.sourceforge.subsonic</string>
<key>LSUIElement</key>
<string>1</string>
<key>Java</key>
<dict>
<key>MainClass</key>
<string>net.sourceforge.subsonic.booter.Main</string>
<key>JVMVersion</key>
<string>1.5+</string>
<key>ClassPath</key>
<array>
<string>$JAVAROOT/subsonic-booter-jar-with-dependencies.jar</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


Press Ctrl + V to advance to next page
<array>
<string>$JAVAROOT/subsonic-booter-jar-with-dependencies.jar</string>
</array>
<key>VMOptions</key>
<string>-Xmx100m</string>
<key>Arguments</key>
<string>-mac</string>
<key>Properties</key>
<dict>
<key>subsonic.httpsPort</key>
<string>0</string>
<key>subsonic.port</key>
<string>4040</string>
<key>subsonic.war</key>
<string>Subsonic.app/Contents/Resources/subsonic.war</string>
<key>subsonic.defaultPodcastFolder</key>
<string>/Users/Shared/Podcasts</string>
<key>subsonic.contextPath</key>
<string>/</string>
[ Read 63 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell



Attention to line num. 5: " <string>-Xmx100m</string> "

Place cursor with arrows and change 100 to a bigger number. I only inserted another 0. New amount=1000 (I own 11.000 albums)

Crtl + X

Y + Enter

Open Subsonic... it works... :shock:

Many thanks for your gently help.

Re: Edit Info.plist. for Mac - Help Reqd (SOLVED)

PostPosted: Thu Jan 12, 2012 3:33 am
by BKKKPewsey
:D