-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chuck,
On 1/8/2010 3:34 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Max heap size >> >> Here's an updated script to check for maximum heap. > > Just remember that this measures the maximum heap available to an > extremely simple process. For a complex execution like Tomcat or some > other app server, the amount of space needed for non-heap structures > (e.g., open file descriptions, additional native libraries, stacks) > might have to be traded off against the Java heap. Fair enough, but I don't believe the JVM checks the "size" of the code to be run before deciding if it can launch the JVM: it will simply attempt to allocate the memory you request and then launch your main method. Had I used org.apache.catalina.Bootstrap as the main class within the same script, I suspect I would have gotten the same results for my maximum heap test. There's nothing to say that the JVM wouldn't shut down after some time because it ran out of native heap, etc. but I don't think the size of the test case here is all that relevant. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktHnPsACgkQ9CaO5/Lv0PBH8gCfURoUAUZ5qSF2mD8qg45jJnOH twsAn2bBKC46vDLaWdYbVTmm5CrqfdUI =Pu6U -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org