Grails development enviornment page loads very slow -


so i'm getting page load times in range of 30-45 seconds.

some history:

this not case project. project in production haven't touched code in while. noticed started happening last time updating code. don't recall specific changed should have problem. have other projects running same grails versions no problem.

i think started happening in 2.2.3. running 2.2.4.

i using x64 jdk 1.7.0_25, windows 7 x64.

i'm not sure else put here relevant. assistance appreciated!

edit: running -noreloading has no effect.

edit2: i've tried deleting .grails folder entirely, running clean, , deleting target folder , stacktrace log.

edit3: seem amount of time takes dependent on amount of data displayed/read. small pages take 3-4 seconds. medium pages 10-12 seconds...

edit4: i'm running via intellij idea 12.1.4 x64 (idea64.exe). i've tried outside of intellij same results.

edit5: database oracle enterprise supports entire company. managed full time adminstrators. isn't mysql server on local machine.

edit6: application functions when deployed in test (test war), still slow when ran test run-app.

starting somewhere: downloaded jdk 1.7.21 , ran app , started working no problem! ran clean triggered recompile , stopped working... grr

now 1.7.21 still active, tried -noreloading , works!

annnd... works if don't use -noreloading..........

i've gone 1.7.25.. ran clean, , works. sooooooo yeah... explain that.

and doesn't anymore.

this under linux maybe useful:

if running code within ide:

ps auwx|grep java

-dgrails.console.class=grails.build.logging.grailseclipseconsole -dosgi.requiredjavaversion=1.6 -xms40m -xmx768m -xx:maxpermsize=256m -

as can see memory settings xms , xmx quite low...

in ide there should ini file:

more sts.ini        1 -vm       2 /usr/lib/jvm/java-6-openjdk-amd64/bin/java       3 -startup       4 plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar       5 --launcher.library       6 plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807       7 -product       8 org.springsource.sts.ide       9 --launcher.defaultaction      10 openfile      11 -vmargs      12 -dgrails.console.enable.interactive=false      13 -dgrails.console.enable.terminal=false      14 -djline.terminal=jline.unsupportedterminal      15 -dgrails.console.class=grails.build.logging.grailseclipseconsole      16 -dosgi.requiredjavaversion=1.6      17 -xms40m      18 -xmx768m      19 -xx:maxpermsize=256m 

you can these value , try restarting ide...

i suggest run nmon before/during , monitor whilst code running , monitor disk/cpu/network throughputs.

you may find hammering dev box causing issue.

if production fine don't see problem is..

e2a ahhh forgot under windows no nmon windblows hey not tried - http://sourceforge.net/projects/jnmonanalyser/

e2a again: 1. enable datasource.groovy debugging:

datasource {     pooled = true     driverclassname ="com.mysql.jdbc.driver"     username = "aaa"     password = "aaaa"     //sql logging - refer config.groovy @ hibernate.sql     logsql=true     ... 
  1. config.groovy - stop app running if have issues lets records trying add in bootstrap

    // return error when fails //grails.gorm.failonerror=true

enable log4j , use or part of it:

// log4j configuration log4j {     appender.stdout = "org.apache.log4j.consoleappender"     appender.'stdout.layout'="org.apache.log4j.patternlayout"     appender.'stdout.layout.conversionpattern'='[%r] %c{2} %m%n'     appender.stacktracelog = "org.apache.log4j.fileappender"     appender.'stacktracelog.layout'="org.apache.log4j.patternlayout"     appender.'stacktracelog.layout.conversionpattern'='[%r] %c{2} %m%n'     appender.'stacktracelog.file'="stacktrace.log"     appender.'stacktracelog.maxfilesize'="1mb"     rootlogger="error,stdout"     logger {         grails="error"         stacktrace="error,stacktracelog"         org {             codehaus.groovy.grails.web.servlet="error"  //  controllers             codehaus.groovy.grails.web.pages="error" //  gsp             codehaus.groovy.grails.web.sitemesh="error" //  layouts             codehaus.groovy.grails."web.mapping.filter"="error" // url mapping             codehaus.groovy.grails."web.mapping"="error" // url mapping             codehaus.groovy.grails.commons="info" // core / classloading             codehaus.groovy.grails.plugins="error" // plugins             codehaus.groovy.grails.orm.hibernate="error" // hibernate integration              // hibernate should on - if want catch sql logs             springframework="off"             hibernate="on"             //hibernate.sql = 'debug'             //hibernate.type = 'trace'             //hibernate.sql = 'info,hibernate'             //hibernate.type = 'info,hibernate'             //hibernate = 'info,hibernate'               //apache.commons.digester.digester = 'debug,javaclasses'         }     }     additivity.stacktrace=false } 

try , capture doing, worth running developer tools on browser whether firefox of chrome , trying figure out on elements taking time - between logs , browser developer tools should lie answer.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -