Page 1 of 1

Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:11 pm
by ddweb
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

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:17 pm
by bushman4
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

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:46 pm
by ddweb
I use 4.7 and i have increase this memory to 1024 do have any idea how much i must increase the memory?

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:51 pm
by bushman4
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

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:53 pm
by hakko
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.

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 4:56 pm
by ddweb
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:)

Re: Java memory problem(?)

PostPosted: Mon Mar 04, 2013 6:59 pm
by GJ51
"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.