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

Memory leak bug fix #79

Merged
merged 3 commits into from
Jan 10, 2020
Merged

Memory leak bug fix #79

merged 3 commits into from
Jan 10, 2020

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
@@ -116,12 +113,14 @@ object EvaluatorServer extends IOApp {
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
@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.
3 participants