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 do I issue the close() method within an onmessage() method call and what are the semantics of the close() method? : BEA Weblogic

964


How you deploy your applications on weblogic server?

1082


What is a local transaction?

1105


What Is The Purpose Of Clustering ?

1049


How do I publish an xml message? : BEA Weblogic

1077


Define the functions of t3 in the web logic server?

983


What can I do when I get java.lang.outofmemoryerror because producers are faster than consumers? : BEA Weblogic

977


When we will take thread dump? Please give us some examples?

982


What is a thread dump?

1018


What is wlst?

1020


Can you use a foreign jms provider to drive an mdb transactionally? : BEA Weblogic

980


What is weblogic application server?

1038


Difference between production and development mode?

982


Can the messaging bridge handle two-phase or global transactions between separate weblogic server domains or between different releases? : BEA Weblogic

1011


How can os authentication be connected with weblogic jdriver for oracle and connection pools?

998