RE: Installing Multiple Instances on Windows Server 2003
Found the issue. I just needed a for cicle with millions of loops. There was only kernel calls that saturated CPU till 45-50%. A resource was waiting something. Don't know if it was the HDD or the network. I have to check. Thanks for the tip, Peter :) Peter Crowther wrote: > >> From: Steve G.B. [mailto:[EMAIL PROTECTED] >> I've created a VM with 4 VCores, and all of the cores are >> allocated to the VM. > > OK, so 50% CPU = 2 cores maxed out. Out of interest, is it 25% with only > one Tomcat started? > >> I'm using Sun JVM 1.6, and stressing the Guest with >> Loadrunner on another >> machine (if you ask: this machine with loadrunner isn't the >> bottleneck) >> >> No Databases, no I/O requests, no Network saturation. > > OK. > > Given that you're getting exactly 50% CPU use (it *is* exact, right?) that > indicates the test harness is very unlikely to be the problem. It would > almost certainly bottleneck at some other CPU value. > >> that's why I think it's the JVM. >> For my tests I used the standard demo webapp in Loarunner >> (Mercury Tours), >> and a couple of stupid jsp pages. So Apache and Tomcat both. > > I'll highlight that to the folks who know the demo app better: does it run > properly under load? I'd assume so... > >> Fun thing is that when using Tomcat and Apache combined, I >> can get an 80-85% CPU Utilization. > > Yes. If you've got httpd passing everything through it as well, you'll > increase the CPU load - that's expected! > >> Problem is that for my tests I need >> something more simple and the same server. > > Yes. Why add complexity when it's not required? :-) > >> How do you saturate an 8-core host? > > With some reasonably complex code in the JSPs :-). Out of interest, if > your JSPs call something that loops a couple of million times before > returning, what happens to the CPU use? > > - Peter > > ------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19284452.html Sent from the Tomcat - User mailing list archive at Nabble.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]
RE: Installing Multiple Instances on Windows Server 2003
> From: Steve G.B. [mailto:[EMAIL PROTECTED] > I've created a VM with 4 VCores, and all of the cores are > allocated to the VM. OK, so 50% CPU = 2 cores maxed out. Out of interest, is it 25% with only one Tomcat started? > I'm using Sun JVM 1.6, and stressing the Guest with > Loadrunner on another > machine (if you ask: this machine with loadrunner isn't the > bottleneck) > > No Databases, no I/O requests, no Network saturation. OK. Given that you're getting exactly 50% CPU use (it *is* exact, right?) that indicates the test harness is very unlikely to be the problem. It would almost certainly bottleneck at some other CPU value. > that's why I think it's the JVM. > For my tests I used the standard demo webapp in Loarunner > (Mercury Tours), > and a couple of stupid jsp pages. So Apache and Tomcat both. I'll highlight that to the folks who know the demo app better: does it run properly under load? I'd assume so... > Fun thing is that when using Tomcat and Apache combined, I > can get an 80-85% CPU Utilization. Yes. If you've got httpd passing everything through it as well, you'll increase the CPU load - that's expected! > Problem is that for my tests I need > something more simple and the same server. Yes. Why add complexity when it's not required? :-) > How do you saturate an 8-core host? With some reasonably complex code in the JSPs :-). Out of interest, if your JSPs call something that loops a couple of million times before returning, what happens to the CPU use? - Peter - 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: Installing Multiple Instances on Windows Server 2003
It's a Quad Core Intel Xeon with 4GB of RAM and ESX running on it. I've created a VM with 4 VCores, and all of the cores are allocated to the VM. I'm using Sun JVM 1.6, and stressing the Guest with Loadrunner on another machine (if you ask: this machine with loadrunner isn't the bottleneck) No Databases, no I/O requests, no Network saturation. that's why I think it's the JVM. For my tests I used the standard demo webapp in Loarunner (Mercury Tours), and a couple of stupid jsp pages. So Apache and Tomcat both. Fun thing is that when using Tomcat and Apache combined, I can get an 80-85% CPU Utilization. Problem is that for my tests I need something more simple and the same server. So today I've installed the second Tomcat running calling the same jsp page of the other. No think time set. How do you saturate an 8-core host? Please help me :) Stefano Peter Crowther wrote: > >> From: Steve G.B. [mailto:[EMAIL PROTECTED] >> I'm trying to overload the Virtual Machine on which I've >> installed the two Tomcats. > > To check: this is a virtual computer (on a physical host computer) running > a virtual operating system on which you are running two copies of Tomcat > in two separate Java virtual machines? > >> But I can't exceed a 50% of CPU Utilization. > > How many virtual cores have you set up? How many physical cores on the > host computer do you have? How many of those are allocated to the virtual > computer? > >> I believe it's a JVM limitation. > > What JVM are you using? If it's a Sun one, I don't believe you ;-). I've > saturated 8-core processors on 1.4 and 1.5 with no issues; I can't see > that having regressed in 1.6, although I don't have personal experience. > >> Is there a way to change jvm configurations >> in order, for example, to create even more threads? > > Depends on your JVM. But I'm willing to bet that the bottleneck is in one > or more of: > - Your test harness; > - Your web app (do all the threads access a common object?); > - A library you're using that single-threads; > - Your back-end systems, such as your database server. > > - Peter > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19269403.html Sent from the Tomcat - User mailing list archive at Nabble.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]
RE: Installing Multiple Instances on Windows Server 2003
> From: Steve G.B. [mailto:[EMAIL PROTECTED] > I'm trying to overload the Virtual Machine on which I've > installed the two Tomcats. To check: this is a virtual computer (on a physical host computer) running a virtual operating system on which you are running two copies of Tomcat in two separate Java virtual machines? > But I can't exceed a 50% of CPU Utilization. How many virtual cores have you set up? How many physical cores on the host computer do you have? How many of those are allocated to the virtual computer? > I believe it's a JVM limitation. What JVM are you using? If it's a Sun one, I don't believe you ;-). I've saturated 8-core processors on 1.4 and 1.5 with no issues; I can't see that having regressed in 1.6, although I don't have personal experience. > Is there a way to change jvm configurations > in order, for example, to create even more threads? Depends on your JVM. But I'm willing to bet that the bottleneck is in one or more of: - Your test harness; - Your web app (do all the threads access a common object?); - A library you're using that single-threads; - Your back-end systems, such as your database server. - Peter - 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: Installing Multiple Instances on Windows Server 2003
I have another question. I'm trying to overload the Virtual Machine on which I've installed the two Tomcats. But I can't exceed a 50% of CPU Utilization. I believe it's a JVM limitation. Is there a way to change jvm configurations in order, for example, to create even more threads? Thank you! -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19268553.html Sent from the Tomcat - User mailing list archive at Nabble.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]
Re: Installing Multiple Instances on Windows Server 2003
Ok got it. It was the server port 8005 that should be changed. Thank you! bhooshanpandit wrote: > > The error clearly indicates that something is running on port 8080. > It's not the other tomcat but probably some other process.. if you > have oracle it's app server runs on 8080 by default > > Try changing the connector and redirector ports to non default values > (say 18080 and 18443) and see if it works. > > > -Original Message- > From: Steve G.B. <[EMAIL PROTECTED]> > To: users@tomcat.apache.org > Sent: Tue, 2 Sep 2008 4:10 pm > Subject: Re: Installing Multiple Instances on Windows Server 2003 > > > > > > > > > > > > in catalina.log I have this: > > Sep 2, 2008 12:34:44 PM org.apache.catalina.core.StandardServer await > SEVERE: StandardServer.await: create[8005]: > java.net.BindException: Address already in use: JVM_Bind > at java.net.PlainSocketImpl.socketBind(Native Method) > at java.net.PlainSocketImpl.bind(Unknown Source) > at java.net.ServerSocket.bind(Unknown Source) > at java.net.ServerSocket.(Unknown Source) > at > org.apache.catalina.core.StandardServer.await(StandardServer.java:373) > at org.apache.catalina.startup.Catalina.await(Catalina.java:642) > at org.apache.catalina.startup.Catalina.start(Catalina.java:602) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) > Sep 2, 2008 12:34:44 PM org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Sep 2, 2008 12:34:44 PM org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > Sep 2, 2008 12:34:45 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > > > the problem is: > > I have Tomcat 6.0 on Connection port 8080 and redirect port 8443. AJP > port > is 8009 (standard installation ports) > I then have Tomcat 4.1 on Connection port 8083 and redirect port 8447. > AJP > is 8011. > > Still it logs me there's an address already in use. > > > bhooshanpandit wrote: >> >> Can you post the error that it spits out while starting up? >> >> >> -Original Message- >> From: Steve G.B. <[EMAIL PROTECTED]> >> To: users@tomcat.apache.org >> Sent: Tue, 2 Sep 2008 3:49 pm >> Subject: Installing Multiple Instances on Windows Server 2003 >> >> >> >> >> >> >> >> >> >> >> >> Hi, >> >> I need to install multiple instances of Tomcat on my server. >> >> I changed all the connection and redirect ports, but the second > Tomcat >> still >> doesn't start. >> >> What should I do? >> >> Thank you, >> >> Steve >> -- >> View this message in context: >> > http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267576.html >> Sent from the Tomcat - User mailing list archive at Nabble.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] >> >> >> >> >> >> >> >> > >> You are invited to Get a Free AOL Email ID. - http://webmail.aol.in >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267834.html > Sent from the Tomcat - User mailing list archive at Nabble.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] > > > > > > > >
Re: Installing Multiple Instances on Windows Server 2003
The error clearly indicates that something is running on port 8080. It's not the other tomcat but probably some other process.. if you have oracle it's app server runs on 8080 by default Try changing the connector and redirector ports to non default values (say 18080 and 18443) and see if it works. -Original Message- From: Steve G.B. <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Tue, 2 Sep 2008 4:10 pm Subject: Re: Installing Multiple Instances on Windows Server 2003 in catalina.log I have this: Sep 2, 2008 12:34:44 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:642) at org.apache.catalina.startup.Catalina.start(Catalina.java:602) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Sep 2, 2008 12:34:44 PM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Sep 2, 2008 12:34:44 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Sep 2, 2008 12:34:45 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina the problem is: I have Tomcat 6.0 on Connection port 8080 and redirect port 8443. AJP port is 8009 (standard installation ports) I then have Tomcat 4.1 on Connection port 8083 and redirect port 8447. AJP is 8011. Still it logs me there's an address already in use. bhooshanpandit wrote: Can you post the error that it spits out while starting up? -Original Message- From: Steve G.B. <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Tue, 2 Sep 2008 3:49 pm Subject: Installing Multiple Instances on Windows Server 2003 Hi, I need to install multiple instances of Tomcat on my server. I changed all the connection and redirect ports, but the second Tomcat still doesn't start. What should I do? Thank you, Steve -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267576.html Sent from the Tomcat - User mailing list archive at Nabble.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] You are invited to Get a Free AOL Email ID. - http://webmail.aol.in - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267834.html Sent from the Tomcat - User mailing list archive at Nabble.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] You are invited to Get a Free AOL Email ID. - http://webmail.aol.in - 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: Installing Multiple Instances on Windows Server 2003
I posted logs and ports in the other reply. Here I can tell you that the first service started is running quite good, the seconds starts and then crashes. Peter Crowther wrote: > >> From: Steve G.B. [mailto:[EMAIL PROTECTED] >> I need to install multiple instances of Tomcat on my server. >> >> I changed all the connection and redirect ports, but the >> second Tomcat still >> doesn't start. >> >> What should I do? > > Give us more information - that's far too vague for us to help you. > > Post: > - Tomcat versions; > - Any error messages you get in either set of logs while starting Tomcat. > > Also: If you start the two services in the opposite order, which one > fails? Is it always one instance of Tomcat (in which case you should be > looking for config errors in that Tomcat) or is it always the second one > started (in which case you should be looking for contention issues)? > > - Peter > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267883.html Sent from the Tomcat - User mailing list archive at Nabble.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]
Re: Installing Multiple Instances on Windows Server 2003
in catalina.log I have this: Sep 2, 2008 12:34:44 PM org.apache.catalina.core.StandardServer await SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(Unknown Source) at java.net.ServerSocket.bind(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.apache.catalina.core.StandardServer.await(StandardServer.java:373) at org.apache.catalina.startup.Catalina.await(Catalina.java:642) at org.apache.catalina.startup.Catalina.start(Catalina.java:602) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Sep 2, 2008 12:34:44 PM org.apache.coyote.http11.Http11AprProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Sep 2, 2008 12:34:44 PM org.apache.coyote.ajp.AjpAprProtocol pause INFO: Pausing Coyote AJP/1.3 on ajp-8009 Sep 2, 2008 12:34:45 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina the problem is: I have Tomcat 6.0 on Connection port 8080 and redirect port 8443. AJP port is 8009 (standard installation ports) I then have Tomcat 4.1 on Connection port 8083 and redirect port 8447. AJP is 8011. Still it logs me there's an address already in use. bhooshanpandit wrote: > > Can you post the error that it spits out while starting up? > > > -Original Message- > From: Steve G.B. <[EMAIL PROTECTED]> > To: users@tomcat.apache.org > Sent: Tue, 2 Sep 2008 3:49 pm > Subject: Installing Multiple Instances on Windows Server 2003 > > > > > > > > > > > > Hi, > > I need to install multiple instances of Tomcat on my server. > > I changed all the connection and redirect ports, but the second Tomcat > still > doesn't start. > > What should I do? > > Thank you, > > Steve > -- > View this message in context: > http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267576.html > Sent from the Tomcat - User mailing list archive at Nabble.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] > > > > > > > > > You are invited to Get a Free AOL Email ID. - http://webmail.aol.in > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267834.html Sent from the Tomcat - User mailing list archive at Nabble.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]
RE: Installing Multiple Instances on Windows Server 2003
> From: Steve G.B. [mailto:[EMAIL PROTECTED] > I need to install multiple instances of Tomcat on my server. > > I changed all the connection and redirect ports, but the > second Tomcat still > doesn't start. > > What should I do? Give us more information - that's far too vague for us to help you. Post: - Tomcat versions; - Any error messages you get in either set of logs while starting Tomcat. Also: If you start the two services in the opposite order, which one fails? Is it always one instance of Tomcat (in which case you should be looking for config errors in that Tomcat) or is it always the second one started (in which case you should be looking for contention issues)? - Peter - 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: Installing Multiple Instances on Windows Server 2003
Can you post the error that it spits out while starting up? -Original Message- From: Steve G.B. <[EMAIL PROTECTED]> To: users@tomcat.apache.org Sent: Tue, 2 Sep 2008 3:49 pm Subject: Installing Multiple Instances on Windows Server 2003 Hi, I need to install multiple instances of Tomcat on my server. I changed all the connection and redirect ports, but the second Tomcat still doesn't start. What should I do? Thank you, Steve -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267576.html Sent from the Tomcat - User mailing list archive at Nabble.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] You are invited to Get a Free AOL Email ID. - http://webmail.aol.in - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing Multiple Instances on Windows Server 2003
Hi, I need to install multiple instances of Tomcat on my server. I changed all the connection and redirect ports, but the second Tomcat still doesn't start. What should I do? Thank you, Steve -- View this message in context: http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Server-2003-tp19267576p19267576.html Sent from the Tomcat - User mailing list archive at Nabble.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]