Possible Duplicate:
Can't get past 2542 Threads in Java on 4GB iMac OSX 10.6.3 Snow Leopard (32bit)
I'm running a thread intensive application onto my Mac 64 bit with 8 Gbyte of memory. I have tried to vary the option of the VM arguments (into Eclipse and in cmd line) but for 2500 thread I always got "Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread".
When it crashes I saw that heap memory is only 100 Mbyte...
What's wrong?