> From: Tim Funk [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat memory question > > But class definitions (IIRC) do not go onto the heap so you > could have a lot of classes without any worries.
Actually, an instance of java.lang.Class is created for each classloader/class combination, and these are in the heap - in the Permanent Generation for HotSpot-based JVMs. Besides the dozen or so Java fields in each instance of java.lang.Class, the JVM keeps quite a bit of additional information (e.g., method table pointers) in each instance that is visible and accessible only to the JVM itself, not any Java code. Running a large number of webapps in Tomcat will often require increasing the portion of the total heap that is assigned to the PermGen. You can find some discussions about this in the archives. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]