How - Heapdump in Linux - kill -3 | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

How - Heapdump in Linux - kill -3

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-28-2012
mnassiri mnassiri is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 20 January 2014, 6:11 PM EST
Posts: 49
Thanks: 16
Thanked 0 Times in 0 Posts
How - Heapdump in Linux - kill -3

Hi can someone tell me what does kill -3 processid does?

kill -3 PID



Would it create a heapdump?


If not , can you tell me how I can create a heapdump of a process in linux?
Or heapdump related to java processes only ?
Sponsored Links
    #2  
Old 02-28-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 21 October 2014, 6:30 PM EDT
Location: Saskatchewan
Posts: 19,635
Thanks: 816
Thanked 3,335 Times in 3,124 Posts
Heapdump is a java thing.
The Following User Says Thank You to Corona688 For This Useful Post:
mnassiri (02-29-2012)
Sponsored Links
    #3  
Old 02-28-2012
mnassiri mnassiri is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 20 January 2014, 6:11 PM EST
Posts: 49
Thanks: 16
Thanked 0 Times in 0 Posts
Thanks - So what does exactly kill -3 do is that teh same as

kill -QUIT process ID
    #4  
Old 02-28-2012
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 21 October 2014, 6:30 PM EDT
Location: Saskatchewan
Posts: 19,635
Thanks: 816
Thanked 3,335 Times in 3,124 Posts

Code:
$ man kill

KILL(1)                       Linux User's Manual                      KILL(1)



NAME
       kill - send a signal to a process

...

       0          0   n/a       exit code indicates if a signal may be sent
       ALRM      14   exit
       HUP        1   exit
       INT        2   exit
       KILL       9   exit      this signal may not be blocked
       PIPE      13   exit
       POLL           exit
       PROF           exit
       TERM      15   exit
       USR1           exit
       USR2           exit
       VTALRM         exit
       STKFLT         exit      may not be implemented
       PWR            ignore    may exit on some systems
       WINCH          ignore
       CHLD           ignore
       URG            ignore
       TSTP           stop      may interact with the shell
       TTIN           stop      may interact with the shell
       TTOU           stop      may interact with the shell
       STOP           stop      this signal may not be blocked
       CONT           restart   continue if stopped, otherwise ignore
       ABRT       6   core
       FPE        8   core
       ILL        4   core
       QUIT       3   core
       SEGV      11   core
       TRAP       5   core
       SYS            core      may not be implemented
       EMT            core      may not be implemented
       BUS            core      core dump may fail
       XCPU           core      core dump may fail
       XFSZ           core      core dump may fail

...

So yes.
The Following User Says Thank You to Corona688 For This Useful Post:
mnassiri (02-29-2012)
Sponsored Links
    #5  
Old 02-28-2012
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 21 October 2014, 12:01 PM EDT
Location: /dev/ph
Posts: 4,822
Thanks: 64
Thanked 429 Times in 398 Posts
It may or may not create a coredump. Check output of ulimit -c. See core manpage for more information.
The Following User Says Thank You to fpmurphy For This Useful Post:
mnassiri (02-29-2012)
Sponsored Links
    #6  
Old 02-29-2012
mnassiri mnassiri is offline
Registered User
 
Join Date: Apr 2011
Last Activity: 20 January 2014, 6:11 PM EST
Posts: 49
Thanks: 16
Thanked 0 Times in 0 Posts
Thank you all for the responses

Cheers

Last edited by vbe; 02-29-2012 at 08:39 AM.. Reason: first became a almost dupl...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Way to check if kill succeeds [Linux - Bash] kermit Shell Programming and Scripting 6 12-15-2010 06:37 PM
kill command in linux OS poonam.gaigole Shell Programming and Scripting 9 11-28-2010 11:48 AM
How to analyze heapdump/coredump in solaris sahilsardana Solaris 1 05-05-2010 07:26 PM
heapdump full the / khalifah AIX 0 07-12-2006 03:04 AM
When kill doesnt work, how to kill a process ? VijayHegde UNIX for Advanced & Expert Users 3 05-12-2006 04:24 PM



All times are GMT -4. The time now is 02:25 AM.