为什么在intellij中玩框架项目需要花费太多时间在浏览器中加载

时间:2015-01-06 09:33:40

标签: browser intellij-idea load playframework-2.2 slowdown

当我在浏览器中重新加载页面时,我的Intellij IDE中有一个播放框架项目它需要6分钟才能在浏览器中完全重新加载页面,在我的控制台中启动服务器并停止它等等六分钟

我的控制台输出

--- (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...

以上显示在我的控制台中直到六分钟

这是正常的吗? 可能是什么原因以及如何解决这个问题?

注意:我在localhost

工作

谢谢

1 个答案:

答案 0 :(得分:1)

我正在通过Menu > Run > Run/Debug运行我的应用程序,因此我从配置中删除了Make步骤,现在花了更少的时间来运行。

感谢@biesior