B4J Question Memory increase

Sytek

Active Member
Licensed User
Longtime User
Is it normal that every time that a form is loaded the memory increases about 35mb.
...is there a method to release or load a previous form without increasing the memory?
Hello, Thank's in advance.
Best Regards!
 

Sytek

Active Member
Licensed User
Longtime User
Test the memory usage in Release mode. Try to opened and closed the form many times. Eventually the memory usage should become steady.
Ok, I'd opened and closed the form about 50 times, and the java.exe memory usage become steady at 283,952 kb. Is this ok?; I mean is reasonable.
Thank's in advance
Best regards!
 
Last edited:
Upvote 0

Sytek

Active Member
Licensed User
Longtime User
283mb sounds quite a lot. However if it is steady then it is fine. It means that the garbage collector let the memory usage rise up to a limit. If there is a memory leak then the memory usage will keep rising until the process crashes.

...Thank's for the reply Uziel
Here's the project; Would you please point me in the right direction?, I mean if I run the Customer data files option and close it several times and click in the other window to check memory button the memory grows. (Verify in task bar windows window)
Forgive me I'm totally new on java and I need to know if this is correct.
Best Regards!
 

Attachments

  • Sytek.zip
    44.5 KB · Views: 239
Upvote 0
Top