sts配置内存_如何增加STS(Spring工具套件)的内存大小?

I am trying to increase heap size (memory) for the spring tool suite as I am getting out of memory.

If I increase from Xmx from 768m to 1024m I get the error "Failed to Create Java Virtual Machine".

If I revert Xmx to 768m it works fine but I get OOM (Out of Memory). I have STS 2.9.2. OS is win7.

This is currently what I have in sts.ini at the moment.

-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

384M

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms256m

-Xmx1024m

-Xss1m

-XX:PermSize=256m

-XX:MaxPermSize=1024m

what should I change? Please advise.

解决方案-startup

plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.401.v20161122-

1740

-product

org.springsource.sts.ide

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.8

-Xmx1024m

You should change only Xmx.

Here I am using Xmx1024m means STS is assigned with 1 GB Ram

And Xmx4G means 4GB RAM.

You can check the heap status as

Open sts in Windows menu select Preferences then from General tab mark show heap status option.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值