Does anyone have a definitive answer to how much available memory there is for Java applications on the 9210 and the 9210i?
I have two applications that are memory hungry one of which is currently in use by quite a few 9210 users, the other brand new, but requires even more memory.
The first is a port to the 9210 of the well known vnc app. I wish to do my annual update of this app, and the main complaints are always due to lack of memory.
I therefore need to squeeze as much memory as possible - and be able
to instruct others to do so.
As a test, I have written a java app That prints out the free and available memory, then does a gc() and prints it out again.
I remove the battery, run redirect.sis, then my test app. The
results are as follows:
Before gc(): Free: 62,936Bytes, total: 131,064
After gc(): Free: 71,584Bytes, total: 131,064
So, a sorry 61K of user memory.
(One further point to note - when running my new app, I monitor the memory. Whilst the free memory never goes above about 70K, the total available memory starts at 131,064, then goes to 195832, then to 224504 - so I am guessing that the JVM is grabbing more system memory, but never giving any to the user/application??)
So, my question is:
Is there *any* way of maximising the available user memory for Java apps, either by clever installation, using a different JVM, application design.....can memory card memory be used? anything I can try so as to make my apps work.
Second question. Whats user memory available on the 9210i?
If anyone wants my test program to tell me the answer, they can have it.