-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a lot of RAM #3
Comments
Change jvm.h Running SpecTest: Output:
|
miniJVM is using ltalloc to allocate memory, system allocated memory is more than jvm usage, comment the line in d_type.h to disable ltalloc, will get the more accurate memory. |
Thank you very much, after disable ltalloc, it spends only 12MB RAM, I feel much better. I don't know why ltalloc was used and what will happend when turn it off. Because of lacking document, I don't know how to program with the runtime, especially java.net library, it doesn't have API to connect internet neither https protocol. I hope you would add more features and documents for this project, I really love it, thank you |
ltalloc is a little faster than c malloc on iOS/macOS/win, but equals to Linux/Android, but it waste memory than c malloc. Https on the way, I am construct it . There are few documents now , plan to write it. |
I have update the library again, it runs well :) but I have a problem with start GUI app when window fullscreen, I can't click the buttons again, may be because of the change of coordinate . Btw, could you update Android binary version. Thanks! |
The windows app resize to fullscreen , it works in my win10x64, I don't know what happen in your situation, do you have more information about this. |
android submited a debug version, plz try it . |
I tried to install that apk many times, but it still be blocked by Google Protect. I will try to build another ones. Thank you, hope you could find the problem with bibix app 😀 |
menu can't be click bug fixed. |
android binary , may be you can build it yourself , Android Studio open project |
All above issues are solved 😁. Btw, when I compare speed, RAM and CPU usage, the mini_jvm takes 150-200% slower, more resource especially CPU used than JVM in same console tests: calculate primes < 1000, Fibonacci,... Could you have a solution for this issue? Thank you. |
oracle jvm or openjdk jvm did lots of optimizations for jit , the minijvm implemented jit ,but few of static analysts and optimizations ,so the minijvm have worse performance , minijvm developed for iOS and android mainly, Only provide a same development and running environment for pc, And the iOS platform does not allow applications to run in jit mode. alternately ,there is a java2c ( https://github.com/digitalgust/java2c ) project can convert minijvm jar to c source , the performance is very closely to oracle jvm . |
Your project have some similar plans like corona mobile sdk/solar2D which use Lua to program in Android/iOs/desktop (embedded source code in apk - I don't like that) or Codename One (closed source and limited file compiled), but I think your solution is better because of Java language and native high performance graphic lib for mobile. But I would like to hearing from your desktop solution like native Windows GUI (awt implementation..). |
minijvm app can update jar file anytime , then need restart app only. |
Because of the libgui support GUI controls like TextBox, Button, ListBox,...but in desktop I still can't type unicode, or copy from clipboard...so I must find another solution. I will choose one of your suggestions, could you write some tips for using minijvm native interface?. |
can't type unicode, can't using clipboard, these are issues, i will repair it, can u shows more information about this , because i can type chinese in win platforms, gui support clipboard too |
I'm using Unikey, but instead of display "trần văn dũng" it showed "trn vn dng", unicode characters "ầ ă ũ" weren't appeared. |
clipboard bug fixed , I am solving Vietnam language display issue |
clipboard is now ok. But I still can't paste Unicode or type Unicode to textbox. The textbox have Ctrl + V but dont have Ctrl + Z? |
ctrl+z can be add, it 's not the fixed heap using every times, it related with gc period. if the gc work per 30s, it would be more heap use , so i plan to limit the heap to specify value. |
Oh, I'm looking forward to your next mini_jvm version |
https supported. |
I have tried with your previous https.c/https.h - mbedtls wrapper (for Mac but with little changes to compile in Windows), it didn't run, but now, your lastest https library run smooth. I expected it so much. |
update gui jar to support full unicode font glyph. |
update textfield to support hotkey , how the bib crushed , could you delete app and redownload it try again. |
I deleted app and downloaded the lastest binaries, it's now OK, very smooth, only one downside it took 120MB RAM on startup |
I used miniJVM to demostrate a tiny console app 'Hello World' without any GUI library, it spent 35MB RAM only with minimal runtime? Are there any problem with memory model?
The text was updated successfully, but these errors were encountered: