Post Reply 
QNAP starts but crash out
23-03-2023, 21:15
Post: #11
RE: QNAP starts but crash out
Thanks for your confirmation. That’s what I normally experience after initial scanning.

It’s great my problem helped adding functionality to standard version.
Find all posts by this user
Quote this message in a reply
31-10-2023, 11:50 (This post was last modified: 31-10-2023 11:51 by simoncn.)
Post: #12
RE: QNAP starts but crash out
This support for increasing heap size on QNAP is now available in MinimServer update 241.
Find all posts by this user
Quote this message in a reply
30-04-2024, 10:00 (This post was last modified: 30-04-2024 10:02 by Yazsan55.)
Post: #13
RE: QNAP starts but crash out
Minimserver kept crashing, so I uninstalled it and reinstalled. I have the following error report in minimserver-out.log file. This is the last part of it. Where can I fix this, i.e. increasing heap size?

I am looking at package on minimwatch, it says minimserver-update-250.

=================
....
....
Error: java.lang.OutOfMemoryError: Java heap space at offset 299184069 in file DSD/3/XXXXXX/11 - .dsf (length 299184252)
Error: java.lang.OutOfMemoryError: Java heap space at offset 157134784 in file DSD/3/XXXXXX/12 - .dsf (length 157134967)
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:525)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:150)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jminim.launch.Launcher.launch(Launcher.java:88)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38)
Caused by: java.lang.OutOfMemoryError: Java heap space
MinimServer: error calling LauncherImpl.launch: java.lang.reflect.InvocationTargetException
ending MinimServer
stopping MinimServer[NAS-HS210]
MinimServer[NAS-HS210] is stopped
Find all posts by this user
Quote this message in a reply
30-04-2024, 14:46
Post: #14
RE: QNAP starts but crash out
To increase the maximum heap size available to MinimServer, create a file named minimstart.conf in the MinimServer/etc shared folder. This file should contain this single line:

javaopts = -Xmx256m

After creating this file, stop and restart MinimServer from the QNAP App Center. This will increase the maximum heap size for MinimServer to 256 MB. If you need more heap space than this, change the value in the file and stop and restart MinimServer.
Find all posts by this user
Quote this message in a reply
01-05-2024, 11:59
Post: #15
RE: QNAP starts but crash out
Thank you Simon.
I did what you suggested and it is now up and running!!!

Thank you again for your help.
Find all posts by this user
Quote this message in a reply
02-08-2024, 21:39
Post: #16
RE: QNAP starts but crash out
Hi Simon,

I just encountered the same problem. Out of the blue after adding a few more files to the QNAP NAS.
I followed your instructions, added the config file with the line javaopts = -Xmx256m but it doesn´t work.
Can you help please? It´s hard to spend an evening without music.
Cheers,
Tom

MinimServer crash dump, produced at 20240802-223140.049

java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.jav​a:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuilder.append(StringBuilder.java:136)
at java.lang.Throwable.toString(Throwable.java:481)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.minimserver.PlaylistReader.readFileData(PlaylistReader.java:39)
at com.minimserver.Server.readMetadata(Server.java:12451)
at com.minimserver.Server.access$16500(Server.java:186)
at com.minimserver.Server$Directory.postVisit(Server.java:18270)
at com.minimserver.Server$Visitor.postVisitDirectory(Server.java:18686)
at com.minimserver.Server$LinkVisitor.postVisitDirectory(Server.java:18726)
at com.minimserver.Server$LinkVisitor.postVisitDirectory(Server.java:18703)
at java.nio.file.Files.walkFileTree(Files.java:2688)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at com.minimserver.Server$Visitor.visitFile(Server.java:18656)
at com.minimserver.Server$Visitor.visitFile(Server.java:18551)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at com.minimserver.Server.readFiles(Server.java:9236)
at com.minimserver.Server.doStart(Server.java:3943)
at com.minimserver.Server.start(Server.java:1427)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:214)
at org.jminim.core.ContextImpl.start(ContextImpl.java:139)
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2966)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1327)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:498)

"Thread-32" id=48 RUNNABLE (in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:200)
at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​63)
at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:129)

"Thread-31" id=47 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPConnection@1df5404
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:110)
at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​45)
at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:430)

"Thread-30" id=46 RUNNABLE (in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:200)
at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​63)
at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:129)

"Thread-29" id=45 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPConnection@1bb99fe
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:110)
at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​45)
at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:430)

"Thread-27" id=43 RUNNABLE (in native)
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at org.jminim.lib.HTTPConnection$ReaderThread.readRequest(HTTPConnection.java:200)
at org.jminim.lib.HTTPConnection$ReaderThread.runReaderThread(HTTPConnection.java:1​63)
at org.jminim.lib.HTTPConnection$ReaderThread.run(HTTPConnection.java:129)

"Thread-26" id=42 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPConnection@1e6680
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPConnection.getRequest(HTTPConnection.java:110)
at org.jminim.lib.HTTPConnection.access$1700(HTTPConnection.java:18)
at org.jminim.lib.HTTPConnection$WriterThread.runWriterThread(HTTPConnection.java:4​45)
at org.jminim.lib.HTTPConnection$WriterThread.run(HTTPConnection.java:430)

