Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with large project very long response times on mod==DEV on Windows #1492

Open
jacol84 opened this issue Aug 12, 2024 · 1 comment
Open

Comments

@jacol84
Copy link
Contributor

jacol84 commented Aug 12, 2024

Play Version 1.8.0 --> JDK 17

problem with large project very long response times on production version on windows

the response time of one request slows down from 5ms to 150ms on linux and on windows from 8ms to 5.5sec

To Reproduce
Steps to reproduce the behavior:

get this project https://github.com/jacol84/bigPlay.git and skip to 5 step

  1. create new project in plya
    play new
  2. change Appliaction.java index method
    public static void index() {
        renderText("aaaa");
    }
  1. create 50k file.java in ./project/app/com/mik
    my example
package com.mik;
    
public class Class1 {
    public static void main(String[] args) {
        System.out.println("Hello from Class1");
    }
}
  1. run on windows / or linux
    play run
  2. send a request and measure the response time

this project is my github https://github.com/jacol84/bigPlay.git

this result respon :
this result on DEV working
on windows (~5,5sek)
image
on linux(~150ms)
image
a project without additional files(~5ms)
image

Expected behavior
I would expect a response of around 10ms

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10 and 11
  • JDK 17
  • i use WSL to linux test

Additional context
the problematic method is play.Play#detectChanges when measuring

@xabolcs
Copy link
Contributor

xabolcs commented Sep 3, 2024

This example project may be related: https://github.com/asolntsev/big-app.play/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants