Post Reply 
Out of memory
07-03-2012, 11:31
Post: #1
Sad Out of memory
No joy with 0.30 here.

When I set the content dir to my non-classical music, it gives a java.lang.OutOfMemoryError: Java heap space.
A bit strange, as I use a decent machine with 4GB of RAM in it Huh

A quick strings | grep | wc -l of the cache file suggests that it quits after 50 or so albums. Sometimes it gets to 68, so it doesn't seem to be a fixed number.

If I set the content dir to my classical music, it runs fine with 900 or so "Albums".

If I set the content dir to a subdirectory of the non-classical stuff, it runs fine. The largest subdir I tested only had 25 albums in it though.

I deleted all cache files before starting the server.

The only change I made to the config file was to remove AlbumArtist from the albumSortTags, as its presence prevented the server from starting at all.

What can I do to help you track this down?

Cheers,
JW

Here's the full error message:
Code:
MinimServer 0.30, Copyright (c) 2012 Simon Nash. All rights reserved.
starting MinimServer
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2746)
    at java.util.ArrayList.ensureCapacity(ArrayList.java:187)
    at java.util.ArrayList.add(ArrayList.java:378)
    at com.minimserver.Server$Album.add(Server.java:5338)
    at com.minimserver.Server$CompleteAlbum.addAudioItem(Server.java:5471)
    at com.minimserver.Server.scanFiles(Server.java:1581)
    at com.minimserver.Server.scanFiles(Server.java:1644)
    at com.minimserver.Server.scanFiles(Server.java:1644)
    at com.minimserver.Server.scanFiles(Server.java:1644)
    at com.minimserver.Server.doStart(Server.java:839)
    at com.minimserver.Server.start(Server.java:349)
    at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:165)
    at org.jminim.core.ContextImpl.start(ContextImpl.java:85)
    at org.jminim.core.RootContextImpl.startComponent(RootContextImpl.java:36)
    at org.jminim.core.ContextImpl.start(ContextImpl.java:85)
    at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:330)
    at org.jminim.core.LauncherImpl.run(LauncherImpl.java:580)
    at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.jminim.launch.Launcher.launch(Launcher.java:60)
    at com.minimserver.launch.LaunchServer.main(LaunchServer.java:26)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Out of memory - rb73 - 07-03-2012 11:31
RE: Out of memory - simoncn - 07-03-2012, 13:58
RE: Out of memory - rb73 - 07-03-2012, 14:16
RE: Out of memory - simoncn - 07-03-2012, 14:41
RE: Out of memory - rb73 - 07-03-2012, 14:51
RE: Out of memory - simoncn - 07-03-2012, 16:26
RE: Out of memory - rb73 - 07-03-2012, 20:21
RE: Out of memory - Leprish - 07-03-2012, 21:09
RE: Out of memory - simoncn - 08-03-2012, 00:56
RE: Out of memory - Leprish - 08-03-2012, 01:20
RE: Out of memory - simoncn - 08-03-2012, 10:41
RE: Out of memory - simoncn - 08-03-2012, 12:17
RE: Out of memory - Leprish - 08-03-2012, 13:40
RE: Out of memory - Leprish - 09-03-2012, 00:21

Forum Jump:


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