RubyMine 8.0.4 unusable (out of memory???)
RubyMine used to work pretty good on a new machine but after using it a while it now became unusable again. I'm working on a relatively large RoR project based on an old ruby version (1.8.7).
Here are my VM parameters:
-Xms128m
-Xmx1200m
-XX:MaxPermSize=200m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
The About box shows:
JRE: 1.8.0_77-b03 x86
JVM: JavaHotSpot(TM) Client VM By Oracle Corporation
The host machine is running Windows 10 and has 64GB RAM. I'd love to run JRE x64 and set memory much higher. But since there is no 64bit launcher I don't know how to do that.
Any ideas?
Thanks,
Pete
Please sign in to leave a comment.
Hello Pete,
is it possible to check how it goes with the last RubyMine version (the best option would be 2017.1.1 RC). Do you get out of memory or also notice performance degradation (CPU, memory)?
Hi Olga,
Thanks for your help. Upgrading isn't something I want to do because we're migrating from Ruby to Node and I don't want buy a new license for a rubymine upgrade. I have a perpetual fallback license for 8.0.4 which works OK when it works.
In the meantime I resolved the issue by following the instructions outlined here:
https://www.bonusbits.com/wiki/HowTo:Install_Rubymine_on_Windows
I've have these settings in rubymine64.exe.vmoptions:
-Xms512m
-Xmx16000m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
This works fine (except that startup is a bit unusual). If I run it for a while I can see in Process Explorer that rubymine uses > 15GB Private Bytes and >6GB Working Set, The good thing is that it now is very responsive.
RubyMine 8 About shows::
JRE: 1.8.0_111-b14 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Thanks again for your help.
Pete