问题
I have a play framework project in my Intellij IDE when I reload page in browser Its takes 6 minutes to completely reload page in browser and in my console it starts the server and stops it and so on for six minutes
My Console ouput
--- (RELOAD) ---
INFO - Shutting down connection pool...
DEBUG - Terminating pool watch thread
INFO - Connection pool has been shutdown.
DEBUG - Connection pool has been shut down
INFO - datasource [jdbc:postgresql://localhost:5432/portaljob] bound to JNDI as DefaultDS
DEBUG - JDBC URL = jdbc:postgresql://localhost:5432/portaljob, Username = postgres, partitions = 1, max (per partition) = 30, min (per partition) = 5, idle max age = 10 min, idle test period = 1 min, strategy = DEFAULT
INFO - database [default] connected at jdbc:postgresql://localhost:5432/portaljob
DEBUG - select relname from pg_class where relkind='S'
INFO - Application started (Dev)
[info] Compiling 2 Java sources to E:\Software\intellij_worksapce\PortalJob\target\scala-2.10\classes...
[info] Compiling 2 Java sources to E:\Software\intellij_worksapce\PortalJob\target\scala-2.10\classes...
--- (RELOAD) ---
INFO - Shutting down connection pool...
DEBUG - Terminating pool watch thread
INFO - Connection pool has been shutdown.
DEBUG - Connection pool has been shut down
INFO - datasource [jdbc:postgresql://localhost:5432/portaljob] bound to JNDI as DefaultDS
DEBUG - JDBC URL = jdbc:postgresql://localhost:5432/portaljob, Username = postgres, partitions = 1, max (per partition) = 30, min (per partition) = 5, idle max age = 10 min, idle test period = 1 min, strategy = DEFAULT
INFO - database [default] connected at jdbc:postgresql://localhost:5432/portaljob
DEBUG - select relname from pg_class where relkind='S'
INFO - Application started (Dev)
[info] Compiling 2 Java sources to E:\Software\intellij_worksapce\PortalJob\target\scala-2.10\classes...
[info] Compiling 2 Java sources to E:\Software\intellij_worksapce\PortalJob\target\scala-2.10\classes...
and above is shown in my console for until six minutes
Is it normal? What could be the reason for that and how can I solve this??
Note:I am working in localhost
Thanks
回答1:
I was running my application through Menu > Run > Run/Debug
so I removed Make
step from the configuration and now its taking less time to run .
Thanks to @biesior
来源:https://stackoverflow.com/questions/27795764/why-play-framework-project-in-intellij-taking-too-much-time-to-load-in-browser