Optimal vmoptions
Hi,
RubyMine has always been a resource hog for me, but I don't mind as long as it uses the resources to help me work faster (I love all its features -- except the spell checker, I despise that one).
RubyMine no longer crashes like it used to often do (the only reason I still used NetBeans), but it always slows down to a crawl after a couple of hours.
So I was wondering if changing vmoptions would be any help. Currently I have this:
-Xms48m
-Xmx768m
-XX:MaxPermSize=170m
I have no idea what those actually do, but I'm kind of hoping I can optimize that to keep RubyMine from slowing down.
I have a 64bit machine w/7GB of RAM, running Ubuntu 9.04, so I'd be willing to give RubyMine as much RAM as it needs to run smoothly.
Thanks!
PS: I use the sun-jdk in case that's of any help.
Please sign in to leave a comment.
Hello Ivan,
At first if RM slows down we recommend to take a CPU and RAM snapshots as described - http://www.jetbrains.net/devnet/docs/DOC-1144.
-Xms - it's initial minimal heap size of JVM. All RubyMine's caches and data are stored in heap.
-Xmx - maximum available heap size. JVM increases heap from minimal to maximum size. If you set large heap size (e.g. 1,5 - 2 GB) than JVM Garbage Collections pauses will be longer and it wont be good. I think 768m is enough.
RubyMine shows indicator used memory/current heap size in status bar. If current heap size reaches max size and used memory is about heap size than you should take a snapshot (because in such situation JVM will continuously perform GC) . If you project is rather big or you usually open several projects simultaneously you can try to increase max heap size.