|
From: Leif M. <le...@ta...> - 2007-06-04 13:02:15
|
Gary, This is a known problem that has been fixed for the 3.3.0 release. The problem is that a dump signal can not be sent from a process which does not have a console as is the case with services. For now, you can work around the problem by setting the wrapper.ntservice.console=true property. This will cause a console window to be created, but you will not see it unless the wrapper.ntservice.interactive property is also set to true. Another workaround is to set the wrapper.request_thread_dump_on_failed_jvm_exit=true Let me know if this works for you. I will need more information to tell you why you are getting that error on shutdown. Set the wrapper.debug=true property and post the output. Cheers, Leif Gary Hirschhorn wrote: > > I am trying to use the wrapper.commandfile property to generate a > thread dump when running as an NT Service, but I am getting the error > message below in the log files. If I try to stop the service instead, > the service does stop, but I get error messages indicating that it > could not stop cleanly. Does anyone know why this would happen and > how I can generate a thread dump? I have included my configuration > properties file below. > > Thank you very much for any help. > > > STATUS | wrapper | 2007/06/04 03:20:32 | Command 'DUMP'. Requesting a > Thread Dump. > STATUS | wrapper | 2007/06/04 03:20:32 | Dumping JVM state. > ERROR | wrapper | 2007/06/04 03:20:32 | Unable to send BREAK event > to JVM process. Err(6 : The handle is invalid. (0x6)) > > > STATUS | wrapper | 2007/06/04 03:24:12 | Command 'STOP'. Shutting > down with exit code 0. > INFO | jvm 1 | 2007/06/04 03:24:13 | Jun 4, 2007 3:24:12 AM > org.apache.coyote.http11.Http11BaseProtocol pause > INFO | jvm 1 | 2007/06/04 03:24:13 | INFO: Pausing Coyote > HTTP/1.1 on http-7101 > INFO | jvm 1 | 2007/06/04 03:24:13 | Jun 4, 2007 3:24:13 AM > org.apache.catalina.core.StandardService stop > INFO | jvm 1 | 2007/06/04 03:24:13 | INFO: Stopping service > FetchAgentRunnerServer > ERROR | wrapper | 2007/06/04 03:24:50 | Shutdown failed: Timed out > waiting for signal from JVM. > ERROR | wrapper | 2007/06/04 03:24:50 | JVM did not exit on request, > terminated > STATUS | wrapper | 2007/06/04 03:24:51 | <-- Wrapper Stopped > |