Java memory problem(?)

Need help? Post your questions here.

Moderator: moderators

Java memory problem(?)

Postby ddweb » Mon Mar 04, 2013 4:11 pm

Hello i have a problem with my subsonic...is crashing very often...i get this error in the log file...

322050003 [btpool0-0 - Acceptor0 SelectChannelConnector@0.0.0.0:4040] WARN org.mortbay.log - dispatch failed!
Exception in thread "btpool0-0" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:691)
at org.mortbay.thread.BoundedThreadPool.newThread(BoundedThreadPool.java:377)
at org.mortbay.thread.BoundedThreadPool.dispatch(BoundedThreadPool.java:94)
at org.mortbay.jetty.nio.SelectChannelConnector$1.dispatch(SelectChannelConnector.java:86)
at org.mortbay.io.nio.SelectChannelEndPoint.dispatch(SelectChannelEndPoint.java:68)
at org.mortbay.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:502)
at org.mortbay.io.nio.SelectorManager.doSelect(SelectorManager.java:168)
at org.mortbay.jetty.nio.SelectChannelConnector.accept(SelectChannelConnector.java:124)
at org.mortbay.jetty.AbstractConnector$Acceptor.run(AbstractConnector.java:514)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Java HotSpot(TM) 64-Bit Server VM warning: Attempt to deallocate stack guard pages failed.

Can anyone help me with this?

Thanks
ddweb
 
Posts: 23
Joined: Thu Apr 26, 2012 2:18 pm

Re: Java memory problem(?)

Postby bushman4 » Mon Mar 04, 2013 4:17 pm

Increase the amount of memory allocated to Subsonic.

If you tell us what platform you are running Subsonic on it would be easier to be more specific.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Java memory problem(?)

Postby ddweb » Mon Mar 04, 2013 4:46 pm

I use 4.7 and i have increase this memory to 1024 do have any idea how much i must increase the memory?
ddweb
 
Posts: 23
Joined: Thu Apr 26, 2012 2:18 pm

Re: Java memory problem(?)

Postby bushman4 » Mon Mar 04, 2013 4:51 pm

You shouldn't need anywhere near that amount. Try dropping it to 512.

And to help further I'd need to know what platform (ie, Windows standalone, Tomcat hosted on Windows, etc...) you are running on, not what version of Subsonic.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Java memory problem(?)

Postby hakko » Mon Mar 04, 2013 4:53 pm

A google search for the error message (it seems a bit different than "usual" OutOfMemoryExceptions) gives a couple of interesting answers.

my first hit for example: http://stackoverflow.com/questions/1281 ... g-zip-file

This seems more related to the platform you're running on than a software bug to me.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Java memory problem(?)

Postby ddweb » Mon Mar 04, 2013 4:56 pm

I have this problem and when the memory max was at 512 i increase this to 1024 but now i have again this problem... i hosted in Tomcat server.

Thanks for your help:)
ddweb
 
Posts: 23
Joined: Thu Apr 26, 2012 2:18 pm

Re: Java memory problem(?)

Postby GJ51 » Mon Mar 04, 2013 6:59 pm

"Java HotSpot(TM) 64-Bit Server VM warning: Attempt to deallocate stack guard pages failed."

Most likely you have Java related problems. Default memory settings are usually adequate since moving most functions into the db since 4.7. I"ve never had to use more than 256 even when trying to overload the program by accessing multiple library copies.

You've been asked but fail to identify your platform details, so further assistance would just be a guess.

I usually recommend a careful reinstall by removing ALL Java components, then installing the latest release for your platform. If that doesn't work, you may also need to do the same with Tomcat and Subsonic.

Remember that Subsonic will have problems with Tomcat 7, so use Tomcat 6.

Good luck.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Help

Who is online

Users browsing this forum: No registered users and 40 guests