coredump

Can Sun JDK generate core/heap dump files when JVM crashes?

。_饼干妹妹 提交于 2019-11-29 10:39:22
Is there anyway to generate core/heap dump file when JVM crashes? Since these files are usually very helpful to find out bugs in code. Any help is appreciated. cheng Tomasz Nurkiewicz With the following JVM options: -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/tmp" JVM will dump the content of heap to a file in specified directory. Note that this only happens when OutOfMemoryError is thrown since dump isn't really needed if JVM crashed due to a different reason. Edit: "Boolean options are turned on with -XX:+ and turned off with -XX:-." docs You can use -XX:HeapDump JVM options . 来源:

How to enable full coredumps on OS X?

佐手、 提交于 2019-11-29 03:58:58
It looks that OS X (10.6) does not generates codedumps by default. Using the ulimit -c unlimited is not a good solution because ulimit does set the limit in an environment variable. This will work only for console applications executed from the shell that executed ulimit. If you have a gui application this will not work. You can enable core dumps and then launch your GUI app from the command line using open . $ ulimit -c unlimited $ open /Applications/Address\ Book.app I just looked at TN2124 and it suggests a similar approach, only without using open and just launching the app directly, e.g.

Request java heap dump (core dump) from within application

和自甴很熟 提交于 2019-11-29 03:45:39
I need a way to request a heap dump from within the application . Rationale: When I encounter a specific error condition, I'd like to dump heap, so that I can see what is holding on to the memory. But I would like to automate this (For example, when I detect that some specific condition has occurred. Or when a watchdog doesn't gets its pings anymore. When some test fails). Thus I need a way to dump the heap from within the application itself. I can't seem to find it with the MX beans stuff. Although the MX Beans can give very nice stack traces with monitor and "ownable synchronizer" info,

How can I configure windows to generate a core dump from an application?

五迷三道 提交于 2019-11-28 17:56:14
How can I configure windows to generate a core dump from an application? I'm using Win xp, and the application is build with Visual Studio 2003. Microsoft has a free tool called Userdump.exe which will do this. It's pretty simple to use that tool to create a dump (.dmp) file for a process that shuts down with an exception or to create a dump file for a hanging process Just to throw in some other suggestions: ProcDump that is part of the MS SysInternals suite (it captures crashes but also does a load more, can take dumps if CPU usage spikes for an amount of time, etc) You can put code into your

Solaris Core dump analysis

你离开我真会死。 提交于 2019-11-28 17:13:38
问题 I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? What commands can be used to do this? What other information will be available from the dump? 回答1: You can use Solaris modular debugger,mdb, or dbx. mdb comes with SUNWmdb (or SUNWmdb x for the 64 bits version) package. A core file is the image of your running process at the time it crashed. Depending on whether your application was compiled with debug flags or not,you will be able to view an

How do I prepend a directory the library path when loading a core file in gdb on Linux

折月煮酒 提交于 2019-11-28 16:20:56
问题 I have a core file generated on a remote system that I don't have direct access to. I also have local copies of the library files from the remote system, and the executable file for the crashing program. I'd like to analyse this core dump in gdb. For example: gdb path/to/executable path/to/corefile My libraries are in the current directory. In the past I've seen debuggers implement this by supplying the option "-p ." or "-p /=."; so my question is: How can I specify that libraries be loaded

How do I dump an entire Python process for later debugging inspection?

房东的猫 提交于 2019-11-28 09:01:26
I have a Python application in a strange state. I don't want to do live debugging of the process. Can I dump it to a file and examine its state later? I know I've restored corefiles of C programs in gdb later, but I don't know how to examine a Python application in a useful way from gdb. (This is a variation on my question about debugging memleaks in a production system .) There is no builtin way other than aborting (with os.abort(), causing the coredump if resource limits allow it) -- although you can certainly build your own 'dump' function that dumps relevant information about the data you

Manually generate elf core dump

六月ゝ 毕业季﹏ 提交于 2019-11-28 08:54:59
问题 I am looking for manually generating an ELF Core Dump file. I have a RAM dump from my program, and can also retrieve register informations and so on. With this data, I would like to build an ELF core dump file, similar as those generated by Linux kernel when a program crashes, the goal would be to analyse this core dump with a GDB specifically made for my platform. I have been looking for core dumps specifications or detailed format, but did not find what I wanted : What sections does my core

Why are core dump files generated?

不想你离开。 提交于 2019-11-28 06:56:43
Sometimes when I run my code, a core dump file is generated when I terminate the program by Ctrl + \ . The file name is of the form core.* . The program is not terminating abruptly, and there is no segmentation fault. I believe it is SIGQUIT and not SIGABRT or SIGSEGV . If I try Ctrl + C , or Ctrl + Z , then it is not generated. Can anyone tell why it is generated only when Ctrl + \ is pressed? How can I avoid this core dump file from being generated? Is there any use for the core dumped file? A process dumps core when it is terminated by the operating system due to a fault in the program. The

How to debug Java OutOfMemory exceptions?

佐手、 提交于 2019-11-28 06:33:43
What is the best way to debug java.lang.OutOfMemoryError exceptions? When this happens to our application, our app server (Weblogic) generates a heap dump file. Should we use the heap dump file? Should we generate a Java thread dump? What exactly is the difference? Update: What is the best way to generate thread dumps? Is kill -3 (our app runs on Solaris) the best way to kill the app and generate a thread dump? Is there a way to generate the thread dump but not kill the app? Analyzing and fixing out-of-memory errors in Java is very simple. In Java the objects that occupy memory are all linked