tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VASQUEZ_JA...@LILLY.COM
Subject Re: does tomcat always for this much?
Date Fri, 24 Aug 2001 21:50:43 GMT
The reason you see so many "processes" is a result of the way Linux 
threading works.  Linux creates a process for every thread, so a java app 
with 16 threads, will show 16 processes.  In my experience, linux will 
display them as all using the exact same amount of memory -- but, you 
don't add them up -- the memory shown for one of those processes *is* the 
total for all of them. 

It's frustrating (hard to track down the main process to kill it 
sometimes), but it shouldn't be anything to worry about.

-jason





Daniel Lamblin <daniell@kapowee.com>
08/24/2001 04:38 PM
Please respond to tomcat-user

 
        To:     tomcat-user@jakarta.apache.org
        cc: 
        Subject:        does tomcat always for this much?



I have tomcat, running through apache on a pentium machine with 32mb of 
ram
running debain linux.  Normally this machine would be fine for serving a
few small pages.  It even does well with tomcat.  But there's something
that concerns me going on:

I have 7 contexts, and 4 virtual hosts setup, maybe that might explain it,
but tomcat just seems to like to allocate a bunch of memory for a bunch of
forks:

24269 daniell   19   0  1212 1212   688 R       0 33.6  1.8   0:23 top
12774 root       1   0 24180  18M  2064 S       0  3.8 30.2 229:35 java
12461 root       0   0 24180  18M  2064 S       0  3.7 30.2 266:03 java
12765 root       1   0 24180  18M  2064 S       0  3.7 30.2 141:43 java
11186 root       0   0 24180  18M  2064 S       0  3.4 30.2 396:17 java
12292 root       0   0 24180  18M  2064 S       0  3.3 30.2 313:36 java
12422 root       1   0 24180  18M  2064 S       0  3.3 30.2 301:51 java
11181 root       1   0 24180  18M  2064 S       0  3.2 30.2 336:00 java
12770 root       0   0 24180  18M  2064 S       0  3.2 30.2 223:01 java
22851 root       0   0 24180  18M  2064 S       0  3.2 30.2 129:10 java
12424 root       0   0 24180  18M  2064 S       0  3.1 30.2 328:19 java
12773 root       1   0 24180  18M  2064 S       0  3.1 30.2 219:35 java
12294 root       1   0 24180  18M  2064 S       0  2.9 30.2 315:20 java
12299 root       1   0 24180  18M  2064 S       0  2.9 30.2 340:21 java
12428 root       0   0 24180  18M  2064 S       0  2.8 30.2 320:21 java
12464 root       0   0 24180  18M  2064 S       0  2.8 30.2 290:18 java
12293 root       1   0 24180  18M  2064 S       0  2.7 30.2 326:51 java

I have never seen anything so scarry.  tomcat doesn't run like this on
other systems... and its not even being asked to do anything in the last
hour or so.

Is this expected?  what can people do to limit this sort of thing? please
mail daniell@kapowee.com
oh yeah this is 3.2.1

see also ps ax output:
11121 ?        S      0:24 [java]
11148 ?        S      1:08 [java]
11149 ?        S     13:54 [java]
11150 ?        S      0:09 [java]
11151 ?        S      0:26 [java]
11152 ?        S    175:58 [java]
11153 ?        S      0:00 [java]
11154 ?        S      0:00 [java]
11155 ?        S      0:31 [java]
11156 ?        S      4:23 [java]
11157 ?        S      0:06 [java]
11158 ?        S      0:04 [java]
11159 ?        S      0:05 [java]
11160 ?        S      0:05 [java]
11161 ?        S      0:05 [java]
11162 ?        S      0:05 [java]
11163 ?        S      0:05 [java]
11164 ?        S      0:04 [java]
11165 ?        S      0:05 [java]
11166 ?        S      0:05 [java]
11167 ?        S      0:05 [java]
11168 ?        S      0:05 [java]
11169 ?        S      0:00 [java]
11170 ?        S      0:00 [java]
11171 ?        S      0:00 [java]
11172 ?        S      0:00 [java]
11173 ?        S      0:00 [java]
11174 ?        S      0:00 [java]
11175 ?        S      0:00 [java]
11176 ?        S      0:00 [java]
11177 ?        S      0:00 [java]
11178 ?        S      0:00 [java]
11179 ?        S      0:06 [java]
11180 ?        S    358:55 [java]
11181 ?        S    336:47 [java]
11182 ?        S    345:22 [java]
11183 ?        S    376:11 [java]
11184 ?        S    372:19 [java]
11185 ?        S    366:28 [java]
11186 ?        S    397:02 [java]
11187 ?        S    682:53 [java]
11188 ?        S    755:39 [java]
11189 ?        S    1967:50 [java]
11190 ?        S      0:06 [java]
11193 ?        S      0:31 [java]
12290 ?        S    311:15 [java]
12291 ?        S    317:25 [java]
12292 ?        S    314:21 [java]
12293 ?        S    327:37 [java]
12294 ?        S    316:06 [java]
12295 ?        S    315:46 [java]
12296 ?        S    310:09 [java]
12297 ?        S    317:27 [java]
12298 ?        S    311:17 [java]
12299 ?        S    341:05 [java]
12419 ?        S    299:30 [java]
12420 ?        S    306:20 [java]
12421 ?        S    316:25 [java]
12422 ?        S    302:37 [java]
12423 ?        S    318:37 [java]
12424 ?        S    329:06 [java]
12425 ?        S    313:38 [java]
12426 ?        S    315:40 [java]
12427 ?        S    324:35 [java]
12428 ?        S    321:07 [java]
12460 ?        S    266:20 [java]
12461 ?        S    266:46 [java]
12462 ?        S    277:03 [java]
12463 ?        S    273:58 [java]
12464 ?        S    291:02 [java]
12465 ?        S    301:17 [java]
12466 ?        S    301:07 [java]
12467 ?        S    295:56 [java]
12468 ?        R    310:28 [java]
12469 ?        S    304:12 [java]
12765 ?        S    142:30 [java]
12766 ?        S    137:16 [java]
12767 ?        S    180:14 [java]
12768 ?        S    173:41 [java]
12769 ?        S    224:51 [java]
12770 ?        S    223:47 [java]
12771 ?        S    225:57 [java]
12772 ?        S    217:16 [java]
12773 ?        S    220:19 [java]
12774 ?        S    230:19 [java]
22842 ?        S      0:00 [java]
22843 ?        S      0:00 [java]
22844 ?        S      0:00 [java]
22845 ?        S      0:00 [java]
22846 ?        S      0:12 [java]
22847 ?        S      0:41 [java]
22848 ?        S      0:52 [java]
22849 ?        S    126:07 [java]
22850 ?        S    135:34 [java]
22851 ?        S    129:56 [java]





Mime
View raw message