Heim  >  Artikel  >  Backend-Entwicklung  >  PHPStorm 调整内存限制

PHPStorm 调整内存限制

WBOY
WBOYOriginal
2016-06-23 13:23:171897Durchsuche

为什么调整内存?

问题出现在当项目里有大量 js 的时候,一旦编辑包含 js 的文件,phpstorm 会出现卡顿,甚至 未响应,如图:

内存占用始终保持在 1.5G 左右,估计是内存不够用了。

调整方法

在 phpstorm9 时候,调整过一次,用得很好,内存最高一度超过 3g,最近升级到 phpstorm 10,发现之前的配置项不见了。故把调整方法记一下,防止下次又忘了。

# 用的是 mac osx,编辑 phpstorm 的启动配置文件,其他平台根据情况选择:sudo vim /Applications/PhpStorm.app/Contents/bin/phpstorm.vmoptions# 修改参数,根据具体需要修改即可-Xms512m-Xmx2048m-XX:MaxPermSize=350m-XX:ReservedCodeCacheSize=240m-XX:+UseCompressedOops

参考

  • Configuring JVM options and platform properties
    

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn