Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make GGTS / STS super fast?

I am using GGTS 3.2 JUNO 4.2.2 with Grails 2.2.1. It occurs to me that the environment is very slow after a while. What can I do to make it faster?

Is there a way to use the full potential of the underlying system?

What I did was (GGTS.ini):

-Xms768m
-Xmx768m
-XX:PermSize=1024m
-XX:MaxPermSize=1024m
-XX:+UseParallelGC
like image 992
confile Avatar asked Apr 20 '13 13:04

confile


2 Answers

Working with Grails and GGTS demands a high amount of memory provided to GGTS. The reason why your IDE is getting slower by the time is because it has to do many "stop-the-world" Garbage Collections to get the memory it needs.

Especially you can see that on opening a GSP file the first time on your IDE ...then GGTS goes dark for a while. And you can see that on the heap status at the right bottom of your IDE (enable it at your preferences). Every time the used memory is near to your provided 1GB your GGTS is stop working for two or more seconds. After that there is some free memory again.

1GB of memory for GGTS is ridiculous low - 2GB should be the minimum with Grails and Eclipse. But that's not all. GGTS has a memory leak with Grails Tests and automatically building. You can try to remove the Unit and Integration tests from your projects build path. That is my trick to avoid slowdowns. But if I had to write Unit Tests I have to restart GGTS every once in a while. (And I have 8192m written in my ggts.ini.)

like image 50
Denny Avatar answered Nov 13 '22 14:11

Denny


Eclipse Foundation has published solutions for this

http://wiki.eclipse.org/Platform_UI/Juno_Performance_Investigation

like image 1
Eugene Ryzhikov Avatar answered Nov 13 '22 14:11

Eugene Ryzhikov