> From: Yue Yuanyuan [mailto:yue.yuany...@gmail.com] > Subject: About the virtual host
> After I edited the server.xml to add one virtual > host, it becomes extremely slow. Your heap settings may be marginal - but you didn't tell us what they are, nor even what JVM version you're running with. (If it's gcj, throw it out and install a real JVM.) There's at least one site with hundreds of <Host> entries in a single Tomcat without a problem, so just declaring a second one is not the real issue. How do you determine slowness? Is CPU usage high? What's in the logs? What does GC logging show? > And it got out of memory exceptions after I deployed > one project (20M size) on the the new virtual host. Another possible indication that your heap is undersized - or that you've got a really broken webapp. Note that size on disk is irrelevant with respect to heap usage. > Is that possible two virtual host to use different > memory space? No, they're part of the same JVM. > Or how could I have two tomcat instances running on > the same server? You could do that, but you should really fix the problem, not attack the symptom. - 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