B4J Question [SOLVED] B4J and Paging Files & Java VM Memory.

Mashiane

Expert
Licensed User
Longtime User
Ola

My HDD is very small, and I had just noticed that the pagesys file, which is managed by windows was taking 16GB and decided to set it to 2GB. Now I cant seem to run b4j. Is there a way to set the Java VM not to use so much memory? I have not set anything on my app for VM management just basic usage.

1627734970143.png


Thanks.
 

agraham

Expert
Licensed User
Longtime User
I guess you don't have much RAM either and are running a 64bit Java which occupies more space than a 32bit Java. I don't think there is anything you can usefully do about it without restoring the page file to a larger size. Ideally you want both a RAM and HDD upgrade.
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
I guess you don't have much RAM either and are running a 64bit Java which occupies more space than a 32bit Java.
I see, but...

1627736029278.png


I guess I perhaps have to use 32 bit, im using jdk 11.

I also noticed something.

When b4j is opened without a project opened.

1627736138000.png


After opening the project (not pressing run)

1627736212126.png


This is still fine...so im baffled at what happens when clicking run for a need of such a large amount of memory.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Are you running lots of things in background ( web browser pages etc)?
Try closing some down to free up 'real' memory.

As @agraham said the more memory the smaller the swap file becomes (mine is managed by Windows)

1627738286812.png
 
Last edited:
Upvote 0
Top