Re: Support
Caldarale, Charles R wrote: The msvcr71.dll file (not msvci70.dll, whatever that is) is required to run the Tomcat service launcher, but not needed when Tomcat is run via scripts. The reason it didn't show up on JRE/JDK 5 is because installation of that JVM version slams a copy of the DLL into C:\windows\system32, regardless of what impact that might have on the system. JRE/JDK 6 installation follows the rules published by Microsoft, and keeps the DLL in the JVM's bin directory. Tomcat should be distributing the DLL (or otherwise insuring its availability) during installation or setup of the Windows service; however, no one's been able to convince the committers of that yet. In summary: - the JVM requires the dll - this is a JVM bug (Sun do not agree) - the best place to hack around this is when the jvm.dll is loaded (ie the daemon project) - a nice summary and all the pointers needed to fix this are here http://www.duckware.com/tech/java6msvcr71.html - There is a daemon issue for this https://issues.apache.org/jira/browse/DAEMON-110 - Someone with C skills (not me - mine are terrible) needs to write a patch. Anyone takers? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Stop Hack attack
Hi SPEC ( Single box) O/s : Unix 11 J2sdk : 1.6 DB : Oracle10g TOMCAT 6.0.18.0 RAM 16 GB A normal WEB application [ User id / Passwd for AAA ] on the following spec is successfully running LIVE [ non clustered mode ] Question : Some hacker is trying to bring the System down by polling the sending continuous HTTP request very frequently [ We logged the client IP address], The WEB application cannot be configured to HTTPS (Client disapproval) Is there any way within tomcat design to prevent the same from malicious attack? With regards Karthik
Re: Stop Hack attack
Karthik Nanjangude wrote: Hi SPEC ( Single box) O/s : Unix 11 J2sdk : 1.6 DB : Oracle10g TOMCAT 6.0.18.0 RAM 16 GB A normal WEB application [ User id / Passwd for AAA ] on the following spec is successfully running LIVE [ non clustered mode ] Question : Some hacker is trying to bring the System down by polling the sending continuous HTTP request very frequently [ We logged the client IP address], The WEB application cannot be configured to HTTPS (Client disapproval) Is there any way within tomcat design to prevent the same from malicious attack? You can limit the impact on Tomcat by blocking them with a Remote Address Filter (http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html) However, the earlier you can block them the better. If you can block that IP at a firewall before they get to your box that would be better. Failing that block the IP with iptables (or the equivalent on your platform) on the server. HTH, Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26
Hi, I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found when I ported my web application from tomcat 5.5.9 to 5.5.26 Following is code snippet from test1.jsp page under webapps/testapp/dir1 t:panelTabbedPane t:panelTab id=tabpane-1 label=abc rendered=true jsp:include page=abc.jsp / /t:panelTab t:panelTab id=tabpane-1 label=def rendered=false jsp:include page=def.jsp / /t:panelTab /t:panelTabbedPane here abc.jsp is under directory webapps/testapp/dir1 (same directory of test1.jsp) and def.jsp is under directory webapps/testapp/dir2. This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found. Can somebody please help me to resolve this problem. Thanks and Regards, Vinit Bhagwat
Jasper compiler version, how to configure
In my development environment using JDK 1.5, the jsp compilation is fine. But after deploy to JBoss 4.0.5(w/ tomcat 5.5), the JSP compiler complains templates such as List I started JBoss using jdk 1.5, configured in run.sh (JAVA_HOME). It seems that the JSP compiler is not using the java version 1.5. How to configure the JSP compiler java version, using the same version JDK 1.5 that starts Tomcat? Thanks for help. Dave
Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26
Bhagwat, Vinit (Vinit) wrote: Hi, I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found when I ported my web application from tomcat 5.5.9 to 5.5.26 Following is code snippet from test1.jsp page under webapps/testapp/dir1 t:panelTabbedPane t:panelTab id=tabpane-1 label=abc rendered=true jsp:include page=abc.jsp / /t:panelTab t:panelTab id=tabpane-1 label=def rendered=false jsp:include page=def.jsp / /t:panelTab /t:panelTabbedPane here abc.jsp is under directory webapps/testapp/dir1 (same directory of test1.jsp) and def.jsp is under directory webapps/testapp/dir2. This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found. Can somebody please help me to resolve this problem. What are the appBase settings for the host (in server.xml) and if you have defined a ROOT context, what is the docBase for that context? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JDT compiler from build.xml
Hi, I'm a new tomcat user. I'm running Apache Tomcat ver 6.0.18 on Windows Vista with JRE 6 (so I've setted JRE_HOME). From docs, I've read that it's possible to use a jre since Tomcat 6.0 uses the Eclipse JDT Java compiler for compiling JSP pages, but when I try to compile with ant (the sample consists in two jsps and two servlets) I have: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.0_07\lib\tools.jar Buildfile: build.xml Trying to override old definition of datatype resources prepare: compile: [javac] Compiling 2 source files to c:\exercises\myapp\build\WEB-INF\classes BUILD FAILED c:\exercises\myapp\build.xml:305 : Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to C:\Program Files\Java\jre1.6.0_07 Total time: 1 second Shouldn't Tomcat use jasper_jdt.jar in $CATALINA_HOME/lib? or have I to change the javac task into something else? or what? Fran - 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: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26
Following is appBase setting for host in server.xml Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false And there is no ROOT context defined. Vinit -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 3:49 PM To: Tomcat Users List Subject: Re: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26 Bhagwat, Vinit (Vinit) wrote: Hi, I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found when I ported my web application from tomcat 5.5.9 to 5.5.26 Following is code snippet from test1.jsp page under webapps/testapp/dir1 t:panelTabbedPane t:panelTab id=tabpane-1 label=abc rendered=true jsp:include page=abc.jsp / /t:panelTab t:panelTab id=tabpane-1 label=def rendered=false jsp:include page=def.jsp / /t:panelTab /t:panelTabbedPane here abc.jsp is under directory webapps/testapp/dir1 (same directory of test1.jsp) and def.jsp is under directory webapps/testapp/dir2. This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found. Can somebody please help me to resolve this problem. What are the appBase settings for the host (in server.xml) and if you have defined a ROOT context, what is the docBase for that context? Mark - 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: Using JDT compiler from build.xml
Elalmaire wrote: Hi, I'm a new tomcat user. I'm running Apache Tomcat ver 6.0.18 on Windows Vista with JRE 6 (so I've setted JRE_HOME). From docs, I've read that it's possible to use a jre since Tomcat 6.0 uses the Eclipse JDT Java compiler for compiling JSP pages, but when I try to compile with ant (the sample consists in two jsps and two servlets) I have: Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.6.0_07\lib\tools.jar Buildfile: build.xml Trying to override old definition of datatype resources prepare: compile: [javac] Compiling 2 source files to c:\exercises\myapp\build\WEB-INF\classes BUILD FAILED c:\exercises\myapp\build.xml:305 : Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to C:\Program Files\Java\jre1.6.0_07 Total time: 1 second Shouldn't Tomcat use jasper_jdt.jar in $CATALINA_HOME/lib? or have I to change the javac task into something else? or what? Fran What are you trying to compile? JSPs, servlets or something else? Mark - 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: Stop Hack attack
Mark Thomas wrote: Karthik Nanjangude wrote: Hi SPEC ( Single box) O/s : Unix 11 J2sdk : 1.6 DB : Oracle10g TOMCAT 6.0.18.0 RAM 16 GB A normal WEB application [ User id / Passwd for AAA ] on the following spec is successfully running LIVE [ non clustered mode ] Question : Some hacker is trying to bring the System down by polling the sending continuous HTTP request very frequently [ We logged the client IP address], The WEB application cannot be configured to HTTPS (Client disapproval) Is there any way within tomcat design to prevent the same from malicious attack? You can limit the impact on Tomcat by blocking them with a Remote Address Filter (http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html) However, the earlier you can block them the better. If you can block that IP at a firewall before they get to your box that would be better. Failing that block the IP with iptables (or the equivalent on your platform) on the server. HTH, Mark Mark is right. In any case, SSL wouldn't even slow this kind of attack down; it's only encryptionnot authentication. SSL will actually make it slightly worse since Tomcat has to work harder to decrypt and encrypt the traffic. Filtering by IP is a good solution here, but if this is your first publicly exposed website be prepared: This happens all the time, and the client IP's will be wildly different...you can't possibly filter them all. You might consider a good IPS between you and the Internet at large. One example of a good free solution is Untangle. You can buy support as well if it makes you more comfortable. There's also dedicated appliances for this as well. Brantley - 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: Tomcat JVM not releasing deleted files (lsof show delete inodes taking up disk space)
It's actually a vendor supplied application. I filed a bug/support request and they returned with a patch. I guess I was wondering if there were any jvm startup options I may have over looked that may help with this sort of issues. But it definitely seems to be a coding issue. Thanks, Chad On Thu, Oct 2, 2008 at 2:27 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chad, Chad Kellerman wrote: To get a better understanding... the application indexes uploaded files, the indexing process creates the temporary files then removes them. Can you share the code that actually does this? The javadoc for File.createTempFile states: To arrange for a file created by this method to be deleted automatically, use the deleteOnExit() method. If your engineers followed this advice, this may be your problem: the JVM is waiting until JVM shutdown to actually delete the files. Even if the code does an explicit File.delete(), the JVM is probably still hanging onto a reference to the file's directory entry in order to delete it on exit. That seems like a plausible explanation for why the files are marked as deleted in lsof, but are still being kept alive by the JVM. The solution here would be to simply not use File.deleteOnExit; instead, use File.delete explicitly. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjlEpIACgkQ9CaO5/Lv0PBo0wCfRhUitB/6/pxDQiGtbdo0Ctwk qj4AnjuQwMY3yduWoAN5/InlbZnX1CW6 =i6Uc -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: Support
java jar bootstrap.jar works fine for me.. is there ANY possible workaround to this daemon bug? Thanks, Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 3 Oct 2008 09:10:00 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Support Caldarale, Charles R wrote: The msvcr71.dll file (not msvci70.dll, whatever that is) is required to run the Tomcat service launcher, but not needed when Tomcat is run via scripts. The reason it didn't show up on JRE/JDK 5 is because installation of that JVM version slams a copy of the DLL into C:\windows\system32, regardless of what impact that might have on the system. JRE/JDK 6 installation follows the rules published by Microsoft, and keeps the DLL in the JVM's bin directory. Tomcat should be distributing the DLL (or otherwise insuring its availability) during installation or setup of the Windows service; however, no one's been able to convince the committers of that yet. In summary: - the JVM requires the dll - this is a JVM bug (Sun do not agree) - the best place to hack around this is when the jvm.dll is loaded (ie the daemon project) - a nice summary and all the pointers needed to fix this are here http://www.duckware.com/tech/java6msvcr71.html - There is a daemon issue for this https://issues.apache.org/jira/browse/DAEMON-110 - Someone with C skills (not me - mine are terrible) needs to write a patch. Anyone takers? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Re: Native library issue on RHEL5
John Ozarchuk schrieb: Here is the output of ldd libtcnative-1.so libssl.so.6 = /lib64/libssl.so.6 (0x2ace1000) libcrypto.so.6 = /lib64/libcrypto.so.6 (0x2af2a000) libapr-1.so.0 = /usr/lib64/libapr-1.so.0 (0x2b272000) libpthread.so.0 = /lib64/libpthread.so.0 (0x2b49a000) libdl.so.2 = /lib64/libdl.so.2 (0x2b6b4000) libc.so.6 = /lib64/libc.so.6 (0x2b8b8000) libgssapi_krb5.so.2 = /usr/lib64/libgssapi_krb5.so.2 (0x2bc09000) libkrb5.so.3 = /usr/lib64/libkrb5.so.3 (0x2be37000) libcom_err.so.2 = /lib64/libcom_err.so.2 (0x2c0c9000) libk5crypto.so.3 = /usr/lib64/libk5crypto.so.3 (0x2c2cc000) libz.so.1 = /usr/lib64/libz.so.1 (0x2c4f1000) libuuid.so.1 = /lib64/libuuid.so.1 (0x2c705000) libcrypt.so.1 = /lib64/libcrypt.so.1 (0x2c909000) /lib64/ld-linux-x86-64.so.2 (0x4000) libkrb5support.so.0 = /usr/lib64/libkrb5support.so.0 (0x2cb3d000) libkeyutils.so.1 = /lib64/libkeyutils.so.1 (0x2cd45000) libresolv.so.2 = /lib64/libresolv.so.2 (0x2cf48000) libselinux.so.1 = /lib64/libselinux.so.1 (0x2d15d000) libsepol.so.1 = /lib64/libsepol.so.1 (0x2d376000) I'm not sure how I would go about making sure the APR libraries are there? OK, so apr libs are in /usr/lib64, which should be in the lib search path by default. Could you please check, if adding /usr/local/apr/lib to your LD_LIBRARY_PATH shel environment variable in addition to java.lib.path helps? Regards, Rainer - Original Message From: Rainer Jung [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, October 2, 2008 3:27:02 PM Subject: Re: Native library issue on RHEL5 John Ozarchuk schrieb: Hello, I am running Apache-tomcat 6.0.1.14 on Redhat Enterprise 5.2, and I am having trouble getting Catalina.sh to use the Apache Tomcat Native Library. I have run configure, make, and make install on the Native (tomcat-native-1.1.10-src) and it has installed libraries in /usr/local/apr/lib: [EMAIL PROTECTED] ~]# ll /usr/local/apr/lib total 2360 -rw-r--r-- 1 root root 1518062 Oct 2 11:21 libtcnative-1.a -rwxr-xr-x 1 root root 893 Oct 2 11:21 libtcnative-1.la lrwxrwxrwx 1 root root 23 Oct 2 11:21 libtcnative-1.so - libtcnative-1.so .0.1.10 lrwxrwxrwx 1 root root 23 Oct 2 11:21 libtcnative-1.so.0 - libtcnative-1. so.0.1.10 -rwxr-xr-x 1 root root 853799 Oct 2 11:21 libtcnative-1.so.0.1.10 drwxr-xr-x 2 root root4096 Oct 2 11:21 pkgconfig I have added this path to $CATALINA_HOME/Catalina.sh: JAVA_OPTS=-Djava.library.path=/usr/local/apr/lib/ When I run “Catalina.sh start” to startup the Tomcat server, it still is not detecting these libraries, per Catalina.out: INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/apr/lib/ Oct 2, 2008 12:59:40 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 2, 2008 12:59:40 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 529 ms Am I missing something here? Any help is greatly appreciated. Thank you. libtcnative needs he apr libraries too. Use ldd /usr/local/apr/lib/libtcnative-1.so to check, whether the apr libraries can be found and where they are. You might need to add their path to the java.library.path too. BTW: Consider updating to Tomcat 6.0.18 and tcnative 1.1.15. Regards, Rainer Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann - 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: Support
- Original Message - From: Martin Gainty [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 03, 2008 2:37 PM Subject: RE: Support java jar bootstrap.jar works fine for me.. is there ANY possible workaround to this daemon bug? Thanks, Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Fri, 3 Oct 2008 09:10:00 +0100 From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Re: Support Caldarale, Charles R wrote: The msvcr71.dll file (not msvci70.dll, whatever that is) is required to run the Tomcat service launcher, but not needed when Tomcat is run via scripts. The reason it didn't show up on JRE/JDK 5 is because installation of that JVM version slams a copy of the DLL into C:\windows\system32, regardless of what impact that might have on the system. JRE/JDK 6 installation follows the rules published by Microsoft, and keeps the DLL in the JVM's bin directory. Tomcat should be distributing the DLL (or otherwise insuring its availability) during installation or setup of the Windows service; however, no one's been able to convince the committers of that yet. In summary: - the JVM requires the dll - this is a JVM bug (Sun do not agree) - the best place to hack around this is when the jvm.dll is loaded (ie the daemon project) - a nice summary and all the pointers needed to fix this are here http://www.duckware.com/tech/java6msvcr71.html - There is a daemon issue for this https://issues.apache.org/jira/browse/DAEMON-110 - Someone with C skills (not me - mine are terrible) needs to write a patch. Anyone takers? Mark I think the only way is to open up procrun in VC and recompile it with the static version of the msvcr71.dll which is msvcr71.lib... then nothing else changes. procrun will be slightly larger... The Duckware guy is really pissed off... but as I see it Sun has been fixing the issue and is no longer able to because of MS's new dll hell policies. So its MS's fault... but in fairness MS has always warned people... save space make it small and leave the libs external, and you may have pain ;) Its 340k... nowadays no biggy... Just needs a recompile and it should take the procrun guy all of 10 seconds to do ;) Any other way fixes the TC issue... but the problem then remains... procrun is broken. ... I think In the means time... if you use Java 6, the service will break, but luckily the msvcr71.dll you need is in the Java bin. The real problem is that its going to catch developers, because unless they told about it, they probably running Adobe, or something else, that like the JDK 5 was doing is fixing the system... but at the client the TC Service breaks... more embarassing than anything else. --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - 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: Problem with jasper-compiler when ported web application from tomcat 5.5.9 to 5.5.26
2008/10/3 Bhagwat, Vinit (Vinit) [EMAIL PROTECTED]: Hi, I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found when I ported my web application from tomcat 5.5.9 to 5.5.26 Following is code snippet from test1.jsp page under webapps/testapp/dir1 t:panelTabbedPane t:panelTab id=tabpane-1 label=abc rendered=true jsp:include page=abc.jsp / /t:panelTab t:panelTab id=tabpane-1 label=def rendered=false jsp:include page=def.jsp / /t:panelTab /t:panelTabbedPane here abc.jsp is under directory webapps/testapp/dir1 (same directory of test1.jsp) and def.jsp is under directory webapps/testapp/dir2. This used to work with tomcat 5.5.9 but with tomcat 5.5.26 I am getting following exception org.apache.jasper.JasperException: ServletException in '/testapp/dir1/test1.jsp': File /testapp/dir2/def.jsp not found. If abc.jsp and def.jsp are in different directories, then it should be jsp:include page=../dir2/def.jsp It might be that on your 5.5.9 there is some old compiled copy of def.jsp in the wrong place. I.e. it might be if you clear your work directory on your 5.5.9 host the problem will reappear there. - 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: JK and IIS - troubles?
br1 schrieb: Rainer Jung-3 wrote: That might be the reason for trouble. If things start to get slow, the web server gets filled by all thenew requests still coming in without answering fast enough the existing ones. This starts to make sense now. I have a few suggestions inline, I would like to contribute to document a case like this, if possible. If you like, we are always keen on helpful documentation. Maybe a page about sizing connection pool and the relation between connections, web server processes, IIS workers and Tomcat threads, measuring your needs and the dangers arising from going to far. Rainer Jung-3 wrote: People often try to work around this by increasing the number of threads available for processing the requests, Yes, some of us might still be used to old JK connectors defaulting to 10 connections. More likely to cause confusion is the Tomcat message increase the threads, while it might help more if it was fine tune the threads instead. I see, yes the default changed end of 2006 between 1.2.19 and 1.2.20. Usually we don't change defaults, but the 10 was really to low. Rainer Jung-3 wrote: but if the backend is stuck or too slow, this will not help and instead also trash the frontend. So perhaps.. upgrading from older JKs the default changed from 10 connections to 250. With a lot of workers (for instance, 40) the total number of maximum threads went from 400 to 1. I will have to fix this and check what happens. Yes, if the notion of worker is an IIS worker and not an isapi plugin worker. A plugin worker in the sense of a worker configuration item in workers.properties is 1:1 with a connection pool, and a connection pool doesn't create threads. It will grow at most as the lower of thread number and configured pool size. For iis workers see Mladen's response. Rainer Jung-3 wrote: You should measure how many connections you need during peak hours without performance problems, and then add some percentage depending on your growth rate etc. Finally you need to make sure, that your web server itself uses at least as many threads, as you configured as the pool size. This has been measured already. Same as above, when the problem were too few connections, too many seemed not to be a problem. :-) I would suggest to add your above sentence right after We recommend adjusting this value for IIS and the Sun Web Server at http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html and maybe also in http://tomcat.apache.org/connectors-doc/reference/workers.html (And maybe *strongly* recommend it ) Done. Rainer Jung-3 wrote: For Apache with mod_jk we can automatically detect the number of threads and by default size our pool to the same number. For IIS you have to size the pool yourself (or live with the big default of 250). It seems we are dying with the big default. :-) I have read somewhere that the number of threads is not likely to cause these problems on modern multiple cpu with multiple cores servers. I wonder if there is some kind of formula to know what total should not be exceeded in this particular case, of if the good old document by Mladen Turk is still valid fixing this number to 2000 (http://people.apache.org/~mturk/docs/article/ftwai.html) I do think so, although I didn't actually test recently. Regards, Rainer - 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: Support
- Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 03, 2008 3:42 AM Subject: RE: Support From: Johnny Kewl [mailto:[EMAIL PROTECTED] Subject: Re: Support Normally I always recomment lagging a JRE version as well... avoid bleeding edge... JRE/JDK 6 has been around for almost two years now, so I don't think the 1.6.0_07 download is at all risky. On the other hand, the 1.6.0_10 release really is bleeding edge. Sun's current versioning scheme does border on the incomprehensible... - Chuck Time flies... damn. You right its not really a TC server issue, the thing thats at the back of my mind is that companies are lazy... and I havnt checked lately, but hopefully Apple has sent out some scouts an discovered theres a new JDK ;) In theory JDK 6 targeting 5 should be a safe bet, and on TC it is... but Swing and stuff like that, build it targeting 6, and if then try move it back to JRE 5... it hurts ;) TC is almost immune, its a tough product... but what we find its that in the IDE we have both JDK 5 and JDK 6 loaded... again not really a TC issue. Sun really seem to be on a mission... for 10 years they were sleeping, but now they moving at dizzy speed, your customers may not be. --- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --- - 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: Tomcat JVM not releasing deleted files (lsof show delete inodes taking up disk space)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chad, Chad Kellerman wrote: It's actually a vendor supplied application. I filed a bug/support request and they returned with a patch. Were you able to inspect the patch? I'm interested to see what they chose to do. I guess I was wondering if there were any jvm startup options I may have over looked that may help with this sort of issues. But it definitely seems to be a coding issue. No, I don't think that the JVM does anything like this unless you ask it to. I suspect that File.deleteOnExit is being used by programmers who didn't realize the implications on long-running processes. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjmMC0ACgkQ9CaO5/Lv0PBMHwCfZfzk7htsD9itW+sPLGwd4vgw ByUAoIEkRUOAkkdAHkD1WhXOf/Uo3zuI =OeI4 -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]
Deploying to a subfolder
I'm using Tomcat 6.0.18. I'd like to deploy an application to the context; e.g., /apps/myapp Here's what I've tried: 1. Rename the war file myapp.war -- apps#myapp.war. 2. Copy apps#myapps.war to the webapps folder. 3. Start Tomcat. The app is running after the first time I start the service. However, on subsequent restarts (of Tomcat), the application is not running and when I try to start it in the manager, I get this message: FAIL - Application at context path /apps/myapp could not be started How do I deploy an application to a context of: /apps/myapp Thanks, Mark McEahern Lead Architect Division of Public Health Informatics and Surveillance Wisconsin State Lab of Hygiene - 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: Deploying to a subfolder
McEahern, Mark S wrote: I'm using Tomcat 6.0.18. I'd like to deploy an application to the context; e.g., /apps/myapp Here's what I've tried: 1. Rename the war file myapp.war -- apps#myapp.war. 2. Copy apps#myapps.war to the webapps folder. 3. Start Tomcat. The app is running after the first time I start the service. However, on subsequent restarts (of Tomcat), the application is not running and when I try to start it in the manager, I get this message: FAIL - Application at context path /apps/myapp could not be started How do I deploy an application to a context of: /apps/myapp Thanks, That should be all you need to do. There should be some information in one of the logs (localhost ?) that tells you why it failed. What does it say? Mark - 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: AW: [TOMCAT] Internal Tomcat Server error (HTTP Status 500): NoClassDefFound
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steffen, Steffen Heil wrote: Hi The method yielding the problem is the following one: private static PageLifecycleFactory getDefaultInstance() { if (defaultInstance == null) { defaultInstance = new DefaultStrutsPageLifecycleFactory(); } return defaultInstance; } Make that function *synchronized* ! Practically speaking, the synchronization status of this method shouldn't matter for anything except performance. There is a slight chance of this method returning an uninitialized instance of DefaultPageLifecycleFactory, but I suspect you'd get different kinds of problems than NoClassDefFound. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjmOJoACgkQ9CaO5/Lv0PBN4QCgmDmPo1RjScxccoNFFQ1dn02j NvYAoI0Abw3XXTM6YgE/KoDP69VX7Deh =bod+ -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: Deploying to a subfolder
From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2008 10:21 AM To: Tomcat Users List Subject: Re: Deploying to a subfolder McEahern, Mark S wrote: I'm using Tomcat 6.0.18. I'd like to deploy an application to the context; e.g., /apps/myapp Here's what I've tried: 1. Rename the war file myapp.war -- apps#myapp.war. 2. Copy apps#myapps.war to the webapps folder. 3. Start Tomcat. The app is running after the first time I start the service. However, on subsequent restarts (of Tomcat), the application is not running and when I try to start it in the manager, I get this message: FAIL - Application at context path /apps/myapp could not be started How do I deploy an application to a context of: /apps/myapp Thanks, That should be all you need to do. There should be some information in one of the logs (localhost ?) that tells you why it failed. What does it say? Mark The log says: Oct 3, 2008 11:40:37 AM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\apps\myapp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav a:141) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext. java:3957) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126 ) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:124 7) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet. java:604) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet. java:129) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 86) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) - 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: Deploying to a subfolder
McEahern, Mark S wrote: The log says: Oct 3, 2008 11:40:37 AM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\apps\myapp does not exist or is not a readable directory That is the wrong docBase so the error makes sense but it should have been converted to ...\apps#myapp What is the error message when Tomcat starts and deployment fails. This works for me, even with a space in the install path. Are you sure you are using 6.0.18? Also, is there a Context element defined anywhere for this web app and if so, what is it? Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Basic Tribes Questions
Hi, I am currently trying to use Tribes as the clustering layer on our server. My startup code looks like this. if(_tribesChannel == null) { // nothing to do if already running try { _tribesChannel = new GroupChannel(); // must be done before start: _tribesChannel.getMembershipService().getProperties().put(mcastPort, String.valueOf(_mainPort)); _tribesChannel.getMembershipService().getProperties().put(mcastAddress, _multicastIPAddr); if(_ancillaryPort 0) { _tribesChannel.getMembershipService().getProperties().put(tcpListenPort, String.valueOf(_ancillaryPort)); // hack alert: Default Tribes instantiation (Tomcat 6.0.16) does not read value for tcpListenPort from properties. // Therefore, set it directly ChannelReceiver receiver = _tribesChannel.getChannelReceiver(); if(receiver.getPort() != _ancillaryPort) { if(receiver instanceof ReceiverBase) { ((ReceiverBase)receiver).setPort(_ancillaryPort); } } } _tribesChannel.addMembershipListener(_tribesMembershipListener); _tribesChannel.addChannelListener(_tribesChannelListener); _tribesChannel.start(CHANNEL_COMPONENTS); } catch(ChannelException ex) { try { _tribesChannel.stop(CHANNEL_COMPONENTS); } catch(Throwable t) { /*gulp*/} _tribesChannel = null; throw new RuntimeException(ex); // todo, exception handling? } } My Question is that when I start Server #1, then Server #2, then unplug Server #2 network cable, Server #1 gets the DISAPPEARED message but Server #2 just keeps logging the message below. As I write this it's at attempt #120. How do I get this to notify on Server #2 that Server #1 has DISAPPEARED or can I set the number of attempts to a maximum number before notifying? Also is there any other documentation for tribes, other than the limited docs on the apache site? INFO: Done sleeping, membership established, start level:8 Oct 3, 2008 1:12:44 PM org.apache.catalina.tribes.transport.nio.NioReplicationTask run WARNING: IOException in replication worker, unable to drain channel. Probable cause: Keep alive socket closed[An existing connection was forcibly closed by the remote host]. Oct 3, 2008 1:12:44 PM org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread run WARNING: Unable to send mcast message. java.net.NoRouteToHostException: No route to host: Datagram send failed at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385) at org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread.run(McastServiceImpl.java:445) Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread run INFO: Tribes membership, running recovery thread, multicasting is not functional. Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread stopService WARNING: Recovery thread failed to stop membership service. java.net.NoRouteToHostException: No route to host: Datagram send failed at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385) at org.apache.catalina.tribes.membership.McastServiceImpl.stop(McastServiceImpl.java:299) at org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread.stopService(McastServiceImpl.java:480) at org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread.run(McastServiceImpl.java:504) Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 500 Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread startService WARNING: Recovery thread failed to start membership service. java.net.SocketException: error setting options at java.net.PlainDatagramSocketImpl.join(Native Method) at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172) at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276) at
Re: Basic Tribes Questions
answers inline Mike Wannamaker wrote: Hi, I am currently trying to use Tribes as the clustering layer on our server. My startup code looks like this. if(_tribesChannel == null) { // nothing to do if already running try { _tribesChannel = new GroupChannel(); // must be done before start: no need to use any properties, there are getters and setters for everything and they are all documented here http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html _tribesChannel.getMembershipService().getProperties().put(mcastPort, String.valueOf(_mainPort)); _tribesChannel.getMembershipService().getProperties().put(mcastAddress, _multicastIPAddr); not sure what you are trying to do in the code below. if you wanna set the port, then simply do it. the membership will pick it up automatically if(_ancillaryPort 0) { _tribesChannel.getMembershipService().getProperties().put(tcpListenPort, String.valueOf(_ancillaryPort)); // hack alert: Default Tribes instantiation (Tomcat 6.0.16) does not read value for tcpListenPort from properties. // Therefore, set it directly ChannelReceiver receiver = _tribesChannel.getChannelReceiver(); if(receiver.getPort() != _ancillaryPort) { if(receiver instanceof ReceiverBase) { ((ReceiverBase)receiver).setPort(_ancillaryPort); } } } _tribesChannel.addMembershipListener(_tribesMembershipListener); _tribesChannel.addChannelListener(_tribesChannelListener); _tribesChannel.start(CHANNEL_COMPONENTS); } catch(ChannelException ex) { try { _tribesChannel.stop(CHANNEL_COMPONENTS); } catch(Throwable t) { /*gulp*/} _tribesChannel = null; throw new RuntimeException(ex); // todo, exception handling? } } My Question is that when I start Server #1, then Server #2, then unplug Server #2 network cable, Server #1 gets the DISAPPEARED message but Server #2 just keeps logging the message below. As I write this it's at attempt #120. How do I get this to notify on Server #2 that Server #1 has DISAPPEARED or can I set the number of attempts to a maximum number before notifying? the message you are getting is cause the membership tries to recover. you can limit this, by doing setRecoveryEnabled(true|false); setRecoveryCounter(nr-of-times-to-try-recover) also, you haven't added in the TCP failure detector, which adds one more layer of protection see it in this default configuration http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html you should still get the member disappeared error (eventually after the timeout), if you can supply a simple test case, I can try it out over here. best Filip Also is there any other documentation for tribes, other than the limited docs on the apache site? INFO: Done sleeping, membership established, start level:8 Oct 3, 2008 1:12:44 PM org.apache.catalina.tribes.transport.nio.NioReplicationTask run WARNING: IOException in replication worker, unable to drain channel. Probable cause: Keep alive socket closed[An existing connection was forcibly closed by the remote host]. Oct 3, 2008 1:12:44 PM org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread run WARNING: Unable to send mcast message. java.net.NoRouteToHostException: No route to host: Datagram send failed at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385) at org.apache.catalina.tribes.membership.McastServiceImpl$SenderThread.run(McastServiceImpl.java:445) Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread run INFO: Tribes membership, running recovery thread, multicasting is not functional. Oct 3, 2008 1:12:49 PM org.apache.catalina.tribes.membership.McastServiceImpl$RecoveryThread stopService WARNING: Recovery thread failed to stop membership service. java.net.NoRouteToHostException: No route to host: Datagram send failed at java.net.PlainDatagramSocketImpl.send(Native Method) at java.net.DatagramSocket.send(DatagramSocket.java:612) at org.apache.catalina.tribes.membership.McastServiceImpl.send(McastServiceImpl.java:385) at
CPU utilization and Tomcat 5.5.20
We are running Tomcat 5.5.20 with jvm 1.5.0_14. Tomcat utilization goes to 100 percent being used by Tomcat. Any ideas why the utilization would go so high. Thanks.
RE: Deploying to a subfolder
Mark Thomas wrote: That is the wrong docBase so the error makes sense but it should have been converted to ...\apps#myapp What's interesting is that the automatic deployment process takes the war file that I place in webapps/apps#myapp.war and creates a corresponding file in this folder: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost named: apps#myapp.xml with contents that match the META-INF/context.xml file in the .war: ?xml version=1.0 encoding=UTF-8? Context reloadable=true debug=true allowLinking=true Valve className=org.apache.catalina.valves.RemoteHostValve allow=[snip]/ Resource [snip]/ /Context What is the error message when Tomcat starts and deployment fails. From catalina.log: Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext resourcesStart SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Document base C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\apps\myapp does not exist or is not a readable directory at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav a:141) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext. java:3957) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4126 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java: 627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java :553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31 1) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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) Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error in resourceStart() Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Error getConfigured Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/apps/myapp] startup failed due to previous errors Oct 3, 2008 2:36:59 PM org.apache.catalina.core.StandardContext stop INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/apps/mya pp] has not been started Oct 3, 2008 2:36:59 PM org.apache.catalina.startup.HostConfig deployWAR This works for me, even with a space in the install path. Are you sure you are using 6.0.18? Yes. Here's the information from the manager application: Server Information Tomcat Version: Apache Tomcat/6.0.18 JVM Version: 1.6.0_06-b02 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP OS Version: 5.1 OS Architecture: x86 Also, is there a Context element defined anywhere for this web app and if so, what is it? The context inside of the .war file (/META-INF/context.xml) as well as the resulting apps#myapp.xml in: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost They match and they both look like this: ?xml version=1.0 encoding=UTF-8? Context reloadable=true debug=true allowLinking=true Valve className=org.apache.catalina.valves.RemoteHostValve allow=[snip]/ Resource [snip]/ /Context Thanks, // m - 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: CPU utilization and Tomcat 5.5.20
look at your applications inside of tomcat. make thread dumps. Leon On Fri, Oct 3, 2008 at 9:29 PM, Reis, Tom [EMAIL PROTECTED] wrote: We are running Tomcat 5.5.20 with jvm 1.5.0_14. Tomcat utilization goes to 100 percent being used by Tomcat. Any ideas why the utilization would go so high. Thanks. - 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: CPU utilization and Tomcat 5.5.20
Reis, Tom wrote: We are running Tomcat 5.5.20 with jvm 1.5.0_14. Tomcat utilization goes to 100 percent being used by Tomcat. Any ideas why the utilization would go so high. Thanks. Please let us have more infromation. Upon startup, it is typical of Tomcat to be very CPU-intensive for a while (length of the time is of course dependent on the CPU power available and application workload placed on the server). Other than that, the JVM running Tomcat will be largely idle, unless it is serving requests (with the exception of running the JVM to a memory exhaustion state, in which case the JVM can pretty much sit in a loop running garbage collection). So, clarifying questions; - are you referring to the 100% CPU usage right after startup (could take 10 seconds; could take a couple of minutes, depending on details) - is your Tomcat JVM running at its allocated heap limit - are there requests being served while the CPU is fully utilized - are you seeing this on a Tomcat with none of your own applications installed, or on a Tomcat having your applications deployed Depending on your OS platform, you might be able to look at CPU usage in individual threads within the JVM, and combine this knowledge with a thread dump from the Tomcat JVM instance, in order to see which are the busy threads (GC thread, worker thread, something else), and also to see at least a momentary stack dump of the busy thread (in other words, you might be able to see what code is running in the busy thread). You could also enable GC logging, to see whether there is excess garbage collection activity within the JVM (which would indicate either a memory leak or a too small JVM heap allocation). My first two claims would be: - it is caused by your application code (or libraries brought in with your application code) - it could be that your application code (or libraries...) is running against the JVM memory limit, making it run garbage collection in an endless loop (and if you let it stay that way long enough, it'll crash with an OutOfMemoryError) but I could just as well be wrong. It could also be some code in Tomcat getting stuck in an endless loop. It's just that bugs seem to be less common in Tomcat than in the typical webapps I see. -- ..Juha - 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: Another confused person trying to get jconsole to monitor tomcat.
Dear Martin, http://www.jdocs.com/tomcat/6.0.14/org/apache/catalina/ServerFactory.html ServerFactory.getServer() will return org.apache.catalina.ServerFactory Thanks for the information. I changed the mbean server code to make use of all available mbean servers and now my code can always see Tomcat's mbeans as well as the platform ones. Excellent. -- Kees Jan http://java-monitor.com/forum/ [EMAIL PROTECTED] 06-51838192 Rule 1 for being in a hole: stop digging. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
need mod_jk for apache http server 2.0.63 - urgent
Hi, I need mod_jk or the comcat connector. I dont know where to get it from. I searched on google but could not find. Basically i would like to connect from tomcat 5.5.9 to apache http server 2.0.63 installed on solaris 10 machine. Could some body tell me where to get it. Thanks, srinivas jonnalagadda - 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: need mod_jk for apache http server 2.0.63 - urgent
At 04:57 PM 10/3/2008, you wrote: Hi, I need mod_jk or the comcat connector. I dont know where to get it from. I searched on google but could not find. Basically i would like to connect from tomcat 5.5.9 to apache http server 2.0.63 installed on solaris 10 machine. Could some body tell me where to get it. Thanks, srinivas jonnalagadda http://tomcat.apache.org/download-connectors.cgi or DIRECT Download (sorry, I'd never do this) http://apache.osuosl.org/tomcat/tomcat-connectors/jk/source/jk-1.2.26/tomcat-connectors-1.2.26-src.tar.gz Cheers, Glenn -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - 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: CPU utilization and Tomcat 5.5.20
yes pls follow leon's advice and compare your thread dumps so you can determine TC thread activity and coordinate that to the webapp's resource activity I would look at minHeap, maxHeap and stack parameters from %JAVA_OPTS% a 2004 post http://forums.sun.com/thread.jspa?messageID=10055131 says it best The default stack size is 256K on UNIX and on 32-bit Windows operating systems. To set Stack size java -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=8 -Xms512m -Xmx512m 1. Setting the New generation heap size -XX:NewSize Use this option to set the New generation Java heap size. Set this value to a multiple of 1024 that is greater than 1MB. As a general rule, set -XX:NewSize to be one-fourth the size of the maximum heap size. Increase the value of this option for larger numbers of short-lived objects. Be sure to increase the New generation as you increase the number of processors. Memory allocation can be parallel, but garbage collection is not parallel. 2. Setting the maximum New generation heap size -XX:MaxNewSize Use this option to set the maximum New generation Java heap size. Set this value to a multiple of 1024 that is greater than 1MB. 3. Setting New heap size ratios -XX:SurvivorRatio The New generation area is divided into three sub-areas: Eden, and two survivor spaces that are equal in size. Use the -XX:SurvivorRatio=X option to configure the ratio of the Eden/survivor space size. Try setting this value to 8, and then monitor your garbage collection. 4. Setting minimum heap size -Xms Use this option to set the minimum size of the memory allocation pool. Set this value to a multiple of 1024 that is greater than 1MB. As a general rule, set minimum heap size (-Xms) equal to the maximum heap size (-Xmx) to minimize garbage collections. 5. Setting maximum heap size -Xmx Use this option to set the maximum Java heap size. Set this value to a multiple of 1024 that is greater than 1MB. pay attention to MaxHeap, MinHeap, StackSize and set your GC's to mark and sweep for discarded blocks HTH Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: CPU utilization and Tomcat 5.5.20 Date: Fri, 3 Oct 2008 14:29:23 -0500 From: [EMAIL PROTECTED] To: users@tomcat.apache.org We are running Tomcat 5.5.20 with jvm 1.5.0_14. Tomcat utilization goes to 100 percent being used by Tomcat. Any ideas why the utilization would go so high. Thanks. _ Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Re: useSendFile=true skips compression
Shaun Senecal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Could someone explain to me why the NIO Connector will ignore the compression settings for large files if useSendFile is enabled (it is by default)? It seems to me that if compression is enabled you would specifically want to use it when sendFile is enabled, but that might just be because I don't really understand what sendFile means/does :) In normal mode, Tomcat reads the file into its own memory buffer, optionally compresses it, and then writes it out again to the socket. In sendFile mode, Tomcat tells the O/S to transfer the contents of the file directly to the socket (bypassing reading it in to Tomcat memory). On a modern O/S, this allows the O/S to transfer data using kernel memory only, instead of copying the kernel memory to program memory first (which has a significant cost on high-volume servers). It looks like my solution is to simply disable this option, but I was curious about why this is the case. I am trying to deploy a large GWT app, and I want to ensure that my massive JavaScript files get compressed before being sent to the client. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat service restart
hi my problem is not common i have used tomcat 5.0.30 and java jdk 1.4.1.01 some time when application runs ,its not sure but tomcat service is stopped and we have to restart this. i am using struts 1.2 and hibernate 2 for my apps i could not justify this thing! i feel some like 1.i have generated dynamic form elements ,so some time ending close tag comes before opening tag!this may be reason? 2.tomcat 5 compatible with java 5? or another else? Any good comments or suggestion will be appreciated - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/tomcat-service-restart-tp19809202p19809202.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]