--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/72a44d7e-2595-4740-a5ea-bb77a8875c9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There's a note if you're creating it manually: https://www.playframework.com/documentation/2.5.x/JavaWS#Directly-creating-WSClientNote: If you create a WSClient manually then you must call client.close() to clean it up when you’ve finished with it. Each client creates its own thread pool. If you fail to close the client or if you create too many clients then you will run out of threads or file handles -— you’ll get errors like “Unable to create new native thread” or “too many open files” as the underlying resources are consumed.
On Wed, Mar 22, 2017 at 9:50 AM, Clément Poissonnier <clement.p...@gmail.com> wrote:
My API crash when it is used by many users, after a several minutes. This API uses other REST WS, using the WSClient of Play Framework.
The root cause is not provided (cf. https://groups.google.com/forum/#!topic/play-framework/GBYt71GAFFg), but I strongly suspect the WSClient to be the cause of the crash (that's the only akka related part of the application).
Anyway, is there any configuration to make sure that there is no memory leak while using WSClient? Any known issues about using WSClient when you have a lot of requests?
Thanks !
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Play Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framework+unsubscribe@googlegroups.com.
2017-03-22 16:47:15,637 - [[error]] - akka.actor.ActorSystemImpl - application-akka.actor.default-dispatcher-79 - Uncaught error from thread [application-akka.actor.default-dispatcher-77] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled - <configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" />
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/home1/log/application.log</file>
<encoder>
<pattern>%date - [%coloredLevel] - %logger - %thread - %message - %xException%n</pattern>
</encoder>
</appender>
<logger name="play" level="DEBUG" />
<logger name="application" level="DEBUG" />
<logger name="akka" level="DEBUG" />
<root level="DEBUG">
<appender-ref ref="FILE" />
</root>
</configuration>
2017-03-24 14:14:57,659 - [[error]] - akka.actor.ActorSystemImpl - application-akka.actor.default-dispatcher-104 - Uncaught error from thread [application-akka.actor.default-dispatcher-100] shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled -