Mashiane Expert Licensed User Longtime User Jul 31, 2021 #1 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. Thanks.
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. Thanks.
agraham Expert Licensed User Longtime User Jul 31, 2021 #3 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
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.
Mashiane Expert Licensed User Longtime User Jul 31, 2021 #4 agraham said: I guess you don't have much RAM either and are running a 64bit Java which occupies more space than a 32bit Java. Click to expand... I see, but... 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. After opening the project (not pressing run) 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
agraham said: I guess you don't have much RAM either and are running a 64bit Java which occupies more space than a 32bit Java. Click to expand... I see, but... 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. After opening the project (not pressing run) This is still fine...so im baffled at what happens when clicking run for a need of such a large amount of memory.
Daestrum Expert Licensed User Longtime User Jul 31, 2021 #5 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) Last edited: Jul 31, 2021 Upvote 0
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)
Mashiane Expert Licensed User Longtime User Jul 31, 2021 #6 Yippie!!!! I have installed java jdk for 32 bit, set the swap file to 4GB and the memory allocation error is no longer showing and my app ran well. Thanks guys. I will ensure that most back-ground services like the sql server that im not using and dont know who started it, are closed. Upvote 0
Yippie!!!! I have installed java jdk for 32 bit, set the swap file to 4GB and the memory allocation error is no longer showing and my app ran well. Thanks guys. I will ensure that most back-ground services like the sql server that im not using and dont know who started it, are closed.