|
From: Ori A. <oa...@me...> - 2004-10-20 09:01:16
|
Leif, I have tried this with the wrapper. I used the java.exe pid and the dump showed up in my log. I have not tried the wrapper.exe pid. I imagine that it will send a ctrl+break to that process and maybe you can install a handler for it if you wish to do some of your own work before forwarding the dump. Again, I haven't tried this and am not familiar with the code aside from what the author outlined in his site. (Though it seems very interesting, I might check it out soon :)) Happy to be able to give something back :) Ori -----Original Message----- From: wra...@li... [mailto:wra...@li...] On Behalf Of Leif Mortenson Sent: Wednesday, October 20, 2004 10:24 AM To: wra...@li... Subject: Re: [Wrapper-user] Service question Ori, Thanks for pointing that out, I'll take a look at it and see if it is something that can be used with the Wrapper. I was able to see the site no problem. Reading over the description, it looks like the definition of a "hack". (Not a bad word by the way). But sometimes, that is exactly what is needed. At the least, it sounds like I could learn a few things from the source. Have you tried this with the Wrapper? I would imagine that it would work if you tried using either the Wrapper or JVM pids. Cheers, Leif Ori Argov wrote: >I found a very cool tool that does this for NT services. >www.latenighthacking.com/projects/2003/sendSignal/ > >However I can not get into this link recently (you can see it on google >cache, I personally think it's a very smart piece of coding, respect to the >author). >It will send a Ctrl+Break to ANY process by PID. >If you can't get a copy and need it I have one, I'm not sure if I can post >it here - how about it Leif? > >Ori > >-----Original Message----- >From: wra...@li... >[mailto:wra...@li...] On Behalf Of Leif >Mortenson >Sent: Wednesday, October 20, 2004 6:04 AM >To: wra...@li... >Subject: Re: [Wrapper-user] Service question > >francesco triti wrote: > > > >>hi, >>i'm trying to integrate java service wrapper with my >>java application. >> >>Since it supports both win and linux it seems too >>great for my. >> >>By the way, i'd like to know if "net pause <<service >>name>>" is enable. >> >> >> >> >Currently the Wrapper does not not support the pause function as there >is not a >practical way to pause a JVM. > > > >>I'd like to use for doing a full thread dump of my >>java application. >> >>If not, is there a way to call a full thread dump when >>the application runs as NT service? >>Have i to open c code, adding support and recompile >>the wrapper code? >> >> >> >> >There are a couple ways to invoke a thread dump in your application. >If your >app uses JMX, the Wrapper provides an interface that can be used to >invoke the >dump. > >You can invoke a thread dump from the console by pressing CTRL-BREAK. But >that is not useful when run as a service unless you have configured the >wrapper to >show its console. > >The Wrapper comes with a simple little class which lets you connect via >telnet and >do things link thread dumps or JVM restarts. See the javadocs for the >WrapperActionServer for more details. It requires some Java code be >added to your >application, but it is quite easy to do. >http://wrapper.tanukisoftware.org/doc/english/javadocs.html > >Another method is to call WrapperManager.requestThreadDump directly from >within >your application. This method opens up a lot of options for you. > >On UNIX platforms, it is easy. You simply launch the shell script with >the "dump" >command. > >Cheers, >Leif > > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > >______________________________________________________________________ >This email has been scanned by the MessageLabs Email Security System. >For more information please visit http://www.messagelabs.com/email >______________________________________________________________________ > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >Wrapper-user mailing list >Wra...@li... >https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |