|
From: Leif M. <le...@ta...> - 2007-01-30 18:31:24
|
Hubert, What version of the wrapper are you using? Starting with 3.2.1, the Wrapper will automatically disable timeouts if it is able to detect from the java command line that a debugger is being use. From the 3.2.1 release notes: * Add support for debuggers. The Wrapper will now show a warning on startup and then again the first time a timeout occurs. But all timeouts will be ignored. This is to avoid problems with the Wrapper restarting a suspended JVM in the middle of a debugging session. The wrapper enters this mode if the wrapper.java.command ends with the string "jdb" or "jdb.exe", or the "-Xdebug" parameter is passed to the JVM. I actually never use the debugger personally, so I am not a good test case for this usage. Are you encountering problems? I may need to make additional changes to make this work smoothly for you. In general when using a debugger when paused, the JVM process will appear to be frozen from the perspective of the Wrapper. To keep it from killing that "frozen" JVM, it is necessary to extend or disable the following timeouts. If you will only be pausing the JVM while its application is up and running, then the ping and cpu timeouts will suffice. http://wrapper.tanukisoftware.org/doc/english/prop-startup-timeout.html http://wrapper.tanukisoftware.org/doc/english/prop-ping-timeout.html http://wrapper.tanukisoftware.org/doc/english/prop-cpu-timeout.html http://wrapper.tanukisoftware.org/doc/english/prop-shutdown-timeout.html http://wrapper.tanukisoftware.org/doc/english/prop-jvm-exit-timeout.html Be aware that changing these timeouts for a live system will severely degrade and or disable the Wrapper's ability to respond to a misbehaving JVM. Cheers, Leif Hubert Felber wrote: > Hello, > > Has anybody some general hints about debugging? I would like to > connect the debugger to a service started by wrapper. > What should one do to prevent the wrapper from restarting the service > if being debugged. > Should one disable the keepalive feature? Are there any more issues or > pitfalls? > > Thank you > hub > > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |