Re: Problems starting Tomcat 9.0.24 32-bit as a service
On August 27, 2019 5:40:57 PM UTC, Juan Ramirez wrote: >Hello, > >I'm currently having an issue with starting Tomcat 9.0.24 32-bit >version as a service. https://bz.apache.org/bugzilla/show_bug.cgi?id=63625 It seems to be specific to 32-bit Windows. Still digging in to the root cause. You can use Tomcat9.exe from 9.0.22 as a workaround. Mark > After installing Tomcat9 using the windows >service installer, I try to run Tomcat9 and get the windows service >error: >"Windows could not start Tomcat9 service on Local Computer. Error 1067: >The process terminated unexpectedly." I tried looking in the logs to >see what could have caused the error, but no errors are logged. The >only thing I could find in the logs is in the commons daemon log file: > >[10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started. >[10860] Debugging 'tomcat9' service... >[10860] Starting service... > >I also tried running Tomcat9 through the executable (tomcat9.exe) and >get the error: "Apache Commons Daemon Service Runner has stopped >working." I have also tried manually installing Tomcat9 through the >32-bit Windows zip and keep having the same errors as installing it >through the installer. When I tried using the 64-bit version of Tomcat >9.0.24, it seems to work fine and I'm able to launch it as a service, >which leads me to belive that something maybe wrong with the 32-bit >version only. I'm using AdoptJDK 12.0.2+10 HotSpot 32-bit for Windows >10, as well as the 64-bit version when I tried the 64 bit version of >Tomcat9. The last thing I tried was running Tomcat 9.0.24 32-bit >through the command line window with the provided startup.bat file in >the bin folder and I was able to run Tomcat9 and even reach the default >web page. I'm just not able to run it as a windows service. > >Any and all help is appreciated, thanks. >Juan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Profiler for Tomcat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Michael, On 8/27/19 18:47, Michael Duffy wrote: > I have searched for a good profiler for Tomcat with little > success. > > I am looking for an application that will profile internal memory > and bandwidth utilized (data transfer rates from Tomcat). > > Any help would be greatly appreciated. No profiler will show you transfer rates: that's not what profilers do. You can observe tx rate via JMX with virtually any tool that understands JMX. I'm not sure what kind of profiling you really want (profilers generally slow everything down and aren't something you want to run in production), but Moskito[1] is a fairly comprehensive monitoring package with some profiler-like capabilities, and it is intimately familiar with instrumenting Tomcat and other application servers. - -chris [1] https://www.moskito.org/ -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1l7cMACgkQHPApP6U8 pFgnnRAAg2cI/NdBd7IQsz7/GgiaKtppECzKK307UArIP3iz6mdMhXhQI6STjXfo TsGEL2jRJepK0HZeMtLq0T5Ud9D7ZqnLkfP4fh8LVbaAPQJZiwWOJR4bNOIpsIsi nLbG2VYDZeOFe+AIfy894ewaAYg4c4h7ryoixHlNb9ypW7NMEJFVvXOz2Oqi9EB5 xE+TlUTGk1uKD/V054Qd5ExJkqaCxuGGassZVK8KKxRJtoQMu+fA3Uj/HSpjYN29 0s/fKVAEBat1f0ecCjdAPcoj9BrmyHuP3hf84ULfOsaW2m+KIOVL3JEimhoxwnxK nK7aKzVkpFGoZbrP7tVSEcMBY2uMCrz1GuxmgE9QHwXHuraDn4JNsH1ICyNn8cBr gnpZYnAmHcIjqZ+GOkY/5D6zSowfvdO2flB7zNux8Yi5fn/YW9kXp4zmIsKU/hjE w69JbL9i42/oVY7dhZjWKEf5YvGcyYT52KrBI1EqmXv3USjtSV9TdSFXClJgQufa ulvXJFbM8N5xJEec5tteTCBrffKosqpalaa6Y9h9j92alSyKt1NRXaxMkAWc3Cqk xJ7kpD8/8Nxhv8U8HjBkg3JLdsYUiiC3p/jD0+ZC6Zy968uSmiaBRb/nskCQbRK+ otdTBDxo0E/fZhe1DLBzKIWPjXRCSfd18WvVv659hFoYhlRuH84= =NqAx -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Profiler for Tomcat
YourKit Java Profiler [1] is really great in my opinion. Igal [1] https://www.yourkit.com/java/profiler/ On Tue, Aug 27, 2019 at 5:12 PM calder wrote: > YourKit, AppDynamics, Mission Control, JProfiler, New Relic, ... > > > On Tuesday, August 27, 2019, Michael Duffy wrote: > > > I have searched for a good profiler for Tomcat with little success. > > > > I am looking for an application that will profile internal memory and > > bandwidth utilized (data transfer rates from Tomcat). > > > > Any help would be greatly appreciated. > > > > Thx! > > >
Re: Profiler for Tomcat
YourKit, AppDynamics, Mission Control, JProfiler, New Relic, ... On Tuesday, August 27, 2019, Michael Duffy wrote: > I have searched for a good profiler for Tomcat with little success. > > I am looking for an application that will profile internal memory and > bandwidth utilized (data transfer rates from Tomcat). > > Any help would be greatly appreciated. > > Thx! >
Profiler for Tomcat
I have searched for a good profiler for Tomcat with little success. I am looking for an application that will profile internal memory and bandwidth utilized (data transfer rates from Tomcat). Any help would be greatly appreciated. Thx!
RE: Problems starting Tomcat 9.0.24 32-bit as a service
On Tuesday, August 27, 2019 7:41 PM Juan Ramirez wrote: > >I'm currently having an issue with starting Tomcat 9.0.24 32-bit version as a >service. After installing Tomcat9 using the windows service installer, I try >to run Tomcat9 and get the windows service error: >"Windows could not start Tomcat9 service on Local Computer. Error 1067: The >process terminated unexpectedly." I tried looking in the logs to see what >could have caused the error, but no errors are logged. The only thing I could >find in the logs is in the commons daemon log file: > >[10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started. >[10860] Debugging 'tomcat9' service... >[10860] Starting service... > >I also tried running Tomcat9 through the executable (tomcat9.exe) and get the >error: "Apache Commons Daemon Service Runner has stopped working." I have also >tried manually installing Tomcat9 through the 32-bit Windows zip and keep >having the same errors as installing it through the installer. When I tried >using the 64-bit version of Tomcat 9.0.24, it seems to work fine and I'm able >to launch it as a service, which leads me to belive that something maybe wrong >with the 32-bit version only. I'm using AdoptJDK 12.0.2+10 >>Here's your problem. See my post to this list from July 26, 11:32 and earlier >>to which nobody has replied so far >>http://mail-archives.apache.org/mod_mbox/tomcat-users/201907.mbox/%3CAM6PR03MB60075E5A12F40DAB9281E073BEC00%40AM6PR03MB6007.eurprd03.prod.outlook.com%3E >>The OpenJdk installers don't configure the registry the same way as as Java 8 >>did. procrun doesn't cope with it. >>Workaround is to mess with JAVA_HOME or to install Java 8. >>procrun needs to be fixed. >>Michael Thanks for the response Michael. I do have JAVA_HOME set as this is a required step to manually install Tomcat9, otherwise it fails to find the JDK, which is described in the post you linked. I think my issue maybe different since this only happens with Tomcat 9.0.24 32-bit version specifically. As I mentioned earlier, I did try Tomcat 9.0.24 64-bit version with the 64-bit version of AdoptOpenJDK 12.0.2+10 and Tomcat9 works and runs as a service. Currently I do have Tomcat 9.0.22 32-bit running with AdoptOpenJDK 12.0.2+10 32-bit, so I don't think this issue is the same as mine. Do please keep in mind that this issue only occurs with Tomcat 9.0.24 32-bit as if I use a previous 32-bit version of Tomcat9, Tomcat9 works just fine with no problems. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems starting Tomcat 9.0.24 32-bit as a service
On Tuesday, August 27, 2019 7:41 PM Juan Ramirez wrote: > >I'm currently having an issue with starting Tomcat 9.0.24 32-bit version as a >service. After installing Tomcat9 using the windows service installer, I try >to run Tomcat9 and get the windows service error: >"Windows could not start Tomcat9 service on Local Computer. Error 1067: The >process terminated unexpectedly." I tried looking in the logs to see what >could have caused the error, but no errors are logged. The only thing I could >find in the logs is in the commons daemon log file: > >[10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started. >[10860] Debugging 'tomcat9' service... >[10860] Starting service... > >I also tried running Tomcat9 through the executable (tomcat9.exe) and get the >error: "Apache Commons Daemon Service Runner has stopped working." I have also >tried manually installing Tomcat9 through the 32-bit Windows zip and keep >having the same errors as installing it through the installer. When I tried >using the 64-bit version of Tomcat 9.0.24, it seems to work fine and I'm able >to launch it as a service, which leads me to belive that something maybe wrong >with the 32-bit version only. I'm using AdoptJDK 12.0.2+10 Here's your problem. See my post to this list from July 26, 11:32 and earlier to which nobody has replied so far http://mail-archives.apache.org/mod_mbox/tomcat-users/201907.mbox/%3CAM6PR03MB60075E5A12F40DAB9281E073BEC00%40AM6PR03MB6007.eurprd03.prod.outlook.com%3E The OpenJdk installers don't configure the registry the same way as as Java 8 did. procrun doesn't cope with it. Workaround is to mess with JAVA_HOME or to install Java 8. procrun needs to be fixed. Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problems starting Tomcat 9.0.24 32-bit as a service
Hello, I'm currently having an issue with starting Tomcat 9.0.24 32-bit version as a service. After installing Tomcat9 using the windows service installer, I try to run Tomcat9 and get the windows service error: "Windows could not start Tomcat9 service on Local Computer. Error 1067: The process terminated unexpectedly." I tried looking in the logs to see what could have caused the error, but no errors are logged. The only thing I could find in the logs is in the commons daemon log file: [10860] Apache Commons Daemon procrun (1.2.0.0 32-bit) started. [10860] Debugging 'tomcat9' service... [10860] Starting service... I also tried running Tomcat9 through the executable (tomcat9.exe) and get the error: "Apache Commons Daemon Service Runner has stopped working." I have also tried manually installing Tomcat9 through the 32-bit Windows zip and keep having the same errors as installing it through the installer. When I tried using the 64-bit version of Tomcat 9.0.24, it seems to work fine and I'm able to launch it as a service, which leads me to belive that something maybe wrong with the 32-bit version only. I'm using AdoptJDK 12.0.2+10 HotSpot 32-bit for Windows 10, as well as the 64-bit version when I tried the 64 bit version of Tomcat9. The last thing I tried was running Tomcat 9.0.24 32-bit through the command line window with the provided startup.bat file in the bin folder and I was able to run Tomcat9 and even reach the default web page. I'm just not able to run it as a windows service. Any and all help is appreciated, thanks. Juan
Re: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port
And just for fun, I searched Google for "tcp port 12345" and found this among others : https://www.speedguide.net/port.php?port=12345 On 27.08.2019 16:09, Patrick Heinen wrote: Thank you very much for your prompt and detailed feedback. Unfortunately, there are no such entries in the "web.xml" files within "webapps". Logfiles do not show such entry either. We therefore have to get in touch with the software vendor in order to address this. Thanks again. -Original Message- From: André Warnier (tomcat) [mailto:a...@ice-sa.com] Sent: Dienstag, 27. August 2019 15:43 To: users@tomcat.apache.org Subject: Re: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port Addendum : On 27.08.2019 15:23, André Warnier (tomcat) wrote: On 27.08.2019 14:05, Patrick Heinen wrote: Hi everyone, In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening on TCP port 12345, and we need to change this to a different port number.. Unfortunatley, we cannot find a way to change this since it is not specified in server.xml or Java options. Does anybody know how this port can be changed? For full details (server.xml etc.) see: https://serverfault.com/questions/980452/how-change-tomcat8-exe-liste ning-port-0-0-0-012345-to-a-different-port Short version : run tomcat8w.exe, and examine the various tabs to see if you find your port 12345 somewhere there (maybe the JVM is listening for JMX or so). Otherwise, it must be (also) an application which tomcat is running, which opens its own port 12345). Long version : read https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11 to find out what tomcat8.exe and tomcat8w.exe really are. short version of the long version : server.xml shows the ports on which /tomcat itself/ is listening. But tomcat8.exe is not "tomcat". It is a wrapper program, which runs the JVM which runs tomcat, which runs applications. The JVM itself, and the applications, may open ports, without tomcat even knowing about them. Let us know if that helps. If you need to go dow to the tomcat applications level : Under the tomcat top directory, there is a sub-directory "webapps" containing the applications that run under tomcat. Each of those webapps corresponds to a sub -directory of tomcat-dir/webapps/. Under each of these sub-directories, there should be a sub-directory named "WEB-INF", which contains a file "web.xml" specific to this application. If the application opens any TCP port by itself, chances are that it is mentioned as a parameter in that web.xml file. Another good source may be the tomcat logfiles, at the moment tomcat starts.. The logfile usually contains messages indicating when tomcat opens ports and/or starts applications, and the applications themselves may also write there when they open a port. (That depends of course on the application, and how helpful its logging is).. Good luck. - 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 - 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: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port
Thank you very much for your prompt and detailed feedback. Unfortunately, there are no such entries in the "web.xml" files within "webapps". Logfiles do not show such entry either. We therefore have to get in touch with the software vendor in order to address this. Thanks again. -Original Message- From: André Warnier (tomcat) [mailto:a...@ice-sa.com] Sent: Dienstag, 27. August 2019 15:43 To: users@tomcat.apache.org Subject: Re: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port Addendum : On 27.08.2019 15:23, André Warnier (tomcat) wrote: > On 27.08.2019 14:05, Patrick Heinen wrote: >> Hi everyone, >> >> In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening >> on TCP port 12345, and we need to change this to a different port number. >> Unfortunatley, we cannot find a way to change this since it is not >> specified in server.xml or Java options. Does anybody know how this port can >> be changed? >> >> For full details (server.xml etc.) see: >> https://serverfault.com/questions/980452/how-change-tomcat8-exe-liste >> ning-port-0-0-0-012345-to-a-different-port >> >> > > Short version : run tomcat8w.exe, and examine the various tabs to see > if you find your port 12345 somewhere there (maybe the JVM is > listening for JMX or so). Otherwise, it must be (also) an application which > tomcat is running, which opens its own port 12345). > > Long version : read > https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11 > to find out what tomcat8.exe and tomcat8w.exe really are. > > short version of the long version : > server.xml shows the ports on which /tomcat itself/ is listening. > But tomcat8.exe is not "tomcat". It is a wrapper program, which runs > the JVM which runs tomcat, which runs applications. The JVM itself, > and the applications, may open ports, without tomcat even knowing about them. > > Let us know if that helps. > If you need to go dow to the tomcat applications level : Under the tomcat top directory, there is a sub-directory "webapps" containing the applications that run under tomcat. Each of those webapps corresponds to a sub -directory of tomcat-dir/webapps/. Under each of these sub-directories, there should be a sub-directory named "WEB-INF", which contains a file "web.xml" specific to this application. If the application opens any TCP port by itself, chances are that it is mentioned as a parameter in that web.xml file. Another good source may be the tomcat logfiles, at the moment tomcat starts. The logfile usually contains messages indicating when tomcat opens ports and/or starts applications, and the applications themselves may also write there when they open a port. (That depends of course on the application, and how helpful its logging is). Good luck. > > > - > 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port
Addendum : On 27.08.2019 15:23, André Warnier (tomcat) wrote: On 27.08.2019 14:05, Patrick Heinen wrote: Hi everyone, In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening on TCP port 12345, and we need to change this to a different port number. Unfortunatley, we cannot find a way to change this since it is not specified in server.xml or Java options. Does anybody know how this port can be changed? For full details (server.xml etc.) see: https://serverfault.com/questions/980452/how-change-tomcat8-exe-listening-port-0-0-0-012345-to-a-different-port Short version : run tomcat8w.exe, and examine the various tabs to see if you find your port 12345 somewhere there (maybe the JVM is listening for JMX or so). Otherwise, it must be (also) an application which tomcat is running, which opens its own port 12345). Long version : read https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11 to find out what tomcat8.exe and tomcat8w.exe really are. short version of the long version : server.xml shows the ports on which /tomcat itself/ is listening. But tomcat8.exe is not "tomcat". It is a wrapper program, which runs the JVM which runs tomcat, which runs applications. The JVM itself, and the applications, may open ports, without tomcat even knowing about them. Let us know if that helps. If you need to go dow to the tomcat applications level : Under the tomcat top directory, there is a sub-directory "webapps" containing the applications that run under tomcat. Each of those webapps corresponds to a sub -directory of tomcat-dir/webapps/. Under each of these sub-directories, there should be a sub-directory named "WEB-INF", which contains a file "web.xml" specific to this application. If the application opens any TCP port by itself, chances are that it is mentioned as a parameter in that web.xml file. Another good source may be the tomcat logfiles, at the moment tomcat starts. The logfile usually contains messages indicating when tomcat opens ports and/or starts applications, and the applications themselves may also write there when they open a port. (That depends of course on the application, and how helpful its logging is). Good luck. - 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: How change tomcat8.exe listening port 0.0.0.0:12345 to a different port
On 27.08.2019 14:05, Patrick Heinen wrote: Hi everyone, In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening on TCP port 12345, and we need to change this to a different port number. Unfortunatley, we cannot find a way to change this since it is not specified in server.xml or Java options. Does anybody know how this port can be changed? For full details (server.xml etc.) see: https://serverfault.com/questions/980452/how-change-tomcat8-exe-listening-port-0-0-0-012345-to-a-different-port Short version : run tomcat8w.exe, and examine the various tabs to see if you find your port 12345 somewhere there (maybe the JVM is listening for JMX or so). Otherwise, it must be (also) an application which tomcat is running, which opens its own port 12345). Long version : read https://cwiki.apache.org/confluence/display/TOMCAT/Windows#Windows-Q11 to find out what tomcat8.exe and tomcat8w.exe really are. short version of the long version : server.xml shows the ports on which /tomcat itself/ is listening. But tomcat8.exe is not "tomcat". It is a wrapper program, which runs the JVM which runs tomcat, which runs applications. The JVM itself, and the applications, may open ports, without tomcat even knowing about them. Let us know if that helps. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How change tomcat8.exe listening port 0.0.0.0:12345 to a different port
Hi everyone, In our Apache Tomcat 8.5.31 installation, Tomcat8.exe ist listening on TCP port 12345, and we need to change this to a different port number. Unfortunatley, we cannot find a way to change this since it is not specified in server.xml or Java options. Does anybody know how this port can be changed? For full details (server.xml etc.) see: https://serverfault.com/questions/980452/how-change-tomcat8-exe-listening-port-0-0-0-012345-to-a-different-port Thanks, Patrick - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: is it logical that WsBaseFrame/WsServerFrame calls WsSession.onclose that results in a call to the client again?
On August 27, 2019 6:54:22 AM UTC, Johan Compagner wrote: >> >> >> > As far as i can understand it should not try to send a close >message at >> > that point, because the close did already happen from the client >side.. >> > I guess if onclose was called programatically from the server side >then >> it >> > is logical. >> >> RFC 6455, section 5.5.1 >> >> Close is a two-stage process and closing the TCP connection is the >> server's responsibility. >> >> Looks like you have a non-spec compliant client. >> >> >But that is just a browser that gets an other url loaded (i think kind >of >reload/refresh) >how can that be a 2 way thing? Because RFC 6455 says it is. The WebSocket connection is not considered closed until both endpoints have sent, and received, a close frame. Then it is the server's responsibility to close the TCP connection. >If i close a tab or i force reload the tab then yes i can get that the >browser can send a close request to the server >But it has to wait for it? To be RFC 6455 compliant, yes. > I can't believe that many browsers do that? >What if the latency is a few hundred millis? Nothing says the browser can't do this in the background. I'd expect it to wait in the background so the UI remains responsive. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org