Maximum heap size using for Java process in Windows 10 64 bit running 64 bit JVM -


what maximum heap size java process running on windows 10 64 bits, 64 bits jvm? machine has 8 gb of ram. , running java 8. trying run bfs on huge graph experimental purposes. while running bfs monitoring heap size being used in java visual vm. according visual vm heap utilization less 2000 mb regardless of providing following jvm parameters

-xms2048m -xmx3072m -xx:reservedcodecachesize=240m -xx:+useconcmarksweepgc -xx:softreflrupolicymspermb=50 -ea -dsun.io.usecanoncaches=false -djava.net.preferipv4stack=true -xx:+heapdumponoutofmemoryerror -xx:-omitstacktraceinfastthrow 

i did research on internet not find specific answer related system specification using. can java process use more 2 gb on windows 10 64 bit , 64 bit jvm? guidelines java heap sizing limit windows xp/2008/7 2 gb.

thank you, brother

on 64-bit machine, 64-bit jvm can work multi gigabyte heaps (dozens , dozens of gbs). i'm not sure it's limited in way except available memory (and theoretical address space of 64-bit pointer).

of course if you're working huge heap, gc has lot more work , may find need scale horizontally instead of vertically, maintain performance.

if visualvm isn't showing using more 2gb (the initial heap size given -xms), doesn't need more that. you've given permission use up to 3gb (-xmx), jvm won't allocate more memory fun of it.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -