無既読アプリ。開発日記

日々プログラミングの勉強しています。 かじった物、触れた物→ java/processing/c/c++/c#/MATLAB/Perl/Ruby/javascript/Objective-C/R/Android/IOS/ubuntu/linux

eclipse のメモリ設定 memory heap ubuntu and win7 [Java heap space]

eclipse のメモリ設定 memory heap ubuntu/linux/win7

AndroidStudio だと動かないアプリケーションがあったので久しぶりにeclipseデバッグした。

今まではeclipseの300Mでメモリ足りてたのに
google のanalytics v4 を導入したら700Mくらい使うようになった。
eclipse のメモリ不足で固まってしまって困ったのでその解決法とメモ

eclipse.iniの記述を変更し
eclipse -clean
で実行すればいいらしいい。

  • Xms512m
  • Xmx1024m

に値を変更。

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms512m
-Xmx1024m

これでもダメな場合コマンドから直接設定して起動する。

ubuntu/linuxeclipse -vmarges -Xxm1024M
winは eclipse.exe -vmarges -Xxm1024M


設定前
f:id:juntec:20150623211755p:plain


設定後
f:id:juntec:20150623211807p:plain