OutofMemoryError: no new native threads can be created

Hi,I need run over 10,000 threads concurrently, but got OutofMemoryError. I know this problem can be fixed by increasing heap size. But how to do that? Any ideas or other solutions on that?Thank you very much.Henry
[249 byte] By [travelingliona] at [2007-10-2 17:53:52]
# 1
I doubt that will fix it. Last time I tried it the maximum was around 2,000 threads. Might be more now though.The javadocs provide all of the command line information... http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#options
jschella at 2007-7-13 19:12:21 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Presumably you also understand that unless the vast majority of those threads are doing nothing but blocking then it is pointless to use them?
jschella at 2007-7-13 19:12:21 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...