dump

How to Dump a .NET Core Application on Linux

家住魔仙堡 提交于 2019-12-08 14:30:26
问题 I have a .NET application that I have ported to .NET Core. I am testing it on Ubuntu 14.04. I am trying to figure out how to get a .dmp file or the Linux equivalent when the program crashes. I call Environment.FailFast but as far as I can tell this doesn't generate a .dmp file like it does on Windows. Acording to this case Environment.FailFast should be creating a dump but if it is I can't find it. In addition I have tried manually creating a dump using gcore . This works however it takes a

How to dump HttpClient request in a text file?

空扰寡人 提交于 2019-12-08 13:50:14
问题 I'm sending an HTTP request to an endpoint, using HttpClient class in C#. The problem is that using Fiddler everything works fine, but using C#, something goes wrong and I can't tell what. Is there a way to dump HTTP request of HttpClient instead of sending it to the server, just like how Fiddler captures traffic, so that we can see what's going on? PCap is not my solution. I don't want to do it everywhere. I want to be able to somehow dump my single current instance of HttpClient . For

Is there a command line method to get a jvm heap dump besides jmap?

风格不统一 提交于 2019-12-08 10:25:00
问题 We are using oracle jvm 1.8 64bit in linux. We know jmap can get jvm heap dump: jmap -F -dump:format=b,file=***filepath*** ***pid*** But it's slow. We know with JVisualVM and JConsole connecting to JMX can also get a heap dump, and it's very quick. But they are with GUI. However, in our product environment, there is no GUI. And no machine with GUI can access that environment. So our question is - Can JVisualVM and JConsole support a command line to do heap dump? Or Is there a command line

How do I dump my stack in Arduino?

对着背影说爱祢 提交于 2019-12-08 04:25:30
I'm looking for a way to dump the stack of my arduino. I know there is a stack pointer (SP) available, what I try at the moment is: char* stack = (char*)SP; int counter = 0; strncpy(c, &stack[counter], 1); while(counter < 200) { counter++; strncat(c, &stack[counter], 1); } Serial.print(c); I don't get anything like a stack so I don't know if I'm doing it right. Please help! uint8_t stackArray[30]; void createStackDump() { volatile uint8_t* mSP = (uint8_t*)SP; for (int i = 0; i < 30; i++) { stackArray[i] = *mSP; mSP++; } } Call addresses on the stack are LSB first, so LSB has the higher stack

Dump a mysql embedded database into a SQL text file [closed]

冷暖自知 提交于 2019-12-08 00:53:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 10 months ago . I have a mysql embedded database that I need to move into server. I know that for a server I can use mysqldump to backup the data into a SQL text file. But what option do I have for a embedded database? Thanks, Carlos. 回答1: I managed to dump the embedded schema. I got it from a

三个实例演示 Java Thread Dump 日志分析

人盡茶涼 提交于 2019-12-07 14:29:27
jstack Dump 日志文件中的线程状态 dump 文件里,值得关注的线程状态有: 死锁, Deadlock (重点关注) 执行中, Runnable 等待资源, Waiting on condition (重点关注) 等待获取监视器, Waiting on monitor entry(重点关注) 暂停, Suspended 对象等待中, Object.wait() 或 TIMED_WAITING 阻塞, Blocked (重点关注) 停止, Parked 下面我们先从第一个例子开始分析,然后再列出不同线程状态的含义以及注意事项,最后再补充两个实例。 综合 示范一: Waiting to lock 和 Blocked 实例如下: "RMI TCP Connection(267865)-172.16.5.25" daemon prio=10 tid=0x00007fd508371000 nid=0x55ae waiting for monitor entry [ 0x00007fd4f8684000 ] java.lang.Thread.State: BLOCKED (on object monitor) at org.apache.log4j.Category.callAppenders(Category.java:201) - waiting to lock

Heap dump on JRE 6 (Windows) without JDK

ぃ、小莉子 提交于 2019-12-07 13:32:15
问题 Is there a way to create a heap dump on a remote machine without JDK installed? I can't change the installation / settings and it's running on Windows. So I have pnly access to commandline tools. Problem is that a Java app on a remote machine freezes (no out of memory exception so -XX:-HeapDumpOnOutOfMemoryError is useless) and we need to create a dump. -XX:+HeapDumpOnCtrlBreak is no option too, because it's not supported anymore on JDK6+. JMX is not allowed due to security reasons. Any Ideas

How to enable core dump in my Java - Mac OS X

我只是一个虾纸丫 提交于 2019-12-07 12:52:01
问题 Honestly i'm new using Mac OS X El Capitan, i tried to create some Java program and runing it using eclipse Neon. But i got this error : # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007fff9c23616f, pid=810, tid=0x0000000000000a0b # # JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libobjc.A

Saving lisp state

两盒软妹~` 提交于 2019-12-07 08:12:14
问题 I am a beginner in lisp and have a question. When I writing some code directly in REPL (without any .lisp file!), how can I save my work/state of the interpreter to restore it next time and continue working? (I am using ECL) Thanx! And sorry for my broken english ;) 回答1: From the ECL manual: Tratidionally, Common Lisp implemenations have provided a function to save the dump all data from a running Lisp process into a file. The result was called the Lisp image and could be shipped to other

How can I control the formatting of Data::Dumper's output?

ぐ巨炮叔叔 提交于 2019-12-07 03:35:54
问题 I am using Data::Dumper::Dumper() method. The output is good, but can be made little compact and more good looking. How I can control it? What are the better alternatives? 回答1: Take a look at Data::Dump for something similar to Data::Dumper but arguably better at pretty printing. Edit (20120304) : I had completely forgotten this question, but it was upvoted today and that jogged my memory. If I had to recommend anything today (3 years later) for pretty printing in Perl, I would certainly go