--- 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/
|