मैं पहाड़ शेर पर IDEA 12 लेडा का उपयोग कर रहा हूँ। मैं अधिकतम मेमोरी बढ़ाना चाहता था जो आईडीई उपयोग कर सकता है। मैं होने के लिए Info.plist फ़ाइल में VMOptions सेट करता हूं
-Xmx2048m -ea -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -Xbootclasspath/a:../lib/boot.jar
जब मैं आईडिया खोलता हूं, तब भी मुझे अधिकतम मेमोरी 711 मी दिखाई देती है।
jps -v
मेरे VMOptions लोड किए गए हैं, लेकिन यह निम्न विकल्पों द्वारा प्रतिस्थापित किया गया है।
29388 **-Xmx2048m** -ea -XX:+HeapDumpOnOutOfMemoryError -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xms128m **-Xmx800m** -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -XX:+UseCompressedOops -Didea.paths.selector=IdeaIC12 -Dsun.java2d.noddraw=true -Didea.max.intellisense.filesize=2500 -Didea.dynamic.classpath=false -Didea.jars.nocopy=false -Dsun.java2d.d3d=false -Dapple.awt.fullscreencapturealldisplays=false -Dapple.laf.useScreenMenuBar=true -Djava.endorsed.dirs= -Dswing.bufferPerWindow=false -Didea.fatal.error.notification=enabled -Didea.cycle.buffer.size=1024 -Didea.popup.weight=heavy -Didea.xdebug.key=-Xdebug -Dapple.awt.graphics.UseQuartz=true -Dsun.java2d.pmoffscreen=false -Didea.no.launcher=false -DCVS_PASSFILE=~/.cvspass -Didea.use.default.antialiasing.in.editor=false -Dcom.apple.mrj.application.live-resize=false -Didea.smooth.progress=false
29392 Jps -Dapplication.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home -Xms8m
कहाँ -Xmx800
से आता है? मुझे इसे हटाने की जरूरत है।
~/Library/Preferences/IdeaIC14/idea.vmoptions
से idea64.vmoptions
पहले इसका नाम बदलना होगा, अर्थात -Xmx2048m
।