can't follow heap allocatin

hello, hope my english skills are enough for understanding... :-)

Problem / Configuration:

JVM 1.3.1_01 - -Xms2048 / Tomcat 4.0.6 / SunOS 5.8 (don't want discuss about this configuration - i know it's not a good buildup, but not changeable at the moment)

during a request of an file (PDF) with big size (80M), the JVM allocates more then 2048M of Heap. Is this normal? Do the JVM need this memory or could be something wrong with the webapplication?

[476 byte] By [tbaessle123a] at [2007-10-3 3:57:57]
# 1

Hi

Yeah... the 1st thing would be to criticise ur config :)

Erm... how did u know that JVM allocates > 2G?Your -Xms (initial) was set to 2Gig, so unless u have some GC logs to show for, which 1.3.1_x doesnt have good GC logs until the 1.3.1_17 I think...

If ur web application just plainly sends the pdf... i think u can look @ if u r reading it in memory and sending or read/send bits by bits. If u r generating on-the-fly, well... maybe.. maybe... it really requires 2G :)

fuishiena at 2007-7-14 21:56:23 > top of Java-index,Java HotSpot Virtual Machine,Specifications...