RE: Insufficient heap - no solution?
"Kelly Smith" <[email protected]> Thu, 27 May 2004 14:57:55 -0700
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
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