GWT / GXT compilation slow and freezes my Windows ?

Recently I was able to run some basic GWT / GXT compilation tests to compare time efficiency between some old and new machines using Microsoft Windows. Test results wasn’t something that surprised me much but by accident I was able to find a reason that makes GWT compilation choke even modern monster desktops (6 core Phenom 3.3GHz with fast 8GB Dual RAM and top SSD II Disc)

If you are using something else then lightweight anti-virus program your GWT compilation can be much more time consuming (depending on project size and complexity average of few times longer) and even freeze your desktop for a little while.

Suggestion: use lightweight anti-virus program (like Avast AV) or change its configuration that it would skip real time scanning of your local drive (greatly improves compilation time with NOD32, Norton AV etc…)

You May Also Like

New HTTP Logger Grails plugin

I've wrote a new Grails plugin - httplogger. It logs:

  • request information (url, headers, cookies, method, body),
  • grails dispatch information (controller, action, parameters),
  • response information (elapsed time and body).

It is mostly useful for logging your REST traffic. Full HTTP web pages can be huge to log and generally waste your space. I suggest to map all of your REST controllers with the same path in UrlMappings, e.g. /rest/ and configure this plugin with this path.

Here is some simple output just to give you a taste of it.

17:16:00,331 INFO  filters.LogRawRequestInfoFilter  - 17:16:00,340 INFO  filters.LogRawRequestInfoFilter  - 17:16:00,342 INFO  filters.LogGrailsUrlsInfoFilter  - 17:16:00,731 INFO  filters.LogOutputResponseFilter  - >> #1 returned 200, took 405 ms.
17:16:00,745 INFO filters.LogOutputResponseFilter - >> #1 responded with '{count:0}'
17:18:55,799 INFO  filters.LogRawRequestInfoFilter  - 17:18:55,799 INFO  filters.LogRawRequestInfoFilter  - 17:18:55,800 INFO  filters.LogRawRequestInfoFilter  - 17:18:55,801 INFO  filters.LogOutputResponseFilter  - >> #2 returned 404, took 3 ms.
17:18:55,802 INFO filters.LogOutputResponseFilter - >> #2 responded with ''

Official plugin information can be found on Grails plugins website here: http://grails.org/plugins/httplogger or you can browse code on github: TouK/grails-httplogger.