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

What are web logic servers?

1106


Can we deploy jar in weblogic?

1056


Is it possible to set aside a message and acknowledge it later? : BEA Weblogic

990


Differences between an application server and a web-server? What is the conman architecture which is used forhigh availability and load balancing describe in few lines.

1001


Explain the functionality of T3 associated with WebLogic server?

1070


How should you type cast a remote object? Why?

1022


What is t3??

1038


What is application tuning?

1159


What is meant by adminserver?

1129


What are the databases that are available to be used with the web logic j2ee connector architecture?

1020


How many admin consoles possible in a single domain?

994


What is the difference between multicast and unicast?

956


Explain the difference between txdatasource and datasource?

953


What is silent mode?

1217


Which types of jdbc databases does weblogic jms support? : BEA Weblogic

982