Sounds like you have a memory leak in your program. Yes, it is possible to have memory leaks even in Java programs. All you have to do is to add objects to a collection type (map, set, list, etc) and then forget to remove them, or null all references to the collection.
There are several software tools available to assist in detecting such leaks. I personally use OptimizeIt although I'm not sure if it is still the best one out there. I think they have an evaluation version you can download. Alternatively you can try to find the leak with a debugger and/or print stataments. Alexander On Thu, Nov 15, 2001 at 03:32:33AM -0800, kulkarni sourabh wrote: > Hi All, > My application runs on celeron processor with 128MB > RAM. OS- Redhat 6.2. I use Sun JDK1.3 currently. My > application has around 5-6 threads running...but one > of the thread stops after around 2-2.5 hrs of running. > The message is > java.lang.OutOfMemoryError: Unable to create new > native thread > java.lang.Thread.start(Native method) > > I searched through the net for 2 days but i haven't > found the solution yet. I found that this is a listed > bug at Sun and it's due to thread implementation on > linux. > > I wanted to know whether using green threads can > solve my problem? Also at Sun's bug parade, I found > mention about Blackdown JDK being good implementation. > With Sun jdk, I am using HotSpot Client VM .. and > there is no help by setting Xms Xmx Xss or any of the > parameters. The problem persists. > Can using Blackdown JDK help me? > Any help in very much appreciated, > -sourabh ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]