guys what do you think why kotlin spring boot taki...
# server
e
guys what do you think why kotlin spring boot taking to much to compile
c
Kotlin takes more time to compile than Java.
e
@Cies but it is taking 20 minutes it is to much you can check my stackoverflow post https://stackoverflow.com/questions/76811541/my-kotlin-spring-boot-project-loading-to-much-time-and-not-compilingi
you can give me your advice and tips
@Cies I created another sample project with kotlin spring boot it took 5 second to compile and show output
c
Fair enough. I had a similar problem with Kotlin being slow(er). We expected the kotlinx-html templates (using Kotlin's eDSL syntax) to be the issue. We got this hunch because we ported a lot of templates over and then it become significantly slow. This hunch was important as I found it nearly impossible to find out what's "keeping the compiler busy" (which files for example).
So, TLDR, not much of tips for you.
e
what do you think I can overcome this issue bro
I am digging last four hours
c
Whst the difference between the 5second project and the 20 minute project?
e
5 second project it is fresh and 20 minute project maybe a bit large I have 8gb free space in my ssd maybe thats issue do you think
c
could be. if you need swap especially
but if the 8gb is not filling up you should be fine
is the RAM filling up during compilation?
e
not bro it is working fine
Screenshot (570).png
look it is still compiling
building
c
you can put
kotlin.build.report.output=file
into your gradle.properties file to create a report file that will tell you what is taking how long
that screenshot shows thast it is already running for 10 minutes, it is no longer building
e
you mean gradle wrapper.properties
@christophsturm
what do you think it may cause for taking so much time
c
I answered in the SO question. It's working fine, there's no issues here.
e
thank you for your answer last question I cant check my localhost what is the problem do you think
c
What do you mean by "can't check your localhost"? What have you tried?
e
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2023-08-01T145904.192+02:00 ERROR 7392 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: Web server failed to start. Port 8090 was already in use. Action: Identify and stop the process that's listening on port 8090 or configure this application to listen on another port.
Screenshot (571).png
I stopped port and rerun project as well