dump

Generate a Java thread dump without restarting.

巧了我就是萌 提交于 2019-11-28 01:04:18
I'd like to create a thread that keeps track of the memory usage and cpu usage. If the application reaches a high level, I want to generate an heap dump or a thread dump. Is there a way to generate a Thread dump runtime without restarting? Here's how we do it programmatically: http://pastebin.com/uS5jYpd4 We use the JMX ThreadMXBean and ThreadInfo classes: ThreadMXBean mxBean = ManagementFactory.getThreadMXBean(); ThreadInfo[] threadInfos = mxBean.getThreadInfo(mxBean.getAllThreadIds(), 0); ... You can also do a kill -QUIT pid under ~unix to dump the stacks to the standard-out. There is also

android dumpsys permission denial

时光怂恿深爱的人放手 提交于 2019-11-27 23:06:18
问题 I have an application where I create a process and call the dumpsys telephony.registry command to get information about the mobile network status. String[] cmds={"dumpsys telephony.registry"}; Process p = Runtime.getRuntime().exec(cmds [0]+"\n"); and then after that I parse the result of the command. For "ls" or other commands it works fine. For dupmsys I get Permission Denial: can't dump telephony.registry from pid-953, uid=10090 . I get the same error results for dumpsys power or other

Why I can not find “Debug Managed Memory” on Actions menu?

女生的网名这么多〃 提交于 2019-11-27 21:46:21
Why I can not find "Debug Managed Memory" on Action menu as described at this MSDN article: Analyze .NET Framework memory issues ? My Visual Studio: How it is supposed to look: In one of the related articles , two requirements are mentioned (emphasis added): Before I begin, there are a few things to note about the "Debug Managed Memory" feature discussed in this post: The option will only be available from the dump summary page in the Ultimate version of Visual Studio 2013 . If you are using Premium or Professional you will not see the option. The process the dump file was collected against

C# How to dump all variables & current values during runtime

强颜欢笑 提交于 2019-11-27 20:30:50
问题 Are there any in-built or 3rd party libraries that allow you to simply dump all variables in memory during run time? What I would like is to be able to view variables & current values similarly to viewing them by hitting a break point and hovering over variables, but without actually having to halt the program execution (i.e. just get a snapshot). Would be good if it could dump them to a file which can then be opened later in a program to get a nice GUI interface to view them, but simple text

psql invalid command \\N while restore sql

眉间皱痕 提交于 2019-11-27 18:26:09
I'm trying to restore my dump file, but it caused an error: psql:psit.sql:27485: invalid command \N Is there a solution? I searched, but I didn't get a clear answer. Postgres uses "\N" as substitute symbol for NULL value. But all psql commands starts by backslash "\" symbol. So you can get this messages, when probably copy statement fails, but a loading of dump continues. This message is only false alarm. You have to search a lines before for reason why COPY statement fails. Is possible to switch psql to "stop on first error" mode and to find error: psql -v ON_ERROR_STOP=1 I go the same error

How to restore PostgreSQL dump file into Postgres databases?

混江龙づ霸主 提交于 2019-11-27 17:58:23
I have a dump file with a .SQL extension (in fact it is a plain-text SQL file). I want to restore it into my created databases. I am using pgAdmin III , and when I use its "Restore Wizard" it does not highlight the button "Restore". Instead it is expecting a .backup file extension. I tried using shell the commands for restoring the dump, but it still didn't work. I am a newbie at this. If anybody could help me I would be obliged. Edit I used following command to the Shell SQL Pane of PostGres while sitting at the newTestDB. newTestDB-# \i E:\db-rbl-restore-20120511_Dump-20120514.sql It still

How to use the dumped data by mongodump?

a 夏天 提交于 2019-11-27 17:47:28
I have used mongodump to dump my database of mongodb, it created some bson files under dump/mydb But I don't know how to use them. I tried mongoimport , but seems it can't import bson data. Then how to use these bson files? How to import them to another mongodb? Justin Jenkins You need to use mongorestore , not mongoimport ... which is used for things like importing json, or csv, etc. From the back-up-with-mongodump docs: mongodump reads data from a MongoDB database and creates high fidelity BSON files which the mongorestore tool can use to populate a MongoDB database. mongodump and

meteor: how can I backup my mongo database

為{幸葍}努か 提交于 2019-11-27 17:01:27
How can I make a backup of my meteor mongo database? If I run: meteor mongo the mongodump command does not work inside the meteor mongoshell kask First you need to spin up meteor. Then if you run meteor mongo you will get an output something like this: MongoDB shell version: 2.2.1 connecting to: 127.0.0.1:3001/meteor Meteor db host is at 127.0.0.1 with a port of 3001. Exit the mongo shell and use mongodump from your terminal. mongodump -h 127.0.0.1 --port 3001 -d meteor Dumps will be located under the dumps folder in the folder you executed the above command. You can import your db back to

error opening HPROF file: IOException: Unknown HPROF Version

被刻印的时光 ゝ 提交于 2019-11-27 16:54:57
I am getting the following exception when trying to open HPROF file (created by Debug.dumpHprofData ) with Memory Analyzer: java.io.IOException: Unknown HPROF Version (JAVA PROFILE 1.0.3) at org.eclipse.mat.hprof.AbstractParser.readVersion(AbstractParser.java:124) at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:69) at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:65) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:203) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:114) at org

How do you generate and analyze a thread dump from a running JBoss instance?

删除回忆录丶 提交于 2019-11-27 16:51:53
问题 How do you generate and analyze a thread dump from a running JBoss instance? 回答1: There is a JBoss-specific method that is slightly more user-friendly: http://community.jboss.org/wiki/GenerateAThreadDumpWithTheJMXConsole This is especially useful when you don't have direct access to the host machine (which "kill" would require). 回答2: http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/ ... "On UNIX platforms you can send a signal to a program by using the kill command. This