Quantcast

Disable auto-build and set more memory in Groovy/Grails Tool Suite

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Disable auto-build and set more memory in Groovy/Grails Tool Suite

makalele
Hi, recently I started to using Grails and decided to use Groovy/Grails Tool suite. But I have 2 issues with that IDE.

First, after any small change and file save whole project is building into WAR file and deploying on VMWare vFabric server, which really slows my notebook. I disabled Project->Build automatically option, but it didn't helped at all. I also tried to find some option like that in IDE Preferences, project settings and even configuration files, but I can't find it.

Second, I need to set up more memory for Java, because I often get "java.lang.OutOfMemoryError: PermGen space". I google'd that default memory is 64mb and I just have to set more memory, but I have no idea where I can change this in Groovy/Grails Tool Suite IDE.

I have to get rid of these 2 issues before start working effective.

Any help will be appreciated,
Best regards
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disable auto-build and set more memory in Groovy/Grails Tool Suite

Octavian Covalschi
During the development you should run your grails app using run-app command within "grails command prompt"(Ctr+Alt+Shift+G)

This way you'll take advantage of runtime source recompiling and reloading(which works most of the time)

Hope this helps.

On Fri, Sep 7, 2012 at 12:19 PM, makalele <[hidden email]> wrote:
Hi, recently I started to using Grails and decided to use Groovy/Grails Tool
suite. But I have 2 issues with that IDE.

First, after any small change and file save whole project is building into
WAR file and deploying on VMWare vFabric server, which really slows my
notebook. I disabled Project->Build automatically option, but it didn't
helped at all. I also tried to find some option like that in IDE
Preferences, project settings and even configuration files, but I can't find
it.

Second, I need to set up more memory for Java, because I often get
"java.lang.OutOfMemoryError: PermGen space". I google'd that default memory
is 64mb and I just have to set more memory, but I have no idea where I can
change this in Groovy/Grails Tool Suite IDE.

I have to get rid of these 2 issues before start working effective.

Any help will be appreciated,
Best regards



--
View this message in context: http://grails.1312388.n4.nabble.com/Disable-auto-build-and-set-more-memory-in-Groovy-Grails-Tool-Suite-tp4634452.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Disable auto-build and set more memory in Groovy/Grails Tool Suite

Kris De Volder
In reply to this post by makalele
To disable the automatic war-build and republish to tc-server on resource changes:

1) double click on the "VMWare vFabric..." entry in the Servers view.

It should open a tabbed form-based editor that lets you configure various things of the server.

2) Expand the "Publishing" section on the "Overview" tab.

3) Select "Never publish automatically".

4) Don't forget to Save the changed configuration. (Pressing CTRL-S does the trick).

Now the server publish (and so the war build) will no longer happen automatically. You can still trigger it manually by clicking the "Publish" button in the Servers View.

With respect to your other question about the permgen memory for "Java". The anser really depends on the Java process. I.e is it GGTS that is running out of memory? Or is it the Grails App running on TcServer?

To change STS/GGTS memory settings you edit "STS.ini" or "GGTS.ini" this file should be somewhere in the directory where you installed STS/GGTS.

If it is the tc server process that is running out of memory, you can change this process' memory params in its "Launch Configuration" in GGTS. Go to "Run" menu. Then "Run Configurations...". Look for the "VMWare VFabric..." launch configuration and open it. Select the "Arguments" tab then change the permgen setting in the "VM Arguments" section.

Kris
Loading...