ts-7000
[Top] [All Lists]

[ts-7000] Re: Java out-of-memory issue

To:
Subject: [ts-7000] Re: Java out-of-memory issue
From: "j.chitte" <>
Date: Thu, 22 May 2008 13:11:53 -0000
--- In  Dave Cramer <> wrote:
>
> Hi Brian,
>
> It's unlikely that the problem is that the device is taking more
memory.
>
> Java is given a certain amount of memory to work with when the
virtual 
> machine starts.
>
> My guess is you are just getting less memory on this platform and 
> running out.
>
> Dave
> On 20-May-08, at 11:42 AM, Brian Jewell wrote:
>
> >
> > This is perhaps not a question for this mailing list. But, I
thought 
> > I would post it anyway, as someone might have some insight into
this 
> > problem.
> >
> >
> >
> > We are using a TS7250, running the Java J9 VM. Every so often,
there 
> > are "java.lang.OutOfMemoryError" exceptions thrown in the code. 
> > There seems to be no consistencies to the problem. It sometimes 
> > happens within hours of rebooting the TS, or sometimes within
days, 
> > or sometimes not at all.
> >
> >
> >
> > As a result of not being inconsistently reproducible, the out-
of-
> > memory issue has been very difficult to resolve. When we profile
our 
> > code in the PC environment using a commercially available
profiler, 
> > no memory leaks are apparent. It only happens in the embedded
TS 
> > environment.
> >
> >
> >
> > I'm wondering if the out-of-memory issue could be happening as
the 
> > result of some external event, possibly in the Ethernet driver,
or 
> > maybe during writes to a log, etc. ?
> >
> >
> >
> > If anyone has any thoughts about this very difficult problem, or
any 
> > insights about how to troubleshoot, I would love to hear.
> >
> >
> >
> > Thanks in advance.
> >
> >
> >
> > ~Brian
> >
> >
> >
> >
> >
> >
> >
>

You should probably evaluate how far you can go using Java in an
embedded environment.

The cross-platform nature of java comes at heavy price in terms of
size and efficiency of code and the added abstraction of working
through a VM makes this sort of thing hard to follow.

If you did the same thing in C you would have a fraction of the
resource usage any probably would not even have this issue to deal
with. If you did it would be a lot simpler to track down.

regards.





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU