Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
Hi all, Any ideas from the log I sent.. Thank you -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-31 à 11:04, Caldarale, Charles R a écrit : From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat Ok Again, change the extension to .zip The .zip got to the list on your first attempt. The attachment stripped message came from the overly protective e-mail server of one of the subscribers to the list, not the list itself. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: AW: AW: Virtualization (Xen, vmware) + Tomcat
From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat Any ideas from the log I sent.. Haven't had time to look at it in detail, but these issues are pretty obvious: java.sql.SQLException: Access denied for user 'atventdemo'@'localhost' Mar 31, 2010 9:55:00 AM org.apache.jasper.EmbeddedServletOptions init SEVERE: The scratchDir you specified: /usr/local/jakarta/apache-tomcat-5.5.28/work/Catalina/share.orongo.com/vivirenchile.info is unusable. - 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
Re: AW: Virtualization (Xen, vmware) + Tomcat
Hi Steffen, uname -a Dom0: Linux pbn041.privatedns.com 2.6.18.8-xen #1 SMP Thu Oct 1 14:00:22 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux DomU: Linux s041.panelboxmanager.com 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:03:03 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux Config for DomU -- name = vm-s041 memory = 15360 maxmem = 30720 vcpus = 8 bootloader=/usr/bin/pygrub root = /dev/sda1 extra = fastboot independent_wallclock=1 pae=0 acpi=0 apic=0 on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'destroy' #disk = [ 'tap:aio:/dev/drbdX,sda,w' ] disk = [ 'drbd:drbd1,sda,w' ] vif = [ 'bridge=xenbr0', 'bridge=xenbr1' ] sdl=0 vnc=0 vncunused=1 stdvga=0 ne2000=0 - ps aux | grep java root 13234 0.1 2.5 4484708 412636 pts/0 Sl Mar30 1:12 /usr/local/jdk/bin/java -Djava.util.logging.config.file=/usr/local/jakarta/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/jakarta/tomcat/common/endorsed -classpath /usr/local/jakarta/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/jakarta/tomcat -Dcatalina.home=/usr/local/jakarta/tomcat -Djava.io.tmpdir=/usr/local/jakarta/tomcat/temp org.apache.catalina.startup.Bootstrap start root 24865 2.2 0.0 10132 360 ?Rs Mar30 13:28 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms512M org.apache.catalina.startup.Bootstrap -security ** free total used free sharedbuffers cached Mem: 16327680 16163808 163872 0 755128 12192708 -/+ buffers/cache:3215972 13111708 Swap: 1951888 59001945988 ** xm list NameID Mem VCPUs State Time(s) Domain-0 0 510 8 r- 658995.4 vm-s041 6 15945 8 r- 9433881.3 ** xm info host : pbn041.privatedns.com release: 2.6.18.8-xen version: #1 SMP Thu Oct 1 14:00:22 EDT 2009 machine: x86_64 nr_cpus: 8 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz: 2500 hw_caps: bfebfbff:20100800::0140:040ce3bd::0001: virt_caps : hvm total_memory : 32766 free_memory: 15945 node_to_cpu: node0:0-7 node_to_memory : node0:15945 xen_major : 3 xen_minor : 4 xen_extra : .1 xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 xen_scheduler : credit xen_pagesize : 4096 platform_params: virt_start=0x8000 xen_changeset : unavailable cc_compiler: gcc version 4.1.2 20080704 (Red Hat 4.1.2-44) cc_compile_by : root cc_compile_domain : (none) cc_compile_date: Thu Oct 1 14:05:08 EDT 2009 xend_config_format : 4 ** Hope you will find something with all this information :) -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-30 à 18:13, Steffen Heil a écrit : And maybe `xm info` in the dom0. -Ursprüngliche Nachricht- Von: Steffen Heil [mailto:li...@steffen-heil.de] Gesendet: Mittwoch, 31. März 2010 00:12 An: 'Tomcat Users List' Betreff: AW: Virtualization (Xen, vmware) + Tomcat Hi Can you post: - `uname -a` inside both your dom0 as well as your domU - the config file for your domU - `ps aux | grep java` inside your domU - `free` inside your domU - `xm list` inside your dom0 Maybe there will be hints to help you. I am running lots of tomcats in domUs (actually all non-development installations are virtualized), and I never had a problem related to xen. Regards, Steffen -Ursprüngliche Nachricht- Von: Eric Laflamme [mailto:elafla...@iweb.com] Gesendet: Dienstag, 30. März 2010 19:16 An: Tomcat Users List Betreff: Re: Virtualization (Xen, vmware) + Tomcat Hi Peter, Here is the information about the server: We have a Xen Host with CentOS release 5.4 (Final) In that host, we have a vm with CentOS release 5.4 (Final) We install a cPanel 11.25 The version of tomcat is 5.5.28 The tomcat we use is the one package with cPanel. We already communicate with their support. A lot of time.. But they are, like us, clueless on how to solve this problem. So I came here as another step to try to resolve this issue. I don't know if the problem is Tomcat itself or Tomcat only have a symptom of another problem. But as we only have this problem and log of the problem by now, we start
AW: AW: Virtualization (Xen, vmware) + Tomcat
Hi Looks fine, no direct pointers... Only one strange thing: root 13234 0.1 2.5 4484708 412636 pts/0 Sl Mar30 1:12 /usr/local/jdk/bin/java -Djava.util.logging.config.file=/usr/local/jakarta/tomcat/conf/logging.prope rties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/jakarta/tomcat/common/endorsed -classpath /usr/local/jakarta/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/jakarta/tomcat -Dcatalina.home=/usr/local/jakarta/tomcat -Djava.io.tmpdir=/usr/local/jakarta/tomcat/temp org.apache.catalina.startup.Bootstrap start root 24865 2.2 0.0 10132 360 ?Rs Mar30 13:28 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms512M org.apache.catalina.startup.Bootstrap -security Are these lines complete? Especially the last one? The first one has all the arguments needed by tomcat, but has no heap size arguments for the VM. The second line has the heap sizes, but no tomcat arguments. Also try the following: 1. stop all java processes and anything trying to start tomcat for you 2. cd /usr/local/jakarta/tomcat/bin 3. su tomcat 4. ./catalina.sh run What happens? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
Hi, Hi Looks fine, no direct pointers... Only one strange thing: root 13234 0.1 2.5 4484708 412636 pts/0 Sl Mar30 1:12 /usr/local/jdk/bin/java -Djava.util.logging.config.file=/usr/local/jakarta/tomcat/conf/logging.prope rties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/jakarta/tomcat/common/endorsed -classpath /usr/local/jakarta/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/jakarta/tomcat -Dcatalina.home=/usr/local/jakarta/tomcat -Djava.io.tmpdir=/usr/local/jakarta/tomcat/temp org.apache.catalina.startup.Bootstrap start root 24865 2.2 0.0 10132 360 ?Rs Mar30 13:28 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms512M org.apache.catalina.startup.Bootstrap -security Are these lines complete? Especially the last one? The first one has all the arguments needed by tomcat, but has no heap size arguments for the VM. The second line has the heap sizes, but no tomcat arguments. Yes, those are the complete lines I have in ps aux. Not sure what argument is missing in that case.. Also try the following: 1. stop all java processes and anything trying to start tomcat for you 2. cd /usr/local/jakarta/tomcat/bin 3. su tomcat 4. ./catalina.sh run What happens? A lot of thing happen.. I put the log in attachment but I'm not sure attachment work in mailing list lol Regards, Steffen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: AW: AW: Virtualization (Xen, vmware) + Tomcat
From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat root 24865 2.2 0.0 10132 360 ?Rs Mar30 13:28 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms512M org.apache.catalina.startup.Bootstrap -security Not sure what argument is missing in that case.. Looks like the -X* and -security options are not being passed through to the JVM process. A lot of thing happen.. I put the log in attachment but I'm not sure attachment work in mailing list lol It didn't make it through. Using a .zip file usually does, or you can post it somewhere on the web. - 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
Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed. If this email is from an unknown source, please simply delete this email. If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments. + Instruct the sender to enclose the file(s) in a .zip compressed file, and rename the .zip compressed file with a different extension, such as, .rtnzip. Password protecting the renamed .zip compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension .zip. Additional instructions and options on how to receive these attachments can be found at: http://security.it.ray.com/antivirus/extensions.html http://security.it.ray.com/news/2007/zipfiles.html Should you have any questions or difficulty with these instructions, please contact the Help Desk at 877.844.4712 --- Hi, From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat root 24865 2.2 0.0 10132 360 ?Rs Mar30 13:28 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms512M org.apache.catalina.startup.Bootstrap -security Not sure what argument is missing in that case.. Looks like the -X* and -security options are not being passed through to the JVM process. Nos that I restart tomcat after killing every java stuff.. I ended up with only this two line: root 1123 0.0 0.0 10132 352 ?Ss 09:59 0:00 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms1024M org.apache.catalina.startup.Bootstrap -security tomcat1124 0.7 2.6 1374944 431912 ? Sl 09:59 0:16 jsvc.exec -user tomcat -cp ./bootstrap.jar -Djava.endorsed.dirs=../common/endorsed -outfile ../logs/catalina.out -errfile ../logs/catalina.err -verbose -Xmx1024M -Xms1024M org.apache.catalina.startup.Bootstrap -security A lot of thing happen.. I put the log in attachment but I'm not sure attachment work in mailing list lol It didn't make it through. Using a .zip file usually does, or you can post it somewhere on the web. Ok I'm retrying with .zip file. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: AW: AW: Virtualization (Xen, vmware) + Tomcat
This email contained a .zip file attachment. Raytheon does not allow email attachments that are considered likely to contain malicious code. For your protection this attachment has been removed. If this email is from an unknown source, please simply delete this email. If this email was expected, and it is from a known sender, you may follow the below suggested instructions to obtain these types of attachments. + Instruct the sender to enclose the file(s) in a .zip compressed file, and rename the .zip compressed file with a different extension, such as, .rtnzip. Password protecting the renamed .zip compressed file adds an additional layer of protection. When you receive the file, please rename it with the extension .zip. Additional instructions and options on how to receive these attachments can be found at: http://security.it.ray.com/antivirus/extensions.html http://security.it.ray.com/news/2007/zipfiles.html Should you have any questions or difficulty with these instructions, please contact the Help Desk at 877.844.4712 --- Ok Again, change the extension to .zip Thank you. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: AW: AW: Virtualization (Xen, vmware) + Tomcat
From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: AW: AW: Virtualization (Xen, vmware) + Tomcat Ok Again, change the extension to .zip The .zip got to the list on your first attempt. The attachment stripped message came from the overly protective e-mail server of one of the subscribers to the list, not the list itself. - 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
Virtualization (Xen, vmware) + Tomcat
Hi, We have a lot of server using virtualization (xen source) and we have a lot of problem with tomcat. Tomcat process seems to stop responding after undetermined time and write in loop this in the catalina.out: Error occurred during initialization of VM Could not reserve enough space for object heap The servers has 32 gig of ram so it's not the ram that is in need. We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Thank you. -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Virtualization (Xen, vmware) + Tomcat
From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap That would indicate you're not allocating enough virtualized memory to the virtual server - that's your configuration error in Xen or VMware, nothing to do with Tomcat. The servers has 32 gig of ram so it's not the ram that is in need. The amount of RAM is irrelevant, other than as a performance constraint. tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M Giving the JVM 1 GB of heap space will likely require at least 2 GB of memory for the virtual machine. Again, it's your virtual machine configuration that's inadequate, not anything you're doing with Tomcat. - 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
Re: Virtualization (Xen, vmware) + Tomcat
There are two uses of virtual machine here. I'll distinguish the Java virtual machine and the Xen virtual machine. On 30 March 2010 16:29, Eric Laflamme elafla...@iweb.com wrote: We have a lot of server using virtualization (xen source) and we have a lot of problem with tomcat. Tomcat process seems to stop responding after undetermined time and write in loop this in the catalina.out: Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Is Tomcat running inside a Xen VM? If so, how much memory is allocated to the Xen VM? The servers has 32 gig of ram so it's not the ram that is in need. *Which* server? The host for your Xen virtual machines, or a particular Xen virtual machine? We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Keep -Xms and -Xmx the same. If you do that, Java will allocate all the heap as it starts. You will either get a failure at startup (which is easier to deal with) or the heap memory will be allocated. As you have found, allowing Java to grow its heap while it is running causes problems when another process is using memory. - Peter
RE: Virtualization (Xen, vmware) + Tomcat
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Actually, that's the JVM trying to allocate the *initial* space for the heap, not extend it. There hasn't been any attempt to load and run Tomcat yet. - 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
Re: Virtualization (Xen, vmware) + Tomcat
Hi Peter, Thank you for you answer.. Le 2010-03-30 à 11:37, Peter Crowther a écrit : There are two uses of virtual machine here. I'll distinguish the Java virtual machine and the Xen virtual machine. Yes, I'm talking more of Xen VM. On 30 March 2010 16:29, Eric Laflamme elafla...@iweb.com wrote: We have a lot of server using virtualization (xen source) and we have a lot of problem with tomcat. Tomcat process seems to stop responding after undetermined time and write in loop this in the catalina.out: Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Is Tomcat running inside a Xen VM? If so, how much memory is allocated to the Xen VM? Yes Tomcat is running inside the VM and is, by the way, a cPanel. The servers has 32 gig of ram so it's not the ram that is in need. *Which* server? The host for your Xen virtual machines, or a particular Xen virtual machine? The host have 32 gig of ram but we allocated all of them to the only vm running. So tomcat is running in a vm that have 32 gig of ram. We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Keep -Xms and -Xmx the same. If you do that, Java will allocate all the heap as it starts. You will either get a failure at startup (which is easier to deal with) or the heap memory will be allocated. We try all kind of allocation and the problem isn't showing at startup.. It happen only after few hours. If this can help, it can happen on a server that doesn't contain any data.. A fresh install of Cpanel and after few hours, it can happen.. As you have found, allowing Java to grow its heap while it is running causes problems when another process is using memory. - Peter I always restart tomcat when adding heap memory.. Thank you. Eric L. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Virtualization (Xen, vmware) + Tomcat
On 30 March 2010 16:45, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Actually, that's the JVM trying to allocate the *initial* space for the heap, not extend it. There hasn't been any attempt to load and run Tomcat yet. My mistake. In that case, if Eric's seeing lots of those in the log files, it implies that the JVM intended to host Tomcat is repeatedly failing to start and some other process is repeatedly trying to start Tomcat. Eric, could you tell us more about your statement that Tomcat is running inside the VM and is, by the way, a cPanel? - What operating system? - What version of Tomcat? - Did you download the Tomcat directly from http://tomcat.apache.org, or was it packaged with some third-party software? In particular, if it's a version of Tomcat that was packaged with cPanel, you may well be better asking them about the issue. - Peter
Re: Virtualization (Xen, vmware) + Tomcat
Eric Laflamme wrote: ... We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Keep -Xms and -Xmx the same. If you do that, Java will allocate all the heap as it starts. You will either get a failure at startup (which is easier to deal with) or the heap memory will be allocated. We try all kind of allocation and the problem isn't showing at startup.. It happen only after few hours. If this can help, it can happen on a server that doesn't contain any data.. A fresh install of Cpanel and after few hours, it can happen.. As you have found, allowing Java to grow its heap while it is running causes problems when another process is using memory. - Peter I always restart tomcat when adding heap memory.. Independently of the rest of the issue, I think that what Peter was telling you, is to use for example : -Xms1024M -Xmx1024M In other words, keep these two parameters equal. That will cause the JVM to allocate the 1024M to the heap right at the beginning, and keep the heap always at the same size. Otherwise : 1) the JVM which runs Tomcat will start with 512M for the heap, but may have a problem later, when it needs more, tries to get it from the Xen VM where it is running, and (maybe) cannot get it then. 2) when the two parameters are not equal, the JVM regularly tries to adjust the size of the heap dynamically. This costs some performance. When the parameters are equal, this dynamic adjustment work does not happen. Another question : are all the components which are involved here, capable of using 32 GB of RAM ? I don't know what exactly matters here, but maybe there are 32/64 bit issues somewhere. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Virtualization (Xen, vmware) + Tomcat
On 30/03/2010 16:29, Eric Laflamme wrote: Hi, We have a lot of server using virtualization (xen source) and we have a lot of problem with tomcat. Tomcat process seems to stop responding after undetermined time and write in loop this in the catalina.out: Error occurred during initialization of VM Could not reserve enough space for object heap The servers has 32 gig of ram so it's not the ram that is in need. We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Thank you. As an aside, it's consider bad form (thread hijacking) to reply to someone elses email then change the subject and body to your own message. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Virtualization (Xen, vmware) + Tomcat
Hi, Let me first apologize for that, I'm pretty new with mailing list.. It won't happen again. -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-30 à 12:11, Pid a écrit : On 30/03/2010 16:29, Eric Laflamme wrote: Hi, We have a lot of server using virtualization (xen source) and we have a lot of problem with tomcat. Tomcat process seems to stop responding after undetermined time and write in loop this in the catalina.out: Error occurred during initialization of VM Could not reserve enough space for object heap The servers has 32 gig of ram so it's not the ram that is in need. We tried to specifiy the memory for tomcat like: -Xmx1024M -Xms512M But nothing seems to help. Does anybody have any ideas for this behaviour? Thank you. As an aside, it's consider bad form (thread hijacking) to reply to someone elses email then change the subject and body to your own message. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Virtualization (Xen, vmware) + Tomcat
Hi Peter, Here is the information about the server: We have a Xen Host with CentOS release 5.4 (Final) In that host, we have a vm with CentOS release 5.4 (Final) We install a cPanel 11.25 The version of tomcat is 5.5.28 The tomcat we use is the one package with cPanel. We already communicate with their support. A lot of time.. But they are, like us, clueless on how to solve this problem. So I came here as another step to try to resolve this issue. I don't know if the problem is Tomcat itself or Tomcat only have a symptom of another problem. But as we only have this problem and log of the problem by now, we start with tomcat to maybe found what is the real problem. -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-30 à 12:01, Peter Crowther a écrit : On 30 March 2010 16:45, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Actually, that's the JVM trying to allocate the *initial* space for the heap, not extend it. There hasn't been any attempt to load and run Tomcat yet. My mistake. In that case, if Eric's seeing lots of those in the log files, it implies that the JVM intended to host Tomcat is repeatedly failing to start and some other process is repeatedly trying to start Tomcat. Eric, could you tell us more about your statement that Tomcat is running inside the VM and is, by the way, a cPanel? - What operating system? - What version of Tomcat? - Did you download the Tomcat directly from http://tomcat.apache.org, or was it packaged with some third-party software? In particular, if it's a version of Tomcat that was packaged with cPanel, you may well be better asking them about the issue. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Virtualization (Xen, vmware) + Tomcat
From: Eric Laflamme [mailto:elafla...@iweb.com] Subject: Re: Virtualization (Xen, vmware) + Tomcat Here is the information about the server: Except the critical bit, which is how much virtualized memory have you provisioned the virtual server with? The evidence points to that being insufficient. We install a cPanel 11.25 We still have no idea what cPanel is. I don't know if the problem is Tomcat itself or Tomcat only have a symptom of another problem. If the JVM initialization message your posted previously is in fact the only symptom you're seeing, then it has nothing to do with Tomcat - Tomcat isn't even started at that point. If you're running out of virtualized memory for your virtualized server to the point that another process (the JVM) cannot even start, you need to find out what's consuming the virtualized memory. Tools like ps might help. - 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
AW: Virtualization (Xen, vmware) + Tomcat
Hi Can you post: - `uname -a` inside both your dom0 as well as your domU - the config file for your domU - `ps aux | grep java` inside your domU - `free` inside your domU - `xm list` inside your dom0 Maybe there will be hints to help you. I am running lots of tomcats in domUs (actually all non-development installations are virtualized), and I never had a problem related to xen. Regards, Steffen -Ursprüngliche Nachricht- Von: Eric Laflamme [mailto:elafla...@iweb.com] Gesendet: Dienstag, 30. März 2010 19:16 An: Tomcat Users List Betreff: Re: Virtualization (Xen, vmware) + Tomcat Hi Peter, Here is the information about the server: We have a Xen Host with CentOS release 5.4 (Final) In that host, we have a vm with CentOS release 5.4 (Final) We install a cPanel 11.25 The version of tomcat is 5.5.28 The tomcat we use is the one package with cPanel. We already communicate with their support. A lot of time.. But they are, like us, clueless on how to solve this problem. So I came here as another step to try to resolve this issue. I don't know if the problem is Tomcat itself or Tomcat only have a symptom of another problem. But as we only have this problem and log of the problem by now, we start with tomcat to maybe found what is the real problem. -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-30 à 12:01, Peter Crowther a écrit : On 30 March 2010 16:45, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Actually, that's the JVM trying to allocate the *initial* space for the heap, not extend it. There hasn't been any attempt to load and run Tomcat yet. My mistake. In that case, if Eric's seeing lots of those in the log files, it implies that the JVM intended to host Tomcat is repeatedly failing to start and some other process is repeatedly trying to start Tomcat. Eric, could you tell us more about your statement that Tomcat is running inside the VM and is, by the way, a cPanel? - What operating system? - What version of Tomcat? - Did you download the Tomcat directly from http://tomcat.apache.org, or was it packaged with some third-party software? In particular, if it's a version of Tomcat that was packaged with cPanel, you may well be better asking them about the issue. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org smime.p7s Description: S/MIME cryptographic signature
AW: Virtualization (Xen, vmware) + Tomcat
And maybe `xm info` in the dom0. -Ursprüngliche Nachricht- Von: Steffen Heil [mailto:li...@steffen-heil.de] Gesendet: Mittwoch, 31. März 2010 00:12 An: 'Tomcat Users List' Betreff: AW: Virtualization (Xen, vmware) + Tomcat Hi Can you post: - `uname -a` inside both your dom0 as well as your domU - the config file for your domU - `ps aux | grep java` inside your domU - `free` inside your domU - `xm list` inside your dom0 Maybe there will be hints to help you. I am running lots of tomcats in domUs (actually all non-development installations are virtualized), and I never had a problem related to xen. Regards, Steffen -Ursprüngliche Nachricht- Von: Eric Laflamme [mailto:elafla...@iweb.com] Gesendet: Dienstag, 30. März 2010 19:16 An: Tomcat Users List Betreff: Re: Virtualization (Xen, vmware) + Tomcat Hi Peter, Here is the information about the server: We have a Xen Host with CentOS release 5.4 (Final) In that host, we have a vm with CentOS release 5.4 (Final) We install a cPanel 11.25 The version of tomcat is 5.5.28 The tomcat we use is the one package with cPanel. We already communicate with their support. A lot of time.. But they are, like us, clueless on how to solve this problem. So I came here as another step to try to resolve this issue. I don't know if the problem is Tomcat itself or Tomcat only have a symptom of another problem. But as we only have this problem and log of the problem by now, we start with tomcat to maybe found what is the real problem. -- Eric Laflamme [iWeb] IT Architecture Specialist Spécialiste de l'Architecture TI http://www.iWeb.com/ Le 2010-03-30 à 12:01, Peter Crowther a écrit : On 30 March 2010 16:45, Caldarale, Charles R chuck.caldar...@unisys.comwrote: From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On Behalf Of Peter Crowther Subject: Re: Virtualization (Xen, vmware) + Tomcat Error occurred during initialization of VM Could not reserve enough space for object heap OK, so that's the Java virtual machine running Tomcat not being able to extend its heap. Actually, that's the JVM trying to allocate the *initial* space for the heap, not extend it. There hasn't been any attempt to load and run Tomcat yet. My mistake. In that case, if Eric's seeing lots of those in the log files, it implies that the JVM intended to host Tomcat is repeatedly failing to start and some other process is repeatedly trying to start Tomcat. Eric, could you tell us more about your statement that Tomcat is running inside the VM and is, by the way, a cPanel? - What operating system? - What version of Tomcat? - Did you download the Tomcat directly from http://tomcat.apache.org, or was it packaged with some third-party software? In particular, if it's a version of Tomcat that was packaged with cPanel, you may well be better asking them about the issue. - Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org smime.p7s Description: S/MIME cryptographic signature