Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

By default thread dump goes to System.out log.How can we send it to a particular file so that when we take the thread dump, instead of searching in System.out we can analyse a particular file

Answer Posted / amarnath

Here is the jvm tools for taking the thread dump and heap dump.

You just go to jdk home path
Ex:
C:\Program Files\Java\jdk1.6.0_20\bin
and then issue the below command for thread dump it will
redirect you the output of the command to TD.log file under
/tmp dir

C:\Program Files\Java\jdk1.6.0_20\bin jstack -l <PID>
>/tmp/TD.log


For Heap Dump
C:\Program Files\Java\jdk1.6.0_20\bin jmap -heap <PID>
>/tmp/heap.log

Regards,
Amarnath Polu.
Weblogic Admin!!!

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you deploy your applications on weblogic server?

1020


How can classpath be set?

1052


How to find out the listening ports?

1002


What is a local transaction?

1040


How can default JVM be changed to other?

989


What are logics in reference to web logic servers?

897


Is an xslt processor bundled in weblogic server?

971


How do I prevent errors when running t3dbping? : BEA Weblogic

836


How is the security handled in web logic j2ee connector architecture?

981


What is Multicast?

1007


Which is the only method defined in the javax.ejb.handle interface? : BEA Weblogic

848


I am using a weblogic multitier driver in an applet as an interface to a dbms. If I run the class using the sun appletviewer on my local machine, I have no problems. But when I try to run the applet in a netscape browser, it will not connect 83 the two primary cluster services provided by weblogic server are? : BEA Weblogic

842


How you will analyse threads state using samurai tool?

929


What is a stage deployment?

1062


Can you explain what are the ways in which the dns request of failed servers handled?

904