Post Reply 
Help - won't startup
10-11-2013, 11:58
Post: #1
Help - won't startup
Hi

I've just installed Minim as my server of choice, and set it up pointing at my music library. However, it never starts up or shows on my renderer.

Here's the error….

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2882)
at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
at java.lang.StringBuilder.append(StringBuilder.java:203)
at java.io.UnixFileSystem.resolve(UnixFileSystem.java:93)
at java.io.File.<init>(File.java:207)
at java.io.File.listFiles(File.java:1056)
at com.minimserver.Server.scanFiles(Server.java:3054)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.readFiles(Server.java:2687)
at com.minimserver.Server.doStart(Server.java:1524)
at com.minimserver.Server.start(Server.java:382)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:156)
at org.jminim.core.ContextImpl.start(ContextImpl.java:84)
at org.jminim.core.RootContextImpl.startComponent(RootContextImpl.java:36)
at org.jminim.core.ContextImpl.start(ContextImpl.java:84)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:398)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:681)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jminim.launch.Launcher.launch(Launcher.java:64)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)

I'm running a Mac mini (i5) with 16gb memory.

Thanks
Ian
Find all posts by this user
Quote this message in a reply
10-11-2013, 16:07 (This post was last modified: 10-11-2013 16:07 by simoncn.)
Post: #2
RE: Help - won't startup
(10-11-2013 11:58)iangude Wrote:  Hi

I've just installed Minim as my server of choice, and set it up pointing at my music library. However, it never starts up or shows on my renderer.

....

I'm running a Mac mini (i5) with 16gb memory.

Thanks
Ian

How many tracks or albums do you have in your library?

You can set the resourceInfo property to see how much memory is being used by MinimServer as it scans your library. If you set this to a value of 1000, you will get a memory report in the MinimServer log after scanning each 1000 tracks. Please try doing this and post the output here.
Find all posts by this user
Quote this message in a reply
10-11-2013, 20:12
Post: #3
RE: Help - won't startup
Hi

I tried that - unfortunately the program just crashed this time after about 4 hours scanning, and took the log with it. The last time I looked it had reached something over 600k tracks. I'll try and catch it this time at some point, hopefully before it crashes again - I know roughly where it had got to in my library.

Thanks
Ian
Find all posts by this user
Quote this message in a reply
10-11-2013, 21:20 (This post was last modified: 10-11-2013 22:53 by iangude.)
Post: #4
RE: Help - won't startup
So far…..

resourceInfo: processed 250000 audio files after 166941 ms
resourceInfo: heap bytes used 50934648, consumed 66125288, committed 103903232
resourceInfo: non-heap bytes used 21688760, committed 34816000

I'll update again in a while……

resourceInfo: processed 500000 audio files after 120370 ms
resourceInfo: heap bytes used 95704944, consumed 105433008, committed 129957888
resourceInfo: non-heap bytes used 23051808, committed 36413440

I'll update if I can before it collapses in a heap……

sourceInfo: processed 550000 audio files after 129979 ms
resourceInfo: heap bytes used 107376888, consumed 112843080, committed 129957888
resourceInfo: non-heap bytes used 23127136, committed 36478976

resourceInfo: processed 610000 audio files after 151115 ms
resourceInfo: heap bytes used 120282848, consumed 126633816, committed 129957888
resourceInfo: non-heap bytes used 23631176, committed 37003264

resourceInfo: processed 650000 audio files after 181509 ms
resourceInfo: heap bytes used 125977936, consumed 128499048, committed 129957888
resourceInfo: non-heap bytes used 23893992, committed 37527552

Off to bed now - hopefully I'll have more to post in the morning ….any ideas ?
Find all posts by this user
Quote this message in a reply
10-11-2013, 22:54
Post: #5
RE: Help - won't startup
(10-11-2013 20:12)iangude Wrote:  Hi

I tried that - unfortunately the program just crashed this time after about 4 hours scanning, and took the log with it. The last time I looked it had reached something over 600k tracks. I'll try and catch it this time at some point, hopefully before it crashes again - I know roughly where it had got to in my library.

Thanks
Ian

The log is saved on disk as the file minimserver.log in the folder

/Users/<your-user-name>/Library/MinimServer

This Library folder is hidden by the Finder, To see it, you need to use "Go to folder" and type the path.

When you restart MinimServer, the log file will be overwritten, so you need to copy the log file to another location before doing a restart.

With over 600k tracks, you will need to increase the Java heap size. This isn't very easy to do on the Mac because of the way Java applications are launched on Mac OS X. The simplest approach would be to edit the Info.plist file in the MinimServer application package, as follows:

1) Stop MinimServer
2) Select the MinimServer application in Finder and click 'Show Package Contents'
3) Select the Info.plist file and select Open With > Other...
4) Select TextEdit from the list of applications and click Open
5) You should now see the Info.plist file open in TextEdit
6) Near the bottom of the file, just above the line <key>ClassPath</key>, add the following two lines:

<key>VMOptions</key>
<string>-Xmx256m</string>

