Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-15 Thread qi zhang
I got Open too many files error when I set the max open files 4096, so that I changed it to 9182. But I think no matter how large it is, it won't affect the performace, right? I'm not good at Java. But I don't think I reloaded the classes in Tomcat manager. I didn't change web.xml. Is it the

Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-08 Thread Jeff Tulley
Look at the open files - it is 9182. That IS already pretty high, but you may be hitting that limit since in Unix, everything is a file. Sockets, etc. On Linux, is there a way in the JVM to tell the difference between memory given to the new generation, old generation, and permanent generation

Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-06 Thread qi zhang
Hi, I have stunk on this problem for almost 2 weeks. :-( In these two weeks, I have tried many methods, but it still doesn't work. I built a system to run TPCW benchmark. One web and application server, with tomcat4.0 running, one database with mysql4.0 running on it and several client

Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-06 Thread Tim Funk
When you get java.lang.OutOfMemoryError: unable to create new native thread it means you are running into an operating system limit. You can give the JVM 1 Exabyte of memory and you'll still get this error. Look at the kernel parameters for your machine and the following limits: 1) Threads

Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-06 Thread qi zhang
I am using Linux2.4.20-smp. I think the limits for the entire system are not problem: cat /proc/sys/kernel/threads-max 14336 cat /proc/sys/fs/file-max 209708 cat /proc/sys/fs/file-nr 22311366209708 ulimit -a core file size(blocks, -c) 0 data seg size (kbytes, -d) unlimited

Re: Urgent! Tomcat4 closed giving Out of Memory Error

2003-12-06 Thread Tim Funk
I would hunt the archives, I did a search for outofmemoryerror native and saw this - I am sure there are more similar threads with this issue: http://marc.theaimsgroup.com/?l=tomcat-userm=105535455830487w=2 If _POSIX_THREAD_THREADS_MAX=64 - then you would have problems since that means tomcat