Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0-RC1
-
Fix Version/s: 2.3-M2
-
Component/s: Build System
-
Labels:None
-
Environment:2.3GHz quad core processor with 4GB of memory running Win 7 x64. The environment is Java JDK version 1.7.0 with JAVA_OPTS set to -XX:MaxPermSize=256M -Xmx768M. GRAILS_HOME is set to version 2.0.0.RC1.
Description
I have a large project that I have just upgraded from M2 to RC1. The stats command gives an idea of the size of the app:
--------------------------------
| Name | Files | LOC |
--------------------------------
| Controllers | 95 | 23889 |
| Domain Classes | 98 | 7536 |
| Services | 15 | 7031 |
| Tag Libraries | 3 | 794 |
| Groovy Helpers | 58 | 7740 |
| Java Helpers | 1 | 63 |
| Scripts | 1 | 89 |
--------------------------------
| Totals | 271 | 47142 |
--------------------------------
If I clean the app and then do a run-app, the compilation takes a lot longer than in M2 and the application runs so slowly that it's unusable. The compilation phase also outputs two warnings of:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
However, if I clean the app and then do a compile, the compilation seems to proceed at a similar speed to what it did under M2 (but still with warning messages). Following the compile with a run-app, the application runs at normal speed. Peter Ledbrook has suggested that "If you do a run-app from clean, then the compilation step appears to add a significant amount to the heap memory used." This is presumably not what was intended.
I have NOT attached a zip of the project since this would be around 19MB in size and I didn't think you would appreciate that!
Issue Links
- is related to
-
GRAILS-8194
Strange errors under memory constraints (with reloading enabled)
-
You can verify whether this is related to the reloading agent by starting Grails with grails -noreloading ....