Vmware and Tomcat 5.x 6.x
Hi, I am fairly new to this user group. I have deployed Tomcat 5.0 and Tomcat6.0 on our Virtualized environment; consist of ESX 3.0 servers with Clarion storage. This is first ever deployment of our product on virtual environment and we are facing lots of issues of slowness. There are too many variables to monitor and looking for some path to follow. Previously, I have deployed tomcat in our physical server environment and it's running absolutely fine with all performance tunning in place but same is not working in virtual environment. I was hoping to get some input as if anyone is aware of such issue of vmware and tomcat. Please let me know if you need any further details about components used in our deployment or any details pertinent to this issue. Thank you in advance. Mitesh
Re: Vmware and Tomcat 5.x 6.x
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitesh, Mitesh Shah wrote: This is first ever deployment of our product on virtual environment and we are facing lots of issues of slowness. There are too many variables to monitor and looking for some path to follow. Is the whole server slow, or do you notice that certain operations are slow? I was hoping to get some input as if anyone is aware of such issue of vmware and tomcat. AFAIK, there are no Tomcat-specific vmware issues. However, there could be some problems with the JVM in general that you might be coming across. For instance, if you are using a source of randomness that blocks when used through the virtual environment, that might cause a problem. Also, if you are using non-native disks (meaning a big file on the host OS that holds the entire filesystem for the VM), you may experience some slowdown, there. I'm not sure what Clarion is... could that be a problem at all? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp VSqAodugC0GLy8LRk5In52I= =nMgC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Vmware and Tomcat 5.x 6.x
Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions are on SAN. Whole server works fine but our application works using tomcat and I have installed around 20 instances of tomcats on one virtual machine (2.66GHz and 4GB RAM). On similar line, does JDK takes advantage of two CPU compared to one CPU? I can reconfigure Swap file on separate disks than OS disk and see if it performs better. Please let me know if above info helps in understanding issue better? Mitesh Shah Hosted Services Engineer -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 6:01 PM To: Tomcat Users List Subject: Re: Vmware and Tomcat 5.x 6.x -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitesh, Mitesh Shah wrote: This is first ever deployment of our product on virtual environment and we are facing lots of issues of slowness. There are too many variables to monitor and looking for some path to follow. Is the whole server slow, or do you notice that certain operations are slow? I was hoping to get some input as if anyone is aware of such issue of vmware and tomcat. AFAIK, there are no Tomcat-specific vmware issues. However, there could be some problems with the JVM in general that you might be coming across. For instance, if you are using a source of randomness that blocks when used through the virtual environment, that might cause a problem. Also, if you are using non-native disks (meaning a big file on the host OS that holds the entire filesystem for the VM), you may experience some slowdown, there. I'm not sure what Clarion is... could that be a problem at all? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp VSqAodugC0GLy8LRk5In52I= =nMgC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vmware and Tomcat 5.x 6.x
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitesh, Mitesh Shah wrote: Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions are on SAN. Okay. That shouldn't be a problem. Whole server works fine but our application works using tomcat and I have installed around 20 instances of tomcats on one virtual machine (2.66GHz and 4GB RAM). OMG that is a /lot/ of Tomcat instances. How many request-handler threads do you have configured for each? On similar line, does JDK takes advantage of two CPU compared to one CPU? You didn't say what JDK version you are using, but unless you have something that is seriously out of date, the JDK will use as many CPUs as you have available to the VM. I can reconfigure Swap file on separate disks than OS disk and see if it performs better. With 20 JVMs running on a 4GB machine, I'd say that swapping is going to be a huge problem. Try running a single instance to see how it works out. If that is reasonably fast, then try adding more instances until it starts to suck. Then, check your swap file usage and I'll bet you'll see that at some point, you start to heavily swap. You're not seeing Tomcat hosing... you're seeing your OS thrashing. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+GgH9CaO5/Lv0PARAuAWAJ98MOnNnZzJay8SwaG8ieSjmCrDAACgrS1S qVirHsVVczlbKe6GVKpoZ7Y= =I6VL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Vmware and Tomcat 5.x 6.x
Mitesh, The most important thing with regards to the JVM, is available memory. Of extra importance in this case is the amount of memory (REAL/PHYSICAL) allocated to the Virtual Environment (VMWare). That said, you also need to determine the Memory Heap usage of each of the JVM instances. Sluggishness usually indicates a memory shortage. At that point SWAP consumption increases. As you would image disk swap would be much slower than real memory. Besides sluggishness, SWAP usage may increase the chance of disk failure because essentially you are using a 100% of resources. In short compare the total Memory Heaps of all the JVMS to the total memory allocated to the Virtual Environment of the VMWare instance. Mitesh Shah wrote: Thanks Chris for reply. Clarion is SAN, so all are data and OS partitions are on SAN. Whole server works fine but our application works using tomcat and I have installed around 20 instances of tomcats on one virtual machine (2.66GHz and 4GB RAM). On similar line, does JDK takes advantage of two CPU compared to one CPU? I can reconfigure Swap file on separate disks than OS disk and see if it performs better. Please let me know if above info helps in understanding issue better? Mitesh Shah Hosted Services Engineer -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 6:01 PM To: Tomcat Users List Subject: Re: Vmware and Tomcat 5.x 6.x -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitesh, Mitesh Shah wrote: This is first ever deployment of our product on virtual environment and we are facing lots of issues of slowness. There are too many variables to monitor and looking for some path to follow. Is the whole server slow, or do you notice that certain operations are slow? I was hoping to get some input as if anyone is aware of such issue of vmware and tomcat. AFAIK, there are no Tomcat-specific vmware issues. However, there could be some problems with the JVM in general that you might be coming across. For instance, if you are using a source of randomness that blocks when used through the virtual environment, that might cause a problem. Also, if you are using non-native disks (meaning a big file on the host OS that holds the entire filesystem for the VM), you may experience some slowdown, there. I'm not sure what Clarion is... could that be a problem at all? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+DOF9CaO5/Lv0PARAtSKAJ0T6KHaEBu8WC6c9QSnea0QWtj/8QCguIhp VSqAodugC0GLy8LRk5In52I= =nMgC -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards Gabe Wong Private JVM JAVA Hosting Automation http://www.ngasi.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]