The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
grep unix.com with google



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-20-2009
Registered User
 

Join Date: Oct 2009
Posts: 25
kill -3 <PID> ... where the output file goes?

Hi all,

I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.

I tried the following:


Code:
kill -3 9404940>/tmp/dump/out.txt

But it created /tmp/dump/out.txt with 0 KB, and yet it created the dump file in JBOSS_HOME/ directory.

Can you please let me know how can I have kill -3 to create the core dump file in the desired location?

Thanks,
  #2 (permalink)  
Old 11-20-2009
Registered User
 

Join Date: Sep 2007
Location: SE Mass
Posts: 162
You need to understand that "kill" doesn't create the dump. Kill sends a signal to Jboss ASKING it to dump. You redirected the output of "kill", but it's not "kill" that is going to do the work.
  #3 (permalink)  
Old 11-20-2009
Registered User
 

Join Date: Oct 2009
Posts: 25
Quote:
Originally Posted by TonyLawrence View Post
You need to understand that "kill" doesn't create the dump. Kill sends a signal to Jboss ASKING it to dump. You redirected the output of "kill", but it's not "kill" that is going to do the work.

Thanks for prompt reply. I was kind of under that impression too, but wasn't sure. So, can you tell me where in JBoss, I can set this up so the created dump file goes to the desired location and not the default one?

Thanks in advance.
  #4 (permalink)  
Old 12-01-2009
ravager's Avatar
Registered User
 

Join Date: Sep 2005
Posts: 128
there are a few things you can do
Kill -6 will crate a coredump

kill -l will provide you with a full list of kill codes
in AIX you can now control where you want any core dumps to go
smitty corepath


You may also look in to some of the new ting in AIX like Pobevue or trace
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Send output of grep as input of kill command foxtron UNIX for Dummies Questions & Answers 2 05-29-2009 07:08 PM
routing kill output from console to file srinivsa UNIX for Dummies Questions & Answers 2 04-05-2009 08:29 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 05:24 PM
how to kill process from file naamas03 Shell Programming and Scripting 17 11-07-2005 04:14 AM
Can I avoid the standard output from kill command pguinal Shell Programming and Scripting 1 03-07-2002 10:21 AM



All times are GMT -4. The time now is 09:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0