|
See that Xmx4096m flag? You're telling the Java virtual machine it can use up to 4GB of RAM for the heap, which is essentially the maximum size of the "working pool" of RAM it's allowed to use. This wouldn't be an issue on a 64 bit installation, but since you're running a 32 bit copy of Java (notice the x86 in the Program Files directory? that's Microsoft's tell-tale sign you've installed a 32 bit application on a 64 bit operating system) the virtual machine itself cannot simply address 2^32+1 bytes of RAM. When it talks to the CPU and says "hey get me memory at this address", your address range is from 0x0 to 0xFFFF since 0xFFFF is the largest 32 bit value possible. When a 64 bit application talks to the CPU, it can reference addresses from 0x0 to 0xFFFFFFFF. That doesn't sound like that much more, but you're talking about ~4,200,000,000 vs ~4,200,000,000*4,200,000,000 - it's quite the significant increase.
To answer your question, simply lower that to -Xmx1536M or -Xmx1024M (which would severely limit the pool of RAM available to the virtual machine) or install a 64 bit copy of Java and tell Intellij to use that one, then you can use as many bytes of RAM for the heap as there are grains of sand on the Earth, so long as you've got the hardware for it!
Don't get discouraged by issues like this, keep digging and maybe try looking up the specific error messages you get going forward. There's tons of Stack Overflow articles written for this specific issue, and those answers will generally have better references than you'd find here or any other general forum! When you go down your own "figuring it out" rabbit hole you'll end up understanding more than just getting a step by step guide to fixing a specific issue!
Guys much thanks fixed. Req. Lock.
I appreciate.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |