[Solved] OutOfMemory Error
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Re: OutOfMemory Error
@mik_s
I spoke too soon again.
Just now the OutOfMemory issue happened again.
Attached is the log file with log level set to ALL.
Cheers
I spoke too soon again.
Just now the OutOfMemory issue happened again.
Attached is the log file with log level set to ALL.
Cheers
- Attachments
-
- debug.log.zip
- (1.46 MiB) Downloaded 5617 times
Re: OutOfMemory Error
Damn I thought we had figured this out and just made an issue for it.
At least there is not mention of those libraries so it confirms that was one problem.
This appears to happen on svc/upnp-org/ContentDirectory/action events as several ids comes up with this error when browsing a folder.
This is definitely something for the Devs to troubleshoot as I have no idea. I'll update the issue to add this too.
At least there is not mention of those libraries so it confirms that was one problem.
This appears to happen on svc/upnp-org/ContentDirectory/action events as several ids comes up with this error when browsing a folder.
Code: Select all
TRACE 2025-07-12 13:03:37.469 [jupnp-stream-server-74] HttpServlet HttpServlet.service(): id: 90, request URI: /dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action
TRACE 2025-07-12 13:03:37.469 [jupnp-stream-server-74] Handling Servlet request asynchronously: ServletApiRequest@12fd7eb{ServletContextRequest@8cabf1{POST@80929 http://192.168.0.2:5001/dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action HTTP/1.1}}
WARN 2025-07-12 13:03:37.469 [jupnp-stream-server-74] /dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:809)
at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:945)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1364)
at org.jupnp.transport.RouterImpl.received(RouterImpl.java:284)
at net.pms.network.mediaserver.jupnp.transport.async.JakartaAsyncServlet.service(JakartaAsyncServlet.java:67)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736)
at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1619)
at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1552)
at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819)
at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:436)
at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:469)
at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1060)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:151)
at org.eclipse.jetty.server.Server.handle(Server.java:182)
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:662)
at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:418)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:480)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:443)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
at java.base/java.lang.Thread.run(Thread.java:840)
TRACE 2025-07-12 13:03:37.470 [jupnp-stream-server-74] Stream Async Error, id: 90, uri: /dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action, duration: 1 ms
TRACE 2025-07-12 13:03:37.470 [jupnp-stream-server-74] Asynchronous processing of HTTP request error
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:809)
at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:945)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1364)
at org.jupnp.transport.RouterImpl.received(RouterImpl.java:284)
at net.pms.network.mediaserver.jupnp.transport.async.JakartaAsyncServlet.service(JakartaAsyncServlet.java:67)
at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)
at org.eclipse.jetty.ee10.servlet.ServletHolder.handle(ServletHolder.java:736)
at org.eclipse.jetty.ee10.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1619)
at org.eclipse.jetty.ee10.servlet.ServletHandler$MappedServlet.handle(ServletHandler.java:1552)
at org.eclipse.jetty.ee10.servlet.ServletChannel.dispatch(ServletChannel.java:819)
at org.eclipse.jetty.ee10.servlet.ServletChannel.handle(ServletChannel.java:436)
at org.eclipse.jetty.ee10.servlet.ServletHandler.handle(ServletHandler.java:469)
at org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1060)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:151)
at org.eclipse.jetty.server.Server.handle(Server.java:182)
at org.eclipse.jetty.server.internal.HttpChannelState$HandlerInvoker.run(HttpChannelState.java:662)
at org.eclipse.jetty.server.internal.HttpConnection.onFillable(HttpConnection.java:418)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:322)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:99)
at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:480)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:443)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:293)
at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:201)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:311)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:979)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1209)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1164)
at java.base/java.lang.Thread.run(Thread.java:840)
TRACE 2025-07-12 13:03:37.474 [jupnp-stream-server-74] Stream Async Complete, id: 90, uri: /dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action, duration: 5 ms
TRACE 2025-07-12 13:03:37.474 [jupnp-stream-server-74] Completed asynchronous processing of HTTP request: ServletApiRequest@12fd7eb{ServletContextRequest@8cabf1{POST@80929 http://192.168.0.2:5001/dev/27b1ad66-cfee-4ace-8223-b1f142a4abcd/svc/upnp-org/ContentDirectory/action HTTP/1.1}}Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: OutOfMemory Error
@mik_s
I am wondering if there was no mention of those libraries because it was set to ALL and not TRACE as previously.
Out of interest, I might set the log level to TRACE and get a log of that when it next gets the error.
I am wondering if there was no mention of those libraries because it was set to ALL and not TRACE as previously.
Out of interest, I might set the log level to TRACE and get a log of that when it next gets the error.
Re: OutOfMemory Error
The logs were in trace mode.
That "All" option only applies to the media server log level which is a separate thing.
This normally suppresses logspam from the networking library, I think.
I know this option was added not that long ago and remember some discussion about reducing logspam.
In your previous logs it was logged as an ERROR or WARN so would show no matter what the log level was.
That "All" option only applies to the media server log level which is a separate thing.
This normally suppresses logspam from the networking library, I think.
I know this option was added not that long ago and remember some discussion about reducing logspam.
In your previous logs it was logged as an ERROR or WARN so would show no matter what the log level was.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: OutOfMemory Error
@mik_s
Just FYI, the OutOfMemory issue is present in V14.13.0 as well.
Just FYI, the OutOfMemory issue is present in V14.13.0 as well.
Re: OutOfMemory Error
@mik_s
Do you know if this issue has been resolved as yet.
It has been quite some time (3 months) and I see no information in new releases about resolving this.
Thanks
Do you know if this issue has been resolved as yet.
It has been quite some time (3 months) and I see no information in new releases about resolving this.
Thanks
Re: OutOfMemory Error
I have not heard anything but could not see any cause of it so far. I'll update that issue to see if @Subjunk has any ideas
Since it is happening when you TV is on it has to be related to some of the communications that is normally not logged.
Could you do those logs I asked for making sure the media server log level is set to trace.
This is not the same as running UMS in trace mode (that still needs to be set too), its separate logging and has to be enabled on the Web UI.
Start with the TV off and when starting UMS to let it settle for about 10 mins then turn it on and try browsing and playing something.
I don't know if it is of any use to you but in 15.1 the docker container was switched from alpine to ubuntu and some permissions were fixed marking programs as executable.
Since it is happening when you TV is on it has to be related to some of the communications that is normally not logged.
Could you do those logs I asked for making sure the media server log level is set to trace.
This is not the same as running UMS in trace mode (that still needs to be set too), its separate logging and has to be enabled on the Web UI.
Start with the TV off and when starting UMS to let it settle for about 10 mins then turn it on and try browsing and playing something.
I don't know if it is of any use to you but in 15.1 the docker container was switched from alpine to ubuntu and some permissions were fixed marking programs as executable.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: OutOfMemory Error
@mik_s
From the Web GUI, the options are only:
None.
Media Server Only.
Basic.
Full.
I'm guessing the option to choose is "Full".
This "Full" option makes the following change to UMS.conf
From:
upnp_log_level = 1
To
upnp_log_level = 3
At present I am testing V15 to see if the issue is still in that version.
If it still exists in V15 I will create the logs with TRACE and FULL mode.
That all said, I would have thought the developers would have some idea what changes they made from V14.11 to V14.12 that created this issue.
V14.11 to V14.12 should only be a minor update.
Thanks
From the Web GUI, the options are only:
None.
Media Server Only.
Basic.
Full.
I'm guessing the option to choose is "Full".
This "Full" option makes the following change to UMS.conf
From:
upnp_log_level = 1
To
upnp_log_level = 3
At present I am testing V15 to see if the issue is still in that version.
If it still exists in V15 I will create the logs with TRACE and FULL mode.
That all said, I would have thought the developers would have some idea what changes they made from V14.11 to V14.12 that created this issue.
V14.11 to V14.12 should only be a minor update.
Thanks
Re: OutOfMemory Error
Yeah you are right that does not have a trace option, I just quickly skimmed over this thread and did not actually check it.
Full should give everything.
I actually thought that setting was stored in the browser and not in UMS.conf as I could not see any reference to it in mine before, but having tried it myself not that long ago I do see it appended to the end of it. It might not have been documented like the other settings.
Full should give everything.
I actually thought that setting was stored in the browser and not in UMS.conf as I could not see any reference to it in mine before, but having tried it myself not that long ago I do see it appended to the end of it. It might not have been documented like the other settings.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
Re: OutOfMemory Error
@mik_s
I installed V15 about 2 weeks ago.
Since then, the OutOfMemory issue has not happened.
Cheers
I installed V15 about 2 weeks ago.
Since then, the OutOfMemory issue has not happened.
Cheers
