Traceview, OutOfMemoryError - How to make it work "again"

by Kitzy » Wed, 10 Feb 2010 00:19:59 GMT

Sponsored Links
 Eclipse is only alotted a certain amout of memory, irrelevant of how
much memory you have for Windows.  To chance this you can add a
command line parameter (search for it on goole because I'm not at my
machine) but it is something like -xX5024 or -xS5024.  When starting
in windows you open up the parameters on your elipse shortcut and add
the command line properties to it.



Traceview, OutOfMemoryError - How to make it work "again"

by M » Wed, 10 Feb 2010 03:07:24 GMT

 What confuses the living daylights out of me is that I'm running
TraceView via command line. Just using basic :

"traceview.bat traceFile"
"traceview traceFile"

Am I supposed to give the parameters ... where again? I googled how to
increase the heap size on Eclipse and it said that after the eclipse
command line parameters or the eclipse.ini.
This is my eclipse.ini file:

--------------- ECLIPSE.INIT START --------------------
------------------------- ECLIPSE.INI END -------------------

I tried randomly changing the values that "could" be the right values
but nothing good came out of this, still the same problem... umm...
So.. I didn't really get anywhere, obviously because I have no clue of
what I'm doing so a bit more help and I should be there.

Thank you.


Sponsored Links

Traceview, OutOfMemoryError - How to make it work "again"

by M » Wed, 10 Feb 2010 03:10:25 GMT

 I'm guessing the -xmx1024M is the one that tells the max amount if
memory if I'm correct.. but uhh... I still don't see how it works. I'm
just bogged about this. I tried all sorts of variations of the
original one and this one but ... nope, nothing.


Traceview, OutOfMemoryError - How to make it work "again"

by fadden » Wed, 10 Feb 2010 05:22:55 GMT


traceview is not related to Eclipse (other than that they both use SWT
for their GUI).

On Linux you would use something like:

% traceview -JXmx1024m foo.trace

The shell script recognizes the "-J", strips out the 'J', and inserts
the rest into the command line for the java executable.

The traceview.bat isn't so fancy, so I think you just need to edit it
and insert "-Xmx1024m" before the "" part.

BTW, that is a very large trace file.  traceview will try to hold the
entire thing in memory, and it gets expanded into a bunch of different
data structures, so it's going to want a lot of space.


Traceview, OutOfMemoryError - How to make it work "again"

by M » Wed, 10 Feb 2010 05:46:35 GMT

 Oh wow, even more confusing. The batch nor the init file has nothing
even remotely related to "" ...
I just cannot get this thing to work. Hmmh...

Seriously, why did google provide such akward to use tools to
accompany Android? Watching their speaks from youtube makes me really
feel like they really thought of this but working with this makes me
want to kill myself at times. It's so furiously frustrating.


Traceview, OutOfMemoryError - How to make it work "again"

by M » Wed, 10 Feb 2010 05:55:55 GMT

 Ok let's try this again. I vented out my initial frustration, now I'm
back on my seat and trying to figure out this once again. :)

So here goes.

Here you can see my traceview.bat and eclipse.ini files: 

They are the original ones "again".  I'm absolutely clueless about
this at point. Didn't get me any wiser even though I read Eclipses FAQ
on how to increase the heap sice, got nothing out of it. The answer is
staring me right in the face but I just cannot see it...

Anyone? Want to push me around a bit more?


Traceview, OutOfMemoryError - How to make it work "again"

by Pankaj » Wed, 10 Feb 2010 13:00:59 GMT

 In the TRACEVIEW.BAT replace the last line

call java -Djava.ext.dirs=%javaextdirs% -jar %jarpath% %*


call java -Xmx1024m -Djava.ext.dirs=%javaextdirs% -jar %jarpath% %*


Other Threads

1. recognizing gpio buttons in userspace


I have a beagleboard rev c3 with 6 gpio buttons.  The kernel is
recognizing the buttons
but I can't seem to figure out how to get Android to recognize and
associate the
buttons with the KEY_MENU and KEY_BACK events (the other 4 are not
being used at this time).

According to,
I need to create a
keylayout map and a keychars map file which I have a gpio-keys.kl and
gpio-keys.kcm (although a
*.kcm.bin is created).  My problem seems to be that the qwerty.kl is
the default regardless to my
changes and I'm unsure how to go about changing...any guidance would
be great. Thanks.

log file results
I/EventHub(  788): New keyboard: publicID=65539 device->id=65539
propName='hw.keyboards.65539.devname' keylayout='/system/usr/keylayout/

results of my build in the current directory...
for a hardware target is generic. The result of my of my build is:
target Prebuilt:  (out/target/product/generic/system/usr/keylayout/
target Prebuilt:  (out/target/product/generic/system/usr/keylayout/
Target buildinfo: out/target/product/generic/root/default.prop
Target buildinfo: out/target/product/generic/system/build.prop
Copy: out/target/product/generic/system/etc/apns-conf.xml
KeyCharMap: out/target/product/generic/obj/KEYCHARS/gpio-
Install: out/target/product/generic/system/usr/keychars/gpio-
KeyCharMap: out/target/product/generic/obj/KEYCHARS/
Install: out/target/product/generic/system/usr/keychars/
Generated: (out/target/product/generic/android-info.txt)

my system.prop file is:

rild.libargs=-d /dev/ttyS0

android.keylayout.gpio-keys = /system/usr/keylayout/gpio-keys.kl
android.keychar.gpio-keys = /system/usr/keychars/gpio-keys.kcm


2. Fwd: Touchscreen support for 7 Inch LCD panel

Sending to list as well..

-- Ashwin

---------- Forwarded message ----------
From: Ashwin Bihari <>
Date: Wed, Mar 31, 2010 at 9:33 AM
Subject: Re: [android-porting] Touchscreen support for 7 Inch LCD panel


You need to take those TSLIB generated calibration information and
then feed that into Android so that it can properly scale the incoming
X, Y, and Z coordinates from the touch screen controller..

I've ported the TSLIB package into Android and added the hooks into
Android 1.6, you can check them out at:

Android Changes -

-- Ashwin

On Wed, Mar 31, 2010 at 8:55 AM, Gokul Nagarajan

> website: 

3. Crashing under Android 2.2. APIs update soon?

4. Finger swipe in Android API level 3 (OS 1.5) ?

5. Radio button layout.

6. farid Rahman wants to chat

7. Forward Locking and ZappMarket