why play framework project in intellij taking too much time to load in browser

无人久伴 提交于 2019-12-24 04:50:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!