RE: After manager says that there was a leak, how to use a profiler?
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, November 19, 2010 04:45 AM > To: Tomcat Users List > Subject: Re: After manager says that there was a leak, how to use a profiler? > > On 19/11/2010 03:58, Brian wrote: > > Hi Chris, > > > > I already took off the JARs from the shared/lib directory. So that is not an > issue now. > > I have just stopped my apps, and this is what I have found in my log: > > > > > > Nov 18, 2010 10:22:57 PM org.apache.catalina.core.StandardWrapper > > unload > > INFO: Waiting for 1 instance(s) to be deallocated Nov 18, 2010 > > 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > > clearReferencesJdbc > > SEVERE: The web application [] registered the JBDC driver > [com.mysql.jdbc.Driver] but failed to unregister it when the web application > was stopped. To prevent a memory leak, the JDBC Driver has been forcibly > unregistered. > > Tomcat fixed this one for you. You'll need to de-register the JDBC driver in a > ServletContextListener to stop the message. I tried. In the "contextDestroyed" method I placed a code that looks for the drivers and unregisters them. But the only driver found is "sun.jdbc.odbc.JdbcOdbcDriver", which is not even unregistered because (driver.getClass().getClassLoader().equals(getClass().getClassLoader())) = false > > Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > > clearReferencesThreads > > SEVERE: The web application [] appears to have started a thread named > [MySQL Statement Cancellation Timer] but has failed to stop it. This is very > likely to create a memory leak. > > I thought someone mentioned this was fixed in the latest MySQL JDBC driver. Thanks. I have downloaded to latest driver. Now lets see if that solves it. > > Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > > clearThreadLocalMap > > SEVERE: The web application [] created a ThreadLocal with key of type > [org.apache.commons.lang.builder.ReflectionToStringBuilder$1] (value > [org.apache.commons.lang.builder.reflectiontostringbuilde...@1794040]) > and a value of type [java.util.HashSet] (value [[]]) but failed to remove it > when > the web application was stopped. This is very likely to create a memory leak. > > I think this one is https://issues.apache.org/jira/browse/LANG-586 Thanks. I have upgraded to the latest version of Commons Lang. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] How to obtain the id of the current process
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/18/2010 7:03 PM, André Warnier wrote: > André Warnier wrote: >> Christopher Schultz wrote: >>> >>> You also might want to kill it. In either case, most JVMs are running on >>> win32 or UNIX-like OSs, and they both support signals. >>> >> Win32 supports signals ? >> > Well yes, kind of, apparently : > http://msdn.microsoft.com/en-us/library/xdkz3x12%28VS.71%29.aspx Yes, "kind of". ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkznA7sACgkQ9CaO5/Lv0PDy5QCeLP7SNLjzvrF1uyTKh8FixbqP DsQAmwTDkvMf6mb356hjh1XS8Z0+F5Pp =81u/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Should I upgrade to 7.0
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greg, On 11/18/2010 9:28 PM, Robillard, Greg L wrote: > I am relatively unfamiliar with tomcat. I am currently running 6.26 > in a production system that support 1 webapp for approximately 60 > clients that continually poll the server for updates ( weather files > ). > > Is there any reason why I should upgrade to tomcat 7.0 release. I'm going to go out on a limb and make a recommendation that is counter to the the other responses thus far: upgrade. Why? Two reasons: 1. Tomcat 7 needs more real-world testers 2. You appear to have very few users to anger if things go wrong :) Consider upgrading to help the cause. Upgrading to Tomcat 7 should be fairly painless since you are already using Tomcat 6. Remember: test early, test often. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkznA4YACgkQ9CaO5/Lv0PD2xQCbBm83vxPRP8BS1mEEUPe7Zi/C 4koAnitjdFlWB5VvsDqiE6T6rHCW19SD =/jrt -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] How to obtain the id of the current process
Leon Rosenberg wrote: On Thu, Nov 18, 2010 at 6:11 PM, André Warnier wrote: Christopher Schultz wrote: Maybe we should turn the problem around though. If Leon wanted the PID, it was obviously to do something with it later. What do you do with a PID ? Usually, one uses it to send a signal to a process. actually in the very first line, i wanted to find out if an instance of the process was already running. Ha. So maybe you could just check if some well-known port is open for business ? Like that JVM's JMX port for instance ? That would even have the advantages that it works at a distance, and is really multi-platform. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Problems installing Tomcat on Windows 2008
I un-installed the service and rebooted. Then I reinstalled it as an administrator from the command line, and started it via Tomcat6w.exe as an administrator (without any modifications to the Java tab). The service started without issue. Thanks everyone for your help! Richard On Fri, Nov 19, 2010 at 11:14 AM, Konstantin Kolinko wrote: > 2010/11/19 Richard Pless : > > I have removed one of the Tomcat directories and I'm down to just > > c:\oc\tomcat. I've also used "Java -version" to confirm that I am using > the > > 64 bit version of Java 1.6.0_22. I've opened Tomcatw.exe and specified > the > > JVM as 'C:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll' rather > > than the default but it still won't start. > > > > c:\oc\tomcat\bin>service.bat install > Installing the service 'Tomcat6' ... > Using CATALINA_HOME:"C:\oc\tomcat" > Using CATALINA_BASE:"C:\oc\tomcat" > Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" > Using JVM: "c:\Program > Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" > Failed installing 'Tomcat6' service > > a) You certainly need to start cmd.exe console "As Administrator". (I > see you did that). > b) You cannot install the service twice with the same name. (The > second and later attempts will fail with the same generic message as > above). Try "service.bat remove" first. Verify that it is not listed > as a service (in the Control Panel of Windows). (I had several times > when uninstall did not complete until I rebooted). > > Best regards, > Konstantin Kolinko > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Richard "L'audace, l'audace. Toujours l'audace!"
Re: Problems installing Tomcat on Windows 2008
2010/11/19 Richard Pless : > I have removed one of the Tomcat directories and I'm down to just > c:\oc\tomcat. I've also used "Java -version" to confirm that I am using the > 64 bit version of Java 1.6.0_22. I've opened Tomcatw.exe and specified the > JVM as 'C:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll' rather > than the default but it still won't start. > c:\oc\tomcat\bin>service.bat install Installing the service 'Tomcat6' ... Using CATALINA_HOME:"C:\oc\tomcat" Using CATALINA_BASE:"C:\oc\tomcat" Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" Using JVM: "c:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" Failed installing 'Tomcat6' service a) You certainly need to start cmd.exe console "As Administrator". (I see you did that). b) You cannot install the service twice with the same name. (The second and later attempts will fail with the same generic message as above). Try "service.bat remove" first. Verify that it is not listed as a service (in the Control Panel of Windows). (I had several times when uninstall did not complete until I rebooted). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Several hosts within one tomcat / catch-all problem
2010/11/19 Steffen Heil : > Hi > > We have a web application which usually runs on a certain host all alone - > it is the only context for that host. > However, it allows to use different hostnames and therefore we use aliases > in our server.xml per host. > > Now more and more users of those application want to use more subdomains and > we have lots of trouble keeping the server.xml updates with all those > hostnames. > > It would be a huge advantage to be able to tell tomcat to use all subdomains > of a given domain in one step. > Such as > *.domain.tdl I like it. > Or > domain.tld Or a regexp...? (Or any configurable way). (Use some algorithm name instead of "catchAll" argument naming). > > So here are my questions: > > 1) Can this somehow be archived using tomcat 6? (We are currently running > 6.0.29.) > 2) Can the somehow be archived using tomcat 7? > > (As I believe (and fear) the answer to the first two questions are "no", two > more:) > 3) Would it be difficult to add this feature? > 4) Where would I start to work on if I tried to create a patch for tomcat > myself? The mapping is done in org.apache.tomcat.util.http.mapper.Mapper Note, that Mapper.find(MapElement[], String) and similar methods perform a binary search, so how your use case can be plugged into it? All requests go through Mapper, so its performance is important. Maybe allow to apply additional processing if no explicit match was found? > 5) Would there be any chances to get that patch later-on included into > trunk? I, personally, like the general idea of making it more flexible. You may file an enhancement request in the Bugzilla (if there is none yet), though one with a patch has more chances. http://tomcat.apache.org/bugreport.html#Patches_and_enhancement_requests > As a workaround, I can recommend looking at the UrlRewrite filter, http://www.tuckey.org/urlrewrite/ It might be that it will help, but I am no so sure. BTW, you can put those names in an external file and use it in the server.xml as an XML entity. Like the example in http://wiki.apache.org/tomcat/FAQ/Password and use JMX or call mapper.addHostAlias(..) directly to add aliases programmatically at runtime. (though there is no guarantee that the Mapper API does not change between Tomcat minor releases). Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: [OT] How to obtain the id of the current process
On Thu, Nov 18, 2010 at 6:11 PM, André Warnier wrote: > Christopher Schultz wrote: > > Maybe we should turn the problem around though. > If Leon wanted the PID, it was obviously to do something with it later. > What do you do with a PID ? Usually, one uses it to send a signal to a > process. actually in the very first line, i wanted to find out if an instance of the process was already running. :-) regards Leon > And sending a signal to a process, Unix-like, is not likely to be very > multi-platform in the first place. > So maybe finding a purely Java-based alternative to do what Leon wants to do > with the PID would be more productive in the long run ? > > - > 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: Problems installing Tomcat on Windows 2008
I have removed one of the Tomcat directories and I'm down to just c:\oc\tomcat. I've also used "Java -version" to confirm that I am using the 64 bit version of Java 1.6.0_22. I've opened Tomcatw.exe and specified the JVM as 'C:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll' rather than the default but it still won't start. Richard
Re: Several hosts within one tomcat / catch-all problem
On 19/11/2010 15:48, Steffen Heil wrote: > Hi > > We have a web application which usually runs on a certain host all alone - > it is the only context for that host. > > However, it allows to use different hostnames and therefore we use aliases > in our server.xml per host. > > Now more and more users of those application want to use more subdomains and > we have lots of trouble keeping the server.xml updates with all those > hostnames. > > It would be a huge advantage to be able to tell tomcat to use all subdomains > of a given domain in one step. > Such as > *.domain.tdl Can you make that host the defaultHost in the Engine definition? p > Or > domain.tld > > So here are my questions: > > 1) Can this somehow be archived using tomcat 6? (We are currently running > 6.0.29.) > 2) Can the somehow be archived using tomcat 7? > > (As I believe (and fear) the answer to the first two questions are "no", two > more:) > 3) Would it be difficult to add this feature? > 4) Where would I start to work on if I tried to create a patch for tomcat > myself? > 5) Would there be any chances to get that patch later-on included into > trunk? > > Regards, > Steffen > 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Several hosts within one tomcat / catch-all problem
Hi We have a web application which usually runs on a certain host all alone - it is the only context for that host. However, it allows to use different hostnames and therefore we use aliases in our server.xml per host. Now more and more users of those application want to use more subdomains and we have lots of trouble keeping the server.xml updates with all those hostnames. It would be a huge advantage to be able to tell tomcat to use all subdomains of a given domain in one step. Such as *.domain.tdl Or domain.tld So here are my questions: 1) Can this somehow be archived using tomcat 6? (We are currently running 6.0.29.) 2) Can the somehow be archived using tomcat 7? (As I believe (and fear) the answer to the first two questions are "no", two more:) 3) Would it be difficult to add this feature? 4) Where would I start to work on if I tried to create a patch for tomcat myself? 5) Would there be any chances to get that patch later-on included into trunk? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
RE: Problems installing Tomcat on Windows 2008
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: Problems installing Tomcat on Windows 2008 > You also mention that the Java tab on tomcat6w.exe says "use > default". Would that be the first one found in the PATH ? No, it's the one in the registry, set by the most recent JVM install (JRE or JDK). However, I would change that, and point the Java tab to an explicit, known instance. - 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: Problems installing Tomcat on Windows 2008
Richard Pless wrote: If I run startup.bat, Tomcat starts successfully. I navigated to http://localhost:8080 and saw the Tomcat page. Ok, that means at least that there is nothing wrong with your basic Tomcat, and that you have at least a working JVM. It does not really tell us if it is running under a 32-bit or 64-bit JVM though. Starting with startup.bat also does not use the tomcat6.exe wrapper, so it still does not tell us why that one fails. As Chuck mentions, the type of error you are seeing is typical of trying to start a 64-bit JVM with a 32-bit tomcat6.exe, or vice-versa. You also mention that the Java tab on tomcat6w.exe says "use default". Would that be the first one found in the PATH ? Do you have more than one JVM on the machine ? If you just enter "java -version" in a command window, and then retry with the full path to the java.exe which you think Tomcat is using, do you get the same answer ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems installing Tomcat on Windows 2008
> From: Richard Pless [mailto:rfpl...@gmail.com] > Subject: Re: Problems installing Tomcat on Windows 2008 > I also ran command prompt as Administrator. I entered 'service.bat install' > and received the same failure message: > c:\oc\tomcat\bin>service.bat install > Installing the service 'Tomcat6' ... > Using CATALINA_HOME:"C:\oc\tomcat" > Using CATALINA_BASE:"C:\oc\tomcat" > Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" > Using JVM: "c:\Program > Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" > Failed installing 'Tomcat6' service The Tomcat directory given above is different from the one previously shown. You probably need to remove the existing Tomcat6 service before trying to install the new one. - 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: Tomcat hung
On 18/11/2010 16:23, Caldarale, Charles R wrote: > Yes, it was identifying it just as 10.0-b19 that was confusing. Lightbulb: this was the Hotspot VM version number. p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: Problems installing Tomcat on Windows 2008
Hi Chuck, I verfied that both Tomcat and Java were the 64 bit versions using the method that you indicated. I also ran command prompt as Administrator. I entered 'service.bat install' and received the same failure message: c:\oc\tomcat\bin>service.bat install Installing the service 'Tomcat6' ... Using CATALINA_HOME:"C:\oc\tomcat" Using CATALINA_BASE:"C:\oc\tomcat" Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" Using JVM: "c:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" Failed installing 'Tomcat6' service Richard On Fri, Nov 19, 2010 at 8:30 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Richard Pless [mailto:rfpl...@gmail.com] > > Subject: Problems installing Tomcat on Windows 2008 > > The error you're getting is typical of a mismatch between tomcat6.exe and > the JVM. > > > Apache Tomcat v6.0.29 (64 bit) > > Verify that you actually do have the 64-bit version of Tomcat installed. > The 64-bit tomcat6.exe is 78,336 bytes, the 32-bit one is 61,440 bytes. > > > JDK 6u22 (64 bit) > > Verify that the JVM you're referencing is 64-bit by doing: > > "c:\Program Files\Java\jdk1.6.0_22\bin\java" -version > > Verify that tomcat6w.exe shows the above JVM as the one being used by the > service. > > > I have run Tomcat6 and service.bat from the command line. > > The service.bat script must be run as administrator - not just by a user > with an account in the administrators group. (Thank you, Windows > "security".) > > - 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 > > -- Richard "L'audace, l'audace. Toujours l'audace!"
RE: Problems installing Tomcat on Windows 2008
> From: Richard Pless [mailto:rfpl...@gmail.com] > Subject: Re: Problems installing Tomcat on Windows 2008 > When I searched for the error in user groups, the only answer that > I found was to copy msvrc71.dll to my c:/c/tomcat/bin directory. That shouldn't be necessary, as long as the proper DLL is available to the Windows loader (usually from C:\Windows\System32). Note that msvcr71.dll is 32-bit, not 64, so adding it to the bin directory won't 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
Re: Problems installing Tomcat on Windows 2008
If I run startup.bat, Tomcat starts successfully. I navigated to http://localhost:8080 and saw the Tomcat page. Unfortunately I can't get the service to start using "Tomcat6.exe //IS//" from the command line, Tomcat6w or Server Manager -> Services. I'm using all of the defaults in Tomcat6w. On the Java tab, 'Use Default' is checked and everything else is blank. I found the following error in my log: "The Tomcat6 service terminated with service-specific error 0 (0x0)." When I searched for the error in user groups, the only answer that I found was to copy msvrc71.dll to my c:/c/tomcat/bin directory. I've tried that and it doesn't seem to help. Richard On Fri, Nov 19, 2010 at 8:09 AM, André Warnier wrote: > Richard Pless wrote: > >> Hi All, >> >> I'm having problems installing Tomcat 6.0.29 as a service on a Windows >> 2008 >> server. Here are the relevant specs >>Apache Tomcat v6.0.29 (64 bit) >>JDK 6u22 (64 bit) >>Windows Server Standard 2008 (sp2) >> >> I've tried to start the Tomcat as a service unsuccessfully. I have run >> Tomcat6 and service.bat from the command line. Here's my output from >> service.bat >> >>C:\c\tomcat\bin>service.bat install >>Installing the service 'Tomcat6' ... >>Using CATALINA_HOME:"C:\c\tomcat" >>Using CATALINA_BASE:"C:\c\tomcat" >>Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" >>Using JVM: "c:\Program >> Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" >>Failed installing 'Tomcat6' service >>C:\c\tomcat\bin> >> >> Here is what I'm seeing in my Jakarta Service Log: >>[2010-11-18 11:42:20] [1381 prunsrv.c] [debug] Commons Daemon procrun >> log initialized >>[2010-11-18 11:42:20] [info] Commons Daemon procrun (1.0.2.0) started >>[2010-11-18 11:42:20] [info] Running Service... >>[2010-11-18 11:42:20] [1165 prunsrv.c] [debug] Inside ServiceMain... >>[2010-11-18 11:42:20] [info] Starting service... >>[2010-11-18 11:42:20] [206 javajni.c] [error] The specified module >> could not be found. >>[2010-11-18 11:42:20] [985 prunsrv.c] [error] Failed creating java >>[2010-11-18 11:42:20] [1280 prunsrv.c] [error] ServiceStart returned 1 >>[2010-11-18 11:42:20] [info] Run service finished. >>[2010-11-18 11:42:20] [info] Commons Daemon procrun finished. >> >> I have checked the environmental variables above and I believe that they >> are >> correct. I have also copied msrvc71.dll to my oc\tomcat\bin directory >> (where Tomcat6.exe is located) per some other suggestions I've found >> online. >> >> I can see the service from Windows Services but I can't start it from >> there >> Nor can I start it using netstart from the command line or using >> service.bat. I'm new to Apache and Java. Any help would be appreciated. >> >> > Can you run Tomcat from a command window ? > Navigate to C:\c\tomcat\bin > run "startup.bat" (it should open another window where tomcat messages will > appear) > (terminate with ctrl-c in the new window) > > You can also run the program "tomcat6w.exe" directly. It is a GUI program > which allows to edit the Registry settings of the Tomcat Service. Maybe you > can spot there what is missing. > > For info, "tomcat6.exe" is actually the Commons Daemon "procrun" mentioned > above in the log. It is just renamed. tomcat6.exe is a "wrapper program", > which reads the Registry settings of the Tomcat service and starts the JVM > accordingly (or tries to). > > It looks like it cannot start the java JVM for some reason. > Maybe also the Windows Event log will give a clue ? > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Richard "L'audace, l'audace. Toujours l'audace!"
RE: Problems installing Tomcat on Windows 2008
> From: Richard Pless [mailto:rfpl...@gmail.com] > Subject: Problems installing Tomcat on Windows 2008 The error you're getting is typical of a mismatch between tomcat6.exe and the JVM. > Apache Tomcat v6.0.29 (64 bit) Verify that you actually do have the 64-bit version of Tomcat installed. The 64-bit tomcat6.exe is 78,336 bytes, the 32-bit one is 61,440 bytes. > JDK 6u22 (64 bit) Verify that the JVM you're referencing is 64-bit by doing: "c:\Program Files\Java\jdk1.6.0_22\bin\java" -version Verify that tomcat6w.exe shows the above JVM as the one being used by the service. > I have run Tomcat6 and service.bat from the command line. The service.bat script must be run as administrator - not just by a user with an account in the administrators group. (Thank you, Windows "security".) - 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: Problems installing Tomcat on Windows 2008
Richard Pless wrote: Hi All, I'm having problems installing Tomcat 6.0.29 as a service on a Windows 2008 server. Here are the relevant specs Apache Tomcat v6.0.29 (64 bit) JDK 6u22 (64 bit) Windows Server Standard 2008 (sp2) I've tried to start the Tomcat as a service unsuccessfully. I have run Tomcat6 and service.bat from the command line. Here's my output from service.bat C:\c\tomcat\bin>service.bat install Installing the service 'Tomcat6' ... Using CATALINA_HOME:"C:\c\tomcat" Using CATALINA_BASE:"C:\c\tomcat" Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" Using JVM: "c:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" Failed installing 'Tomcat6' service C:\c\tomcat\bin> Here is what I'm seeing in my Jakarta Service Log: [2010-11-18 11:42:20] [1381 prunsrv.c] [debug] Commons Daemon procrun log initialized [2010-11-18 11:42:20] [info] Commons Daemon procrun (1.0.2.0) started [2010-11-18 11:42:20] [info] Running Service... [2010-11-18 11:42:20] [1165 prunsrv.c] [debug] Inside ServiceMain... [2010-11-18 11:42:20] [info] Starting service... [2010-11-18 11:42:20] [206 javajni.c] [error] The specified module could not be found. [2010-11-18 11:42:20] [985 prunsrv.c] [error] Failed creating java [2010-11-18 11:42:20] [1280 prunsrv.c] [error] ServiceStart returned 1 [2010-11-18 11:42:20] [info] Run service finished. [2010-11-18 11:42:20] [info] Commons Daemon procrun finished. I have checked the environmental variables above and I believe that they are correct. I have also copied msrvc71.dll to my oc\tomcat\bin directory (where Tomcat6.exe is located) per some other suggestions I've found online. I can see the service from Windows Services but I can't start it from there Nor can I start it using netstart from the command line or using service.bat. I'm new to Apache and Java. Any help would be appreciated. Can you run Tomcat from a command window ? Navigate to C:\c\tomcat\bin run "startup.bat" (it should open another window where tomcat messages will appear) (terminate with ctrl-c in the new window) You can also run the program "tomcat6w.exe" directly. It is a GUI program which allows to edit the Registry settings of the Tomcat Service. Maybe you can spot there what is missing. For info, "tomcat6.exe" is actually the Commons Daemon "procrun" mentioned above in the log. It is just renamed. tomcat6.exe is a "wrapper program", which reads the Registry settings of the Tomcat service and starts the JVM accordingly (or tries to). It looks like it cannot start the java JVM for some reason. Maybe also the Windows Event log will give a clue ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problems installing Tomcat on Windows 2008
Hi All, I'm having problems installing Tomcat 6.0.29 as a service on a Windows 2008 server. Here are the relevant specs Apache Tomcat v6.0.29 (64 bit) JDK 6u22 (64 bit) Windows Server Standard 2008 (sp2) I've tried to start the Tomcat as a service unsuccessfully. I have run Tomcat6 and service.bat from the command line. Here's my output from service.bat C:\c\tomcat\bin>service.bat install Installing the service 'Tomcat6' ... Using CATALINA_HOME:"C:\c\tomcat" Using CATALINA_BASE:"C:\c\tomcat" Using JAVA_HOME:"c:\Program Files\Java\jdk1.6.0_22" Using JVM: "c:\Program Files\Java\jdk1.6.0_22\jre\bin\server\jvm.dll" Failed installing 'Tomcat6' service C:\c\tomcat\bin> Here is what I'm seeing in my Jakarta Service Log: [2010-11-18 11:42:20] [1381 prunsrv.c] [debug] Commons Daemon procrun log initialized [2010-11-18 11:42:20] [info] Commons Daemon procrun (1.0.2.0) started [2010-11-18 11:42:20] [info] Running Service... [2010-11-18 11:42:20] [1165 prunsrv.c] [debug] Inside ServiceMain... [2010-11-18 11:42:20] [info] Starting service... [2010-11-18 11:42:20] [206 javajni.c] [error] The specified module could not be found. [2010-11-18 11:42:20] [985 prunsrv.c] [error] Failed creating java [2010-11-18 11:42:20] [1280 prunsrv.c] [error] ServiceStart returned 1 [2010-11-18 11:42:20] [info] Run service finished. [2010-11-18 11:42:20] [info] Commons Daemon procrun finished. I have checked the environmental variables above and I believe that they are correct. I have also copied msrvc71.dll to my oc\tomcat\bin directory (where Tomcat6.exe is located) per some other suggestions I've found online. I can see the service from Windows Services but I can't start it from there Nor can I start it using netstart from the command line or using service.bat. I'm new to Apache and Java. Any help would be appreciated. Thanks in advance, Richard
Re: EXTERNAL: Re: Tomcat hung
In your full production trace, is there an indication which thread has the "<0xd50244e8>" lock? I've debugged similar situations where threads were "blocked waiting for monitor <0x.>" (getting java.sql.Connections, as it turned out) -- identifying & examining the thread that had locked that monitor (with a message something like "grabbed monitor <0x>") helped quite a bit w/debugging. On Thu, Nov 18, 2010 at 10:35 AM, Robillard, Greg L wrote: > Production, as of yet, strangely, I have not been able to create this problem > testing. > > Here is the top of the stack without a profiler. > > 2010-10-04 10:35:50 > Full thread dump Java HotSpot(TM) Server VM (10.0-b19 mixed mode): > > "Attach Listener" daemon prio=10 tid=0x08170400 nid=0x716b waiting on > condition [0x..0x] > java.lang.Thread.State: RUNNABLE > > "http-8080-200" daemon prio=10 tid=0xcbca9800 nid=0xb5e waiting on condition > [0xc5dbc000..0xc5dbcea0] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0xd50244e8> (a > java.util.concurrent.locks.ReentrantReadWriteLock$FairSync) > at java.util.concurrent.locks.LockSupport.park(Unknown Source) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(Unknown > Source) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(Unknown > Source) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(Unknown > Source) > at > java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(Unknown > Source) > at > com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getOffering(ScanningCoverage.java:286) > at > com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getCoverageOffering(ScanningCoverage.java:282) > at com.luciad.ogc.wcs.server.f.a(SourceFile:124) > at com.luciad.ogc.wcs.server.f.a(SourceFile:14) > at com.luciad.ogc.wcs.server.f$c.handleRequest(SourceFile:155) > at com.luciad.ogc.common.f.a(LuciadMap:41) > at com.luciad.ogc.wcs.TLcdWCSServlet.a(LuciadMap:68) > at com.luciad.ogc.wcs.TLcdWCSServlet.doGet(LuciadMap:99) > 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(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > 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:298) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) > at java.lang.Thread.run(Unknown Source) > > "http-8080-199" daemon prio=10 tid=0xcbca8400 nid=0xb5d waiting on condition > [0xc5e0d000..0xc5e0de20] > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0xd50244e8> (a > java.util.concurrent.locks.ReentrantReadWriteLock$FairSync) > at java.util.concurrent.locks.LockSupport.park(Unknown Source) > > I can include more if required. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to source jobs/talent was RE: Tomcat Consultant
On 19/11/2010 12:41, Jason Pyeron wrote: > I did notice that the FAQ (http://wiki.apache.org/tomcat/FAQ) does not mention > how to request consulting services or post jobs. It is a wiki. Anyone can edit it... Also: Find help on http://tomcat.apache.org/ leads to http://tomcat.apache.org/findhelp.html which has a link to http://wiki.apache.org/tomcat/SupportAndTraining which feels about right to me in terms of prominence. I'd rather see folks come to the mailing list in the first instance. > I have always liked the way Bugzilla organizes their site, so any user looking > for the mailing list (http://www.bugzilla.org/support/) also found the link to > the consulting registry (http://www.bugzilla.org/support/consulting.html). Which doesn't seem like a million miles away from how the Tomcat pages are organised. As always, patches for improvements welcome (or if it is the wiki, just edit it). Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: How to source jobs/talent was RE: Tomcat Consultant
> -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Friday, November 19, 2010 2:37 > To: Tomcat Users List > Subject: Re: How to source jobs/talent was RE: Tomcat Consultant > > Jason Pyeron wrote: > ... > > > > Disclaimer: We perform many types J2EE consulting. > > > proofreading ? It should have read: Disclaimer: We perform many types of J2EE consulting. Touché. One should not write emails while eating dinner. But I think the message was clearly constructive. I did notice that the FAQ (http://wiki.apache.org/tomcat/FAQ) does not mention how to request consulting services or post jobs. But there is a page (http://www.apache.org/info/support.cgi) dedicated to commercial support of Apache products. I have always liked the way Bugzilla organizes their site, so any user looking for the mailing list (http://www.bugzilla.org/support/) also found the link to the consulting registry (http://www.bugzilla.org/support/consulting.html). -Jason -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100- - +1 (443) 269-1555 x333Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems with new mod_jk and possible misinformation on the website
Thank you very much Chris, I've checked the md5sum and file information for the mod_jk that failed and it's the same, so it seems to be a misplaced description, at least at the rediris.es site here in Spain. All my log levels are set to debug, I will compile my own mod_jk. I hope to give it a try this weekend so I will get back to you with the results. I will make sure that it's not a problem with workers.properties or mod_jk.conf, I don't use urimap.properties, I will try that too. Anyway, if my problem persists I will attach all the configuration files Thanks again, have a nice weekend! > Date: Thu, 18 Nov 2010 10:07:57 -0500 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: Problems with new mod_jk and possible misinformation on the > website > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > > On 11/18/2010 7:01 AM, Héctor Gómez wrote: > > Hi, I'm running a CentOs 5 with Apache 2.0.52. I've tried to connect > > Apache with Tomcat 7.0.4 using mod_jk. First I tried the jk-1.2.31 > > version. As I have a i586 I choosed the i386 release, and downloaded > > mod_jk-1.2.31-httpd-2.0.x.so Ok, here there might be a mistake. On > > the description you can read "Apache Tomcat Connectors (mod_jk) > > 1.2.31 for Linux x86_64". Notice the "x86_64"! (I'm inside the i386 > > folder!) > > That looks like a documentation mistake. > > $ wget > 'http://www.motorlogy.com/apachemirror//tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.31/i386/mod_jk-1.2.31-httpd-2.0.x.so' > > $ md5sum mod_jk-1.2.31-httpd-2.0.x.so > 7ffd2f097a399669e28fb47e5d6c065c mod_jk-1.2.31-httpd-2.0.x.so > > $ file mod_jk-1.2.31-httpd-2.0.x.so > mod_jk-1.2.31-httpd-2.0.x.so: ELF 32-bit LSB shared object, Intel 80386, > version 1 (SYSV), dynamically linked, not stripped > > Looks like i386 to me. > > > That connector is said to be built against version 2.0.52, but it > > doesn't work. Apache fails on startup and logs no error, and mod_jk > > log neither. > > If the module won't load, you won't get a mod_jk.log file at all. Try > turning-up the error log level in httpd and trying again. > > I've never seen httpd fail to start and /also/ fail to emit an error > message of /some/ kind. If CentOS has the error log going to syslog or > something, you might want to check there, too. > > > Maybe the i386 version is not suitable for a i586 > > Nope, i386 should even work on x86_64 (as long as the process is in x86 > mode). > > > or maybe this is in fact a x86_64 version (as the description says) > > even if it's placed into the i386 folder. > > Nope, see above. > > > Anyway, I downloaded the jk-1.2.30 for i586. That suits my > > architecture, and Apache starts up the right way. But... no > > redirection is done! > > Configuration please? Jk* directives as well as workers.properties (if > you are using one) and urimap.properties (if you are using one). Also, > tell us what URIs you are trying that aren't being redirected. > > Often, users specify their JkMounts at the top-level configuration, and > then use a to define all of their services. If you do > that, you'll observe mod_jk doing nothing at all. You should move your > JkMounts to within your . If you /must/ define those at the > top-level, then use "JkMountCopy On" in your and that > should inherit your mounts from the top-level. > > > The connector doesn't seem to be working as expected. The problem is > > that this version may not be suitable for me, as it has been build > > against version 2.0.61 "and should work with Apache 2.0.55 and > > later". But mine is 2.0.52 and I can't change it. Should I > > downgrade? > > I don't think you should downgrade. > > > What can I do? Is there a problem with the jk-1.2.31 for i386? > > Perhaps. > > > or is it just a misplaced description? > > That is almost certainly true. > > Another option you always have is to compile the module yourself. If you > have gcc and make installed as well as "apxs" (usually installed with an > apache-httpd-dev package or somesuch), then it's trivial to compile > mod_jk against your own httpd that is pretty much guaranteed to work. > > I always compile my own mod_jk and I've never had any problems. > > Hope that helps, > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkzlQU0ACgkQ9CaO5/Lv0PBTsACghgiSD5z61g3XXeQrn93iCvlZ > IBAAn2k8k77Y/wPTTpzfnBGCmZK3hpmH > =AcvA > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >
Re: After manager says that there was a leak, how to use a profiler?
On 19/11/2010 03:58, Brian wrote: > Hi Chris, > > I already took off the JARs from the shared/lib directory. So that is not an > issue now. > I have just stopped my apps, and this is what I have found in my log: > > > Nov 18, 2010 10:22:57 PM org.apache.catalina.core.StandardWrapper unload > INFO: Waiting for 1 instance(s) to be deallocated > Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > clearReferencesJdbc > SEVERE: The web application [] registered the JBDC driver > [com.mysql.jdbc.Driver] but failed to unregister it when the web application > was stopped. To prevent a memory leak, the JDBC Driver has been forcibly > unregistered. Tomcat fixed this one for you. You'll need to de-register the JDBC driver in a ServletContextListener to stop the message. > Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > clearReferencesThreads > SEVERE: The web application [] appears to have started a thread named [MySQL > Statement Cancellation Timer] but has failed to stop it. This is very likely > to create a memory leak. I thought someone mentioned this was fixed in the latest MySQL JDBC driver. > Nov 18, 2010 10:22:58 PM org.apache.catalina.loader.WebappClassLoader > clearThreadLocalMap > SEVERE: The web application [] created a ThreadLocal with key of type > [org.apache.commons.lang.builder.ReflectionToStringBuilder$1] (value > [org.apache.commons.lang.builder.reflectiontostringbuilde...@1794040]) and a > value of type [java.util.HashSet] (value [[]]) but failed to remove it when > the web application was stopped. This is very likely to create a memory leak. I think this one is https://issues.apache.org/jira/browse/LANG-586 Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Should I upgrade to 7.0
On 19/11/2010 02:28, Robillard, Greg L wrote: > I am relatively unfamiliar with tomcat. I am currently running 6.26 in a > production system that support 1 webapp for approximately 60 clients that > continually poll the server for updates ( weather files ). > > Is there any reason why I should upgrade to tomcat 7.0 release. Yes, there are, but you should note that most release versions of Tomcat are associated with a version of the Servlet Specification (Servlet 3.0 in 7.0's case). See: http://tomcat.apache.org/whichversion.html Tomcat 7.0 has not yet been declared stable, but is thought to be approaching that point. If you need or want Servlet 3.0 features then yes, upgrade, - if not, is there a compelling reason to upgrade? Perhaps not yet. Upgrading to the 'latest and greatest' may not be necessary for you at this point, but I'd recommend trying it in a dev environment, if you have one, because getting feedback about the server is important. p > Thanks > 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature