Can it work on Win2k? Thanks, --- Luc Santeramo <[EMAIL PROTECTED]> wrote: > Hi, > > there is a way to limit memory use by tomcat > just specify it in your CATALINA_OPTS env var > here is mine > CATALINA_OPTS="-server -Xmx220m -Xms220m > -Dfile.encoding=UTF-8" > > these are jvm parameter I think > Xmx is the max mem to use and Xms is the min > > hope this helps > > Luc > > At 11:03 13/12/2002 +0100, Marco Bucciarelli wrote: > >Hi, I have also this problem/doubt: how to limit > the number of threads > >opened by Tomcat? > >I tried to change a lot of settings in server.xml > but nothing influenced > >that number. > >I have always 46 new java processes opened by > Tomcat. > > > >I did this test (Linux RedHat 7.0, Tomcat 4.1.12, > Apache 1.3.12, Sun JDK > >1.4.1_01): > >- reboot the machine, with tomcat service disabled > at startup > >- the free command gives me 221.196Kb of memory > free (Total 256Mk) > >- start tomcat > >- I found 46 new java processes > >- the top command says that every process uses 56Mb > of RAM > >- the free command now gives me 44.436Kb free > > > >All this without accessing to Apache or Tomcat, > only before and after the > >start of Tomcat! > > > >Of course I do not have a memory usage of 46*56Mb, > but I do not have only > >56Mb of RAM used by Tomcat (after the start I have > only 44Mb of memory free, > >before the start I had 220Mb free). > > > >What is happening? > > > >Bye, > >Marco. > > > > > >From: "Galbayar" > >Subject: Re: Tomcat using VERY LARGE Memory > (URGENT!!!!!!!!!) > >Date: Tue, 12 Mar 2002 10:26:21 +0800 > > > >it is top result and every java process using 59M > RAM > >i'm use mod_jk integrated Tomcat with Apache and > Tomcat > >top result is : > > > > > >110 processes: 109 sleeping, 1 running, 0 zombie, 0 > stopped > >CPU states: 2.3% user, 1.9% system, 0.0% nice, > 95.6% idle > >Mem: 1028860K av, 938924K used, 89936K free, > 116K shrd, > >139628K > >buff > >Swap: 1020116K av, 0K used, 1020116K free > >680228K > >cached > > > > PID USER PRI NI SIZE RSS SHARE STAT %CPU > %MEM TIME > >COMMAND > >17862 root 15 0 1092 1092 836 R 1.7 > 0.1 0:00 top > >17293 root 13 0 28176 59M 9576 S 1.5 > 2.7 0:01 java > >17272 root 10 0 28176 59M 9576 S 0.1 > 2.7 0:02 java > > > >and see MEM usage total RAM is 1028860K 938924K > used, 89936K free > > > > > >----- Original Message ----- > >From: "Filip Hanik" <[EMAIL PROTECTED]> > >To: "Tomcat Users List" > <[EMAIL PROTECTED]> > >Sent: Tuesday, March 12, 2002 10:14 > >Subject: RE: Tomcat using VERY LARGE Memory > (URGENT!!!!!!!!!) > > > > > > > what you are seeing is that "ps" or "top" lists > one process for > >each > >thread > > > in Tomcat. > > > your tomcat is running 59M all together > > > > > > Filip > > > > > > ~ > > > Namaste - I bow to the divine in you > > > ~ > > > Filip Hanik > > > Software Architect > > > [EMAIL PROTECTED] > > > www.filip.net > > > > > > >-----Original Message----- > > > >From: Galbayar [mailto:[EMAIL PROTECTED]] > > > >Sent: Monday, March 11, 2002 6:04 PM > > > >To: Tomcat Users List > > > >Subject: Tomcat using VERY LARGE Memory > (URGENT!!!!!!!!!) > > > > > > > > > > > >Hello all > > > >Here is part of top output. Is it usual that > java > > > >processes eat all of memory? ? At now there are > 50 java > >processes started > > > >that running tomcat and each of them uses 59M > memory. There > >is running > > > >apache > > > >server with tomcat 4 and mysql. OS is Redhat7.2 > x86 . JDK > >1.4 is > >installed. > > > >how to solve this problem? > > > > > > > >106 processes: 105 sleeping, 1 running, 0 > zombie, 0 stopped > > > >CPU states: 0.3% user, 3.4% system, 0.0% nice, > 96.1% idle > > > >Mem: 1028860K av, 1022352K used, 6508K free, > 116K shrd, > >129004K buff > > > >wap: 1020116K av, 0K used, 1020116K free > 762320K cached > > > > > > > >3201 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 > java > > > >3202 root 8 0 60692 59M 28164 S 0.0 5.8 0:00 > java > > > >3203 root 9 0 60692 59M 28164 S 0.0 5.8 0:35 > java > > > >3204 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 > java > > > >3205 root 9 0 60692 59M 28164 S 0.0 5.8 0:01 > java > > > >3206 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 > java > > > >3207 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 > java > > > >3208 root 9 0 60692 59M 28164 S 0.0 5.8 0:00 > java > > > >3209 root 9 0 60692 59M 28164 S 0.0 5.8 0:03 > java > > > > > > > > > > > > > > > > > -- > > > To unsubscribe: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > > > For additional commands: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > > > Troubles with the list: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > > > > > > > > > > > > > > >-- > >To unsubscribe: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > >For additional commands: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > >Troubles with the list: <mailto:tomcat-user- > >[EMAIL PROTECTED]> > > > > > > > >-- > >To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > >For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > === message truncated ===
__________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
