RE: Insufficient heap - no solution?

"Chris Fox" <[email protected]> Fri, 28 May 2004 09:36:40 -0500
Newsgroups gmane.comp.hardware.microcontrollers.tini
Organization alicit
Message-ID <004c01c444c1$30f1daf0$1401a8c0@CHRISDELL>
Kelly -

Be careful when you speak for others, please! 

I know a number of Java developers who have made products centered around
TINI, and who have deployed complex Java programs on TINI in hundreds or
thousands of systems, and have never found the need for a "reboot -h". They
have very complex 150K-sized programs that run just fine, no memory leaks, no
restarting. They are doing UDP and IP network communications, running various
native code modules, doing 1-Wire reads and writes, keeping large hash tables
in memory, and making/using files in the file system. 

My companies own products that use TINI, both '390 and '400 based, have no
such problems. We have over 2000 of these systems out in the world running
24/7 and there are no "reboot -h" instructions in them. Our logs do not show
restarts caused by watchdog timeouts or any other such problems. Our systems
operate doors as people pass through them and manage security all day long.
They are far from idle.

I don't know what they do differently than anyone else from a programming
standpoint, but just be aware that your "fact of life for TINI developers" is
simply not true.



-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:tini-admin-6tN4nzCoH/[email protected]] On Behalf Of
Kelly Smith
Sent: Thursday, May 27, 2004 4:58 PM
To: Daniel Mould; tini-6tN4nzCoH/[email protected]
Subject: RE: [TINI]Insufficient heap - no solution?


Dear Daniel - Re: "The "reboot -h" solution is quite tedious because I need to
restart the app many times a day during development. Is there a solution to
this problem other than rebooting, or are there any upcoming fixes planned?".

I hesitated to answer this myself (I have no association with DalSemi\MAXIM,
except to be on their SIGs), and here is the answer that you did NOT want to
hear. Others might "chime in" (I hope).

This is a "fact of life" for TINI developers, that you go through the the
"reboot -h" from time-to-time.  A "Babtism by Fire", as it were for
developers", that does "try your patience"!

I could suggest that you might try (1) doing the bulk of your
development\debug FIRST on a PC with the J2SDK and JRE, for as far as you can
go without dealing with the TINI "dependencies"

...and THEN, (2) move the TINI executable(s) to you TINI environment.  This
also has it advantages that you can "lint" your Java code and profile it
(somewhat), before migrating to your TINI as the target for your "real world"
execution.  Plus, you save time with 10^99th power of FTPs to your TINI!

This is how I do it (such as it is!), with my crappy ("I know there is a pony
in there somewhere!") Java code.

Just my $0.02... Best regards, Kelly Smith <><


-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:tini-admin-6tN4nzCoH/[email protected]]On Behalf Of
Daniel Mould
Sent: Thursday, May 27, 2004 9:23 AM
To: tini-6tN4nzCoH/[email protected]
Subject: [TINI]Insufficient heap - no solution?


Hi,

I'm developing some Java apps for a TINI DS80C400 device. My program is about
100Kb, and I have about 700Kb free memory. After stopping and restarting the
app about 5 times, I am unable to restart it again. I receive the message:

Could not execute file: Insufficient heap

I have browsed through the mailing list archives and found some older messages
that indicate this problem is caused by heap fragmentation. The solution
provided is to run gc from the slush prompt, which will supposedly coalesce
the entire heap. If I run gc multiple times this will occasionally work, but
after a couple more restarts I am stuck with the "Insufficient heap" message
no matter what I do.

The "reboot -h" solution is quite tedious because I need to restart the app
many times a day during development. Is there a solution to this problem other
than rebooting, or are there any upcoming fixes planned?

Thanks,
Daniel


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini