Is there anyway to increase the VM memory from the default 2 GB?
Would you have to recompile from source?
Also is there any way to publicly view and report issues/push fixes to the source code such as on Github or some other Git site?
Increasing VM Memory?
Moderator: MSandro
Re: Increasing VM Memory?
GP uses around 200 MB all the time on my system, even if the VM doesn't need all the memory.
And if the "memory used" block shows is right, GP seems to have some like a "memory leak" because, even if no project script is running, the used memory of the VM is rising fast, to about 90%. Then only a "collect garbage" triggered to reduce the need.
And if the "memory used" block shows is right, GP seems to have some like a "memory leak" because, even if no project script is running, the used memory of the VM is rising fast, to about 90%. Then only a "collect garbage" triggered to reduce the need.
Re: Increasing VM Memory?
As MSandro wrote, GP's memory space is 200MB by default. It isn't currently possible to change that, but it might make sense to add a command-line switch to do this.Is there anyway to increase the VM memory from the default 2 GB?
Yep, that's exactly GP's memory system works by design. As GP runs, it is constantly creating new objects (lists, strings, colors, temporary bitmaps, etc.) Many of those objects are just used for a little while, then forgotten. The forgotten objects are called "garbage". When the pool of free memory gets low, GP runs the "garbage collector", which discards all the garbage objects, packs all the remaining objects tightly together ("compaction"), and resets the free memory pool.And if the "memory used" block shows is right, GP seems to have some like a "memory leak" because, even if no project script is running, the used memory of the VM is rising fast, to about 90%. Then only a "collect garbage" triggered to reduce the need.
Re: Increasing VM Memory?
Not yet. We were planning to make the source code for the virtual machine available when GP 1.0 was released, but development has been slow since we lost funding last August, and it's not clear when GP will be ready for a 1.0 release. If and when the VM source code it released it will probably be under the Mozilla Public License 2.0.Also is there any way to publicly view and report issues/push fixes to the source code such as on Github or some other Git site?
Some folks have asked if they are allowed to make remixes/mods of GP. Sure! All the GP code in the "runtime" folder is open source under the MIT license. Thus, you could set up your own GitHub repository starting with a copy of the v81 runtime folder and go from there.
Re: Increasing VM Memory?
Hi John, nice to read from you again in this forum :D
Those are very usefull informations. Because I've changed a lot in my GP runtimes folder, I will share it in this forum soon. I think a Github repo is a bit to much atm.
Those are very usefull informations. Because I've changed a lot in my GP runtimes folder, I will share it in this forum soon. I think a Github repo is a bit to much atm.
Re: Increasing VM Memory?
Are you going to post your version of /lib, MSandro?
Re: Increasing VM Memory?
Hehe so I actually do need more memory because there is stack overflow when I work with 4K pictures (changing around pixels)