Unix Shell - Using truss in wrapper script

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > April 2005 > Using truss in wrapper script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Using truss in wrapper script
Petterson Mikael

2005-04-25, 7:55 am

Hi,

I have a wrapper script for starting up eclipse (java IDE).
We have have problem with 'java.lang.OutOfMemoryError'.
We need to see if there is an excessive i/o activity that is causing this.
I started my ide (via wrapper script) and, in a new terminal window ran
'truss' command on the process id.
Laurenz Albe

2005-04-25, 7:55 am

Petterson Mikael <mikael.petterson@era.ericsson.se> wrote:
> I have a wrapper script for starting up eclipse (java IDE).
> We have have problem with 'java.lang.OutOfMemoryError'.
> We need to see if there is an excessive i/o activity that is causing this.
> I started my ide (via wrapper script) and, in a new terminal window ran
> 'truss' command on the process id.


What is the question/interesting obvservation you want to share?

An OutOfMemoryError is caused by a heap that becomes too small - this can
either be because the program needs more memory that you give
the JVM, or because the program has a memory leak.
I cannot see how I/O activity could cause that (unless there is a bug in
the JVM) or how truss can help you with it.

But this is off-topic...

Yours,
Laurenz Albe
Petterson Mikael

2005-04-25, 5:53 pm

Laurenz Albe wrote:
> Petterson Mikael <mikael.petterson@era.ericsson.se> wrote:
>
>
>
> What is the question/interesting obvservation you want to share?


Well my question is:

How can I run 'truss' in my wrapper script for eclipse?


>
> An OutOfMemoryError is caused by a heap that becomes too small - this can
> either be because the program needs more memory that you give
> the JVM, or because the program has a memory leak.
> I cannot see how I/O activity could cause that (unless there is a bug in
> the JVM) or how truss can help you with it.


Well.... I want to determine if it is under heavy i/o activty that the
java builder is running out of memory.
Yes it is true that insufficient memory for JVM / memory leak in IDE can
casue this problem.
I have already tried to increase heap without success (-Xmx 2024M) So it
seems like a memory leak. I need to determine what activity that causes
this leak.
Since it happens during build I assume that it has to do with i/o
activity. I have no other way of finding the problem. Any hints?

//Mikael

>
> But this is off-topic...
>
> Yours,
> Laurenz Albe

Laurenz Albe

2005-04-25, 5:53 pm

Petterson Mikael <mikael.petterson@era.ericsson.se> wrote:
> How can I run 'truss' in my wrapper script for eclipse?


truss /path/to/eclipse 2>logfile

> Well.... I want to determine if it is under heavy i/o activty that the
> Java builder is running out of memory.
> Yes it is true that insufficient memory for JVM / memory leak in IDE can
> casue this problem.
> I have already tried to increase heap without success (-Xmx 2024M) So it
> seems like a memory leak. I need to determine what activity that causes
> this leak.
> Since it happens during build I assume that it has to do with i/o
> activity. I have no other way of finding the problem. Any hints?


Did you start eclipse with increased -Xmx ?
Like /path/to/eclipse -vmargs -Xmx500m
Since it happens during build I assume that eclipse runs out of memory.
Traditionally it is low memory that causes high I/O and not vice versa.

Yours,
Laurenz Albe
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com