aptana 报错:Java heap space

本文介绍了AptanaStudio默认的内存配置,包括启动分配的128MB和最大使用384MB的Java堆内存,以及默认为256MB的永久代内存大小。在特定情况下,如大量项目或文件打开时,增加最大堆内存可能提升性能。但应注意避免设置超过物理内存的分配,以防影响计算机性能。文章还提供了不同平台下AptanaStudio.ini文件的参数示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Setting Memory Usage Configuration

By default, Aptana Studio allocates 128M to start (the -Xms128M parameter), and uses a maximum of 384MB (the -Xmx384M parameter), of Java heap memory, which is usually enough for most development tasks. However, depending on the JRE that you are running and if you are working with additional plugins and have many files open, you may need to increase your amount of memory. You may also find it helpful to increase the size of the permanent generation memory, which defaults to 256MB (the -XX:MaxPermSize=256m parameter).

In some situations, such as when you have many projects in your workspace or when a project under source control has many files, you may get better performance by increasing the maximum heap memory (the -Xmx384M parameter). However, setting the memory allocation larger than the available physical memory on your machine can cause issues with Java which will severely degrade your computer's performance and should be avoided.

Memory usage configuration changes are made in the AptanaStudio.ini file. Studio must be restarted for any changes to this file to take effect.

Certain parameters in the AptanaStudio.ini file are platform-dependent; For example, only OS X needs the XstartOnFirstThread parameter.

AptanaStudio.ini Across Platforms

Windows

 -startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731
-vmargs
-Xmx384M
-Xms128M
-XX:MaxPermSize=256m
-Djava.awt.headless=true

OS X

 -vmargs
-Xms128m
-Xmx384m
-XX:MaxPermSize=256m
-Xdock:icon=../Resources/aptana.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Linux

 -startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.101.R34x_v20080731
-vmargs
-Xmx384M
-Xms128M
-XX:MaxPermSize=256m
-Djava.awt.headless=true

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值