|
From: Stuijt, J. <JS...@gt...> - 2004-09-30 06:39:08
|
You could have a look at JMX: - in your app you start a JMX registry and a http service - from a browser you can then connect to the http service and call a method from that is in the WrapperListener class. If you make available the method "threadDump()" then you can request A threaddump from your application. This will (of course) only work if your JVM is still "alive". Google: "mx4j" Good luck! Met vriendelijke groet, Johan Stuijt Application Engineer MES Expert Center Doorkiesnummer: 075 612 79 34 GTI Industrie Noordwest bv Industrial Automation Houthavenkade 44 1506 PD Zaandam Postbus 1377 1500 AJ Zaandam tel.: 075 612 76 00 fax: 075 612 30 60 www.gti-group.com/ia -----Oorspronkelijk bericht----- Van: Balaji KM [mailto:bal...@gm...] Verzonden: dinsdag 21 september 2004 11:43 Aan: wra...@li... Onderwerp: [Wrapper-user] How to get a thread dump in a JVM freeze incident? Dear All, I'm using java service wrapper 3.1.0 in my application which runs on IBM JRE 1.3.0. When the application freezes, we are tring to get thread dump using wrapperlistener's "D" command. We couldn't succeed in getting a thread dump;no response from the wrapper service. We observed that service was in hung state. Even in case of a freeze incident, how should I configure the wrapper service to get a thread dump. I have listed my app configurations as follows: wrapper.java.command=C:/IBM/Java13/jre/bin/java wrapper.java.mainclass=com.elind.service.fixgateway.common.FixMarketDataMain Process wrapper.max_failed_invocations=1 wrapper.ping.timeout=0 wrapper.java.classpath.1=C:/Test/lib/wrapper.jar wrapper.java.classpath.2=C:/Test/lib/FixGateway.jar wrapper.java.classpath.3=C:/Test/lib/jgl3.1.0.jar wrapper.java.classpath.4=C:/Test/lib/xerces.jar wrapper.java.classpath.5=C:/Test/lib/xmlparserv2.jar wrapper.java.library.path.1=C:/Test/lib wrapper.console.format=PM wrapper.console.loglevel=INFO wrapper.logfile=../logs/wrapper.log wrapper.logfile.format=LPTM wrapper.logfile.loglevel=INFO wrapper.logfile.maxsize=0 wrapper.logfile.maxfiles=0 wrapper.syslog.loglevel=NONE wrapper.ntservice.name=FixTradingPartner wrapper.ntservice.displayname=FixTradingPartner wrapper.ntservice.description=FixTradingPartner wrapper.ntservice.dependency.1= wrapper.ntservice.starttype=AUTO_START wrapper.ntservice.interactive=false wrapper.ntservice.console=false wrapper.working.dir=C:/Test/batch Awaiting for you valuable suggestions. Thanks in advance, Warm Regards, Balaji K M. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ================================================ De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. ================================================ The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. ================================================ |