Skip to content

Conversation

@kiroco12
Copy link
Contributor

@kiroco12 kiroco12 commented Jan 9, 2020

This PR pretend to fix scala-exercises/scala-exercises#713 .
The actual version of evaluator is crashing when is being used, this can be a bad memory management in the evaluation process. Still trying to discover the source of the problem.

@kiroco12 kiroco12 changed the title WIP memory leak bug fix WIP Memory leak bug fix Jan 9, 2020
lazy val port = (Option(System.getenv("PORT")) orElse
Option(System.getProperty("http.port"))).map(_.toInt).getOrElse(8080)

lazy val evaluator = new Evaluator[IO](15 seconds)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, why did we change from 20 seconds to 15 seconds?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, should be 20? Or 15 secs is fine?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

15 should be fine, but ideally, this should be on the application.conf file

@kiroco12 kiroco12 changed the title WIP Memory leak bug fix Memory leak bug fix Jan 10, 2020
@kiroco12 kiroco12 marked this pull request as ready for review January 10, 2020 10:22
@kiroco12 kiroco12 force-pushed the enrique-0-5-0-memory-fix branch from df08b13 to b9551ed Compare January 10, 2020 10:29
@raulraja raulraja temporarily deployed to scala-evalua-enrique-0-vit8bjo January 10, 2020 10:29 Inactive
@raulraja raulraja temporarily deployed to scala-evalua-enrique-0-vit8bjo January 10, 2020 10:30 Inactive
@kiroco12 kiroco12 merged commit 2840938 into master Jan 10, 2020
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

Successfully merging this pull request may close these issues.

evaluate endpoints are returning 503s.

4 participants