Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

Convert Android heap dump to Java heap dump

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?
 
Marshal
Posts: 5519
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are they not the same? Perhaps you could elaborate on why you think they are different?
 
mahesh de
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



Hi Tim,

I am not sure about the exact difference between these two formats and I don't more information on this. According to the following site, both formats are similar but not exactly the same.

http://www.vogella.com/tutorials/EclipseMemoryAnalyzer/article.html
http://blog.novoda.com/debugging-memory-leaks-on-android-for-beginners-programmatic-heap-dumping-part-1/
 
Marshal
Posts: 27586
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



I'm surprised you ask that, given that the second link you posted answers your question (answer: Yes) and goes on to show you how to do it.
 
mahesh de
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



I'm surprised you ask that, given that the second link you posted answers your question (answer: Yes) and goes on to show you how to do it.



Currently I am using hprof-conv tool to convert android heap dump into J2SE standard heap dump. From java I am executing following command in background hprof-conv <<path-of-android-heap-dump>> <<path-to-store-converted-file>>.

I am looking for other solutions where I don't need to interact with command prompt.
 
Paul Clapham
Marshal
Posts: 27586
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see. It would have helped if you had asked that question in the first place, then.
 
It's exactly the same and completely different as this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic