PHPStorm 调整内存限制

WBOY
Release: 2016-06-23 13:23:17
Original
1896 people have browsed it

为什么调整内存?

问题出现在当项目里有大量 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
Copy after login

参考

  • Configuring JVM options and platform properties
    

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!