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. Mohon info Huawei G6600

Rekan2 ada yg punya informasi mengenai Huawei G6600?dapat sms dari
telkomsel, dan klo saya liat ini ponsel dengan OS Android,kira2 bagus
tdk ya?
Mohon infonya


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group:


2. Can anyone tell me ONE app that shows up in Android Market on HTC Tattoo

My app is now showing up on HTC tattoo. Many people have complained
about this and I don't see ANY response from Google.

Google, you are PATHETIC!

Could anyone who has a Tattoo post the name of ONE (or preferably a
few :-)  apps that can show up on HTC Tattoo? I will pirate them and
copy their AndroidManifest file.

My app uses only these 3 permissions:

    <uses-permission android:name="android.permission.INTERNET"></uses-

And I say it again, Google, you are PATHETIC! Thank you for you non-
existence development support! I will switch my app to dead OSes like
Windows Mobile and Symbian, instead of wasting my time on a pile of
{*filter*}like yours!


3. android service instance problem

4. How do I navigate to the program data with adb shell

5. BaseAdapter doesn't return position correctly

6. Emulating TreeViews using Expandable ListViews

7. netfilter kernel module questions