java - Can't start up: not enough memory with -Xmx30G -


i error message "can't start up: not enough memory" when run code "java -xmx30g examplecode".

this error not happen when don't specify java virtual machine size. have clue why error message when set virtual machine size? if -xmx smaller 1g runs, if not got mentioned error message.

thanks in advance help!

and yes, there enough ram :) (72g available).

btw, javahome /opt/jre1.6.0_20

the os can impose limit on how large process can be. example, in 32-bit windows, limit ~2gb, if machine has 4gb ram. check or os settings, , sure running jvm allowed (i.e. if you're on 64-bit system supports size process, sure run 64-bit jvm)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -