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)

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.