> From: Robinson, Eric [mailto:eric.robin...@psmnv.com] > Subject: Showing Tomcat Memory Utilization with 'top' > > 1. Top shows 0k of swap usage, so the system is not swapping. In that > case, why is there a difference between the VIRT and RES numbers?
Linux always allocates more virtual space than is actually used (thread stack space, for example). The JVM will also reserve, but not commit, the -Xmx size of the heap (and other spaces); it only commits what is really needed. > My understanding is that RES=CODE+DATA and VIRT=RES+SWAP. Nope. RES is real memory usage, VIRT is just whatever space has been allocated, but not necessarily touched. Until a page is touched, it won't exist in RAM or on the swap file. > 2. Where does the 64MB of java heap show up? Buried inside the VIRT number. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org