Alwin S
Alwin S

Reputation: 186

Play Framework 2.1 - requests and loading of static content extremely slow in dev-mode

I am trying to set up my java/play project on my windows machine with win7-64bit and play-framework 2.1.5. However I am struggling with extreme performance issues in dev-mode (play run).

When making a request, it takes about 10 seconds to load the html-page and afterwards it takes another 10 seconds for each static content (.css, .js, images) to load. Since there are a dozen static content-files, loading of the entire page takes more than 2 minutes.

This is what I have tried without any improvement:

However the following does work without any performance issues:

Can you please give me some advice how to solve this performance issue?

Thanks a lot in advance, Alwin

Edit: here is a screenshot of the loading-times when the problem exists: http://s3.postimg.org/fmc88zvg3/play_slow.png

here a screenshot of the loading-times on another pc with the same environment where there is no problem: http://s13.postimg.org/4x8q4a0nr/play_fast.png

Additionally I noticed, that while the request is executed, the cpu is constantly very busy (50% up to 90%)!

Upvotes: 2

Views: 594

Answers (1)

Alwin S
Alwin S

Reputation: 186

Now my project has been updated to the latest play version 2.3.7 and the problem is gone. Everything loads within less then one second as it is supposed to be.

This solves the problem for me, however I was not able to find out why this performance issues exist on one particular machine with play framework version 2.1.5

Upvotes: 1

Related Questions