Posts

Showing posts from August, 2012

How to check if HTC Wildfire is rooted

I noticed some posts asking to know if HTC A3333 is already rooted. 2 easy ways: 1. Presence of the Superuser app Superuser comes pre-installed on any rooted ROM. In fact, without it, you don’t have a rooted device at all. You cannot uninstall it, it lives on the system partition with other apps that came pre-installed on your device. 2. Open the Terminal Emulator and type "su" This will request for root access IF you are rooted Another option is to download Root Checker from the market it will tell you if you have root

Identifying memory leaks using Eclipse MAT - Part 3

Image
Part 1 and 2 recounted how we found a memory leak using Eclipse MAT So back to finding out what this class weblogic.xml.query.xdbc.Context   was and how we could solve the memory leak. A quick search in Eclipse showed this class gets loaded from com.bea.core.xquery_1.3.0.0.jar and the Eclipse calling trace showed a call to org.apache.xmlbeans.impl.store.XqrlImpl$CompiledQuery .   We knew we are using apache xmlbeans in our application and checked our Weblogic start classpath to see this jar had been added to the classpath since we had some runtime issues without it.   / wls_domains/com.bea.core.xquery.xmlbeans-interop_1.3.0.0.jar:/wls_domains/com.bea.core.xquery_1.3.0.0.jar   But we did not want to use the weblogic version of xmlbeans, so only tried with the Apache one instead. So the changes made were to remove the above jars from start classpath and add saxon jars instead. We also edited weblogic-applic...

Identifying memory leaks using Eclipse MAT - Part 2

Image
As I wrote in Part 1 , we identified that there was some sort of memory leak happening within our Java JEE application – so the next steps were to obtain a Heap Dump and run it through Eclipse MAT. So what is a Heap Dump? From the Eclipse docs A heap dump is a snapshot of the memory of a Java process at a certain point of time. There are different formats for persisting this data, and depending on the format it may contain different pieces of information, but in general the snapshot contains information about the java objects and classes in the heap at the moment the snapshot was triggered. The Memory Analyzer is able to work with HPROF binary heap dumps, IBM system dumps (after preprocessing them), and IBM portable heap dumps (PHD) from a variety of platforms. Typical information which can be found in heap dumps (once more - depending on the heap dump type) is: All Objects Class, fields, primitive values and references All Classes Classloader, name, super class...