"Thread-7" id=18 RUNNABLE (in native)
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
at java.net.ServerSocket.implAccept(ServerSocket.java:545)
at java.net.ServerSocket.accept(ServerSocket.java:513)
at org.jminim.lib.HTTPService.runServerThread(HTTPService.java:369)
at org.jminim.lib.HTTPService.access$200(HTTPService.java:31)
at org.jminim.lib.HTTPService$1.run(HTTPService.java:354)

"Thread-6" id=17 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.HTTPService$SocketThread@1a9cb79
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.HTTPService$SocketThread.run(HTTPService.java:425)

"Thread-5" id=16 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$TimerThread@183fc01
at org.jminim.lib.OhNetService$TimerThread.run(OhNetService.java:1237)

"Thread-4" id=15 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.lib.OhNetService$ActionThread@1482d79
at java.lang.Object.wait(Object.java:502)
at org.jminim.lib.OhNetService$ActionThread.run(OhNetService.java:1192)

"Thread-1" id=8 TIMED_WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$TimerThread@19a0c82
at org.jminim.core.RuntimeImpl$TimerThread.run(RuntimeImpl.java:4719)

"Thread-0" id=7 WAITING
at java.lang.Object.wait(Native Method)
- waiting on org.jminim.core.RuntimeImpl$ActionThread@95f60b
at java.lang.Object.wait(Object.java:502)
at org.jminim.core.RuntimeImpl$ActionThread.run(RuntimeImpl.java:4673)

"Signal Dispatcher" id=4 RUNNABLE

"Finalizer" id=3 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@e275ac
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:164)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209)

"Reference Handler" id=2 WAITING
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@63a5ec
at java.lang.Object.wait(Object.java:502)
at java.lang.ref.Reference.tryHandlePending(Reference.java:191)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:153)

"main" id=1 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:448)
at org.jminim.core.LogImpl.writeCrashDump(LogImpl.java:1249)
at org.jminim.core.LogImpl.printStackTraceSync(LogImpl.java:1174)
- locked org.jminim.core.LogImpl@11245fe
at org.jminim.core.LogImpl.printStackTrace(LogImpl.java:169)
at org.jminim.core.ContextImpl.startComponent(ContextImpl.java:243)
at org.jminim.core.ContextImpl.start(ContextImpl.java:139)
- locked java.lang.Object@3add39
at org.jminim.core.RuntimeImpl.run(RuntimeImpl.java:2966)
at org.jminim.core.LauncherImpl.run(LauncherImpl.java:1327)
at org.jminim.core.LauncherImpl.launch(LauncherImpl.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jminim.mlaunch.MinimLaunch.doLaunch(MinimLaunch.java:525)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:150)
at org.jminim.mlaunch.MinimLaunch.launch(MinimLaunch.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav​a:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jminim.launch.Launcher.launch(Launcher.java:88)
at com.minimserver.launch.LaunchServer.main(LaunchServer.java:38)

- - - - - - - - - - - - - - - -
Find all posts by this user
Quote this message in a reply
02-08-2024, 22:16
Post: #17
RE: QNAP starts but crash out
You might need a larger number for heap space. This number depends on your property settings and on the size of your library.

Try increasing the javaopts setting from -Xmx256m to -Xmx512m. If this still doesn't work, please post the model number of your QNAP NAS.
Find all posts by this user
Quote this message in a reply
03-08-2024, 05:06 (This post was last modified: 03-08-2024 08:16 by thomasw.)
Post: #18
RE: QNAP starts but crash out
I changed it to -Xmx512m but it still crashes.
When scanning it seems like the scan hits a wall at a cache size smaller than the size of the previous scan from July 20. Could one of the newly added folders corrupt the scanning process?

It´s a QNAP TS-231K with two 16TB drives, mirrorred, about half full.

Thanks for your help.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
03-08-2024, 10:27
Post: #19
RE: QNAP starts but crash out
From the stack trace in your first post, the original out of memory error occurred while reading a playlist file. There might be a problem with this playlist file (for example, it might contain an entry pointing back to the same playlist file).

To see which playlist file was being read when the problem occurred, do the following:

1) Open the MinimServer configuration web page
2) Set the .logLevel property to Debug
3) Do a rescan
4) When you get the error, use QNAP File Station to look at the contents of the minimserver.log file in the MinimServer shared folder
5) Near the end of this file, you should see the file path of the playlist file that was being read when the error occurred
Find all posts by this user
Quote this message in a reply
03-08-2024, 13:22
Post: #20
RE: QNAP starts but crash out
It worked. I found the culprit and deleted the whole folder. It was a 5GB file with the ending ALAC.m3u Seriously??????
The new scan was successful. I had no idea a playlist file could crash the whole thing.

Thanks a lot for your help. I could not have done it without you.

Should I delete the minimstart.conf in the MinimServer/etc shared folder? It is now set to javaopts = -Xmx512m

Cheers,
Tom
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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