Skip to content

Instantly share code, notes, and snippets.

@masanobuimai
Last active January 22, 2018 05:54
Show Gist options
  • Save masanobuimai/218f06b1a1ddab1f2d30eeeaaf3219aa to your computer and use it in GitHub Desktop.
Save masanobuimai/218f06b1a1ddab1f2d30eeeaaf3219aa to your computer and use it in GitHub Desktop.
スレッドが長時間動いてもスタックスレッドにならないようにするweblogicの設定
@Resource(mappedName = "ignoreStuckMES")
private ManagedExecutorService executorService
<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.9/weblogic-web-app.xsd">
<work-manager>
<name>ignoreStuckWM</name>
<ignore-stuck-threads>true</ignore-stuck-threads>
</work-manager>
<managed-executor-service>
<name>ignoreStuckMES</name>
<dispatch-policy>ignoreStuckWM</dispatch-policy>
</managed-executor-service>
</weblogic-web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment