Howdy, >I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK >1.4.1_03-b02. Nowhere in the startup scripts do I see it specified how >much memory to use (i.e., with the -Xmx flag). When I call >Runtime.totalMemory(), it gives me 128MB, yet I was under the >impression that the JVM sets aside 64MB by default.
No -Xmx leaves it with the default for the VM. All the -X's are optional parameters. I too thought 64MB was the default. >On a possibly unrelated note, is it feasible to force garbage >collection on Tomcat's JVM, either through Tomcat or the JVM itself? >Googling has revealed only the official answer to this question, but >I've heard that most profilers can do this. No. Profilers, and apps, can call System.gc(), which is a suggestion and cannot force GC. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
