LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1151|回复: 1

问题:在debian linux下 图形界面下启动eclipse占用更多的内存?

[复制链接]
发表于 2006-4-26 10:11:02 | 显示全部楼层 |阅读模式
我使用的是3.2RC(3.2.M5也有相同的问题),通过图形界面的菜单快捷方式启动时eclipse竟然用了100-200M的内存,而在字符终端界面下启动则占20-40M左右,不知道是什么原因?
我用-debug调试启动用下面的参数:

图形界面下启动:

  1. Start VM: /usr/bin/java
  2. -Xms40m
  3. -Xmx256m
  4. -jar /usr/mypro/eclipse3.2RC/eclipse/startup.jar
  5. -os linux
  6. -ws gtk
  7. -arch x86
  8. -launcher /usr/mypro/eclipse3.2RC/eclipse/eclipse
  9. -name Eclipse
  10. -showsplash 600
  11. -exitdata 1a0010
  12. -debug
  13. -vm /usr/bin/java
  14. -vmargs
  15. -Xms40m
  16. -Xmx256m
  17. -jar /usr/mypro/eclipse3.2RC/eclipse/startup.jar
  18. Install location:
  19.     file:/usr/mypro/eclipse3.2RC/eclipse/
  20. Configuration file:
  21.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/config.ini loaded
  22. Configuration location:
  23.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/
  24. Configuration file:
  25.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/config.ini loaded
  26. Shared configuration location:
  27.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/
  28. Framework located:
  29.     file:/usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.osgi_3.2.0.v20060413-1200.jar
  30. Framework classpath:
  31.     file:/usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.osgi_3.2.0.v20060413-1200.jar
  32. Splash location:
  33.     /usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.platform_3.2.0.v20060413-1200/splash.bmp
  34. runCommand:
  35.     </usr/mypro/eclipse3.2RC/eclipse/eclipse><-name><Eclipse><-showsplash><600></usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.platform_3.2.0.v20060413-1200/splash.bmp>
  36. Debug options:
  37.     file:/home/sxhong/.options not found
  38. Time to load bundles: 13
  39. Starting application: 7626
  40. Application Started: 48674
复制代码
]

字符终端下启动:

  1. Start VM: /usr/lib/j2sdk1.5-sun/bin/java
  2. -Xms40m
  3. -Xmx256m
  4. -jar /usr/mypro/eclipse3.2RC/eclipse/startup.jar
  5. -os linux
  6. -ws gtk
  7. -arch x86
  8. -launcher /usr/mypro/eclipse3.2RC/eclipse/eclipse
  9. -name Eclipse
  10. -showsplash 600
  11. -exitdata 1d0012
  12. -debug
  13. -vm /usr/lib/j2sdk1.5-sun/bin/java
  14. -vmargs
  15. -Xms40m
  16. -Xmx256m
  17. -jar /usr/mypro/eclipse3.2RC/eclipse/startup.jar
  18. Install location:
  19.     file:/usr/mypro/eclipse3.2RC/eclipse/
  20. Configuration file:
  21.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/config.ini loaded
  22. Configuration location:
  23.     file:/usr/mypro/eclipse3.2RC/eclipse/configuration/
  24. Framework located:
  25.     file:/usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.osgi_3.2.0.v20060413-1200.jar
  26. Framework classpath:
  27.     file:/usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.osgi_3.2.0.v20060413-1200.jar
  28. Splash location:
  29.     /usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.platform_3.2.0.v20060413-1200/splash.bmp
  30. runCommand:
  31.     </usr/mypro/eclipse3.2RC/eclipse/eclipse><-name><Eclipse><-showsplash><600></usr/mypro/eclipse3.2RC/eclipse/plugins/org.eclipse.platform_3.2.0.v20060413-1200/splash.bmp>
  32. Debug options:
  33.     file:/usr/mypro/eclipse3.2RC/.options not found
  34. Time to load bundles: 16
  35. Starting application: 6112
  36. Application Started: 25651
复制代码


图形界面下启动时多了几行:
Configuration file:
    file:/usr/mypro/eclipse3.2RC/eclipse/configuration/config.ini loaded
Shared configuration location:
    file:/usr/mypro/eclipse3.2RC/eclipse/configuratio:help n/
是不是因为加载了两次config.ini从而使得插件的数量增加.
希望高手能够帮忙解决这个问题!

注:插件是使用links的方式安装.
发表于 2006-4-26 11:06:05 | 显示全部楼层
只知道windows下eclipse要占用120多兆内存

不知道字符界面下eclipse怎么用
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表