简体   繁体   English

STS.ini的堆设置不能超过1024m(Eclipse配置)

[英]STS.ini can't set heap more than 1024m (Eclipse configuration)

this is my sts.ini 这是我的sts.ini

-vm
C:/Program Files (x86)/Java/jdk1.6.0_24/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
com.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
584M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xmn128m
-Xms256m
-Xmx1024m
-Xss1m
-XX:PermSize=128m
-XX:MaxPermSize=584m

My STS (Spring Tool Suite) is keep falling on low memory . 我的STS (Spring工具套件) 一直处于低内存状态 I tried to increase memory of heap, but if i set -Xmx greater than 1024m (for exeample -Xmx2048m) it writes "Could not create Java Virtual Machine". 我试图增加堆的内存,但是如果我将-Xmx设置为大于1024m(例如-Xmx2048m),它将写为“无法创建Java虚拟机”。 I have pc with 16GB Ram and OS Windows 7 Professional 64bit and using 32bit 1.6 Java. 我有配备16GB Ram和OS Windows 7 Professional 64bit并使用32bit 1.6 Java的计算机。 How can I give to my STS more memory to prevent the falling if this doesn't work. 如果这不起作用,我如何给STS更大的内存以防止跌倒。 I tried to google it but I didn't find anything useful. 我试图用Google搜索它,但没有发现任何有用的信息。

This limitation is indeed caused by using the 32bit JVM. 此限制确实是由使用32位JVM引起的。 To use more heap space for your STS or Eclipse installation, please download the 64bit version of it and use it with a 64bit JVM for your Windows system. 要为STS或Eclipse安装使用更多的堆空间,请下载它的64位版本,并将其与Windows系统的64位JVM一起使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM