Java "Out of memory" errors causing program stops

I have a new OSX 10.6 server developing increasing wowza crash problems. We have done all the configs fine tunes including java heap increases and garbage adjustments but keep having this error after a few minutes to hours of run time. What have I missed?

The repeated message is:


java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start0(Native Method)

at java.lang.Thread.start(Thread.java:615)

at org.apache.mina.util.NewThreadExecutor.execute(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.startupWorker(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketIoProcessor.addNew(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.processSessions(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(Unknown Source)

at org.apache.mina.util.NamePreservingRunnable.run(Unknown Source)

at java.lang.Thread.run(Thread.java:637)

Please do zip up and send conf and logs and we will take a look.

Charlie

Please do zip up and send conf and logs and we will take a look.

Charlie

How much memory does that server have and what is the java heap size set to?

What’s happening before this? Are you re-streaming from an IP cam or vlc or something else?

Richard

Have you followed all the tuning suggestions? Do be sure to switch to Java 6.

https://www.wowza.com/docs/how-to-do-performance-tuning

Zip up and send your conf and logs folders to support@wowza.com and reference this thread and we will take a look.

Charlie

Thanks for the post. The server is a Mac Xserve 8core intel with 16gigs of ram. The heap is set to 8 gigs and garbage to a little over 1 gig. The OS is 10.6.2 and Wowza 2.0 Unlimited. We have run wowza for more thn 2.5 years with no major issues and this problem has intensified to the point that the media server locks with the out of memory message as often as every 5 minutes.

All of this is happening with a mix of video chats and mostly small recorded videos displayed. We are talking less than maybe 50 simultaneous connections.

Thanks Charlie,

Yes we have implemented all of the steps from the post you gave. It has not helped. Crashes are as often as every 5 minutes but usually take about 45 minutes to an hour.