On Monday 13 September 2004 11:10, Eli Kara wrote: > On Monday 13 September 2004 10:46, Sobolevsky Vladek wrote: > > Hi All, > > I have problem to run more then 1000 threads on Linux. > > I get Out of Memory error, the program written in Java so I suspect > > it related
> Have you tried increasing the amount of memory available to the Java > VM when launching a process ? If I'm not mistaken, Java uses (by > default) a maximum of 64MB of memory per instance of the JVM and will > limit your application accordingly. This is most likely the issue. if you are using Sun's JVM, then try adding -Xmx parameter with the ammount of dynamic memory you have (or more then that if that's not enough), for example -Xmx800m for 800MB. IIRC the default is something like 256MB which is now almost never enough. Also you might want to try to play with other -X parameters: type java -X for a list of those. -- Oded ::.. The brain is a wonderful organ; it starts working the moment you get up in the morning, and does not stop until you get to school. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]