7) Save the Info.plist file
8) Launch MinimServer

You might need to experiment with different values for the -Xmx option. You will probably find -Xmx256m (256 MB of heap memory) is sufficient to allow MinimServer to complete its startup. If not, increasing this to -Xmx512m (512 MB of heap memory) should definitely be enough.
Find all posts by this user
Quote this message in a reply
10-11-2013, 22:59
Post: #6
RE: Help - won't startup
Thanks - I'll check the log (or the file if it's crashed) tomorrow and take it from there. I can also weedle out some of the directories it's scanning (I don't think I'll ever need to stream my sound effects for instance…..)
Find all posts by this user
Quote this message in a reply
11-11-2013, 07:23
Post: #7
RE: Help - won't startup
As suspected, bombed again.

resourceInfo: processed 670000 audio files after 286878 ms
resourceInfo: heap bytes used 128825784, consumed 129499792, committed 129957888
resourceInfo: non-heap bytes used 23897904, committed 37527552

was the last output, and followed by

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3209)
at java.lang.String.<init>(String.java:215)
at java.lang.StringBuilder.toString(StringBuilder.java:430)
at com.minimserver.Server.scanFiles(Server.java:3094)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.scanFiles(Server.java:3700)
at com.minimserver.Server.readFiles(Server.java:2687)
at com.minimserver.Server.doStart(Server.java:1524)
at com.minimserver.Server.start(Server.java:382)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:156)
at org.jminim.core.ContextImpl.start(ContextImpl.java:84)
at org.jminim.core.RootContextImpl.startComponent(RootContextImpl.java:36)
at org.jminim.core.ContextImpl.start(ContextImpl.java:84)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:398)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:681)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jminim.launch.Launcher.launch(Launcher.java:64)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
java.lang.OutOfMemoryError: Java heap space

I will add the config lines in above and restart

Thanks
ian
Find all posts by this user
Quote this message in a reply
11-11-2013, 08:19
Post: #8
RE: Help - won't startup
(11-11-2013 07:23)iangude Wrote:  As suspected, bombed again.

resourceInfo: processed 670000 audio files after 286878 ms
resourceInfo: heap bytes used 128825784, consumed 129499792, committed 129957888
resourceInfo: non-heap bytes used 23897904, committed 37527552

....

I will add the config lines in above and restart

Thanks
ian

The numbers above say that MinimServer has used 129499792 bytes of Java heap space and the maximum heap space available to Java is approximately 129957888 bytes. Using the -Xmx256m setting will give Java double this amount of space, which should allow MinimServer to handle something in the region of 1.2 to 1.3 million files. The exact number will depend on the contents of the files.
Find all posts by this user
Quote this message in a reply
11-11-2013, 10:32
Post: #9
RE: Help - won't startup
(11-11-2013 08:19)simoncn Wrote:  
(11-11-2013 07:23)iangude Wrote:  As suspected, bombed again.

resourceInfo: processed 670000 audio files after 286878 ms
resourceInfo: heap bytes used 128825784, consumed 129499792, committed 129957888
resourceInfo: non-heap bytes used 23897904, committed 37527552

....

I will add the config lines in above and restart

Thanks
ian

The numbers above say that MinimServer has used 129499792 bytes of Java heap space and the maximum heap space available to Java is approximately 129957888 bytes. Using the -Xmx256m setting will give Java double this amount of space, which should allow MinimServer to handle something in the region of 1.2 to 1.3 million files. The exact number will depend on the contents of the files.

Thanks Simon. I'm at work - ill report back tonight on how far it's got. I clearly also need to weed out what I want it to scan - I've just pointed it at a drive so far - I need to work out how to just pick certain directories.

I see from the Linn forum that you are a Linn user - I've just purchased my first Linn ( Sneaky DS ) - looking forward to it arriving.

Thanks for all your help so far
Ian
Find all posts by this user
Quote this message in a reply
11-11-2013, 12:01
Post: #10
RE: Help - won't startup
(11-11-2013 10:32)iangude Wrote:  Thanks Simon. I'm at work - ill report back tonight on how far it's got. I clearly also need to weed out what I want it to scan - I've just pointed it at a drive so far - I need to work out how to just pick certain directories.

This explains why it is taking such a long time to scan. MininServer will scan all the files on the drive and will ignore everything that isn't a supported audio file. This won't consume any more memory, but it might take a long time to examine and skip over all the non-audio files.

You can specify up to 8 folder values for the contentDir property. For each contentDir folder value, everything underneath the folder will be scanned. Setting this property appropriately should allow you to limit your scanning to the files in your audio library.

With such a large library, you might come up against MinimServer's limit for the total number of folders containing audio files, plus any parent folders of these folders. This number is fixed at 65000 and can't be increased. You will get an error message if your library exceeds this limit.

Quote:I see from the Linn forum that you are a Linn user - I've just purchased my first Linn ( Sneaky DS ) - looking forward to it arriving.

Thanks for all your help so far
Ian

I'm sure you'll enjoy your Linn DS. I have been very pleased with mine. Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)