WorkManager and ignore-stuck-thread setting

In WL 10.3, using an application scoped work manager with the following .war deployment descriptors:
web.xml:
<resource-ref>
<res-ref-name>wm/WorkManagerABC</res-ref-name>
<res-type>commonj.work.WorkManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
weblogic.xml:
<work-manager>
<name>WorkManagerABC</name>
<fair-share-request-class>
<name>abcClass</name>
<fair-share>1000</fair-share>
</fair-share-request-class>
<ignore-stuck-threads>true</ignore-stuck-threads>
<min-threads-constraint>
<name>MinThreadsCountTen</name>
<count>10</count>
</min-threads-constraint>
<max-threads-constraint>
<name>MaxThreadsCountTwenty</name>
<count>20</count>
</max-threads-constraint>
</work-manager>
<wl-dispatch-policy>WorkManagerABC</wl-dispatch-policy>
( This particular app is meant to be a socket listener using javax.nio ). This results in WL seeing "stuck threads" after the default 600 seconds. In our clusters, our clusters are configured that 3 stuck threads cause a server restart by nm.
So I created the same objects at the domain level ( workmanager, min/max/fair-share ), with the workmanager set to ignore stuck threads.
web.xml
<resource-ref>
<res-ref-name>WorkManagerABC</res-ref-name>
<res-type>commonj.work.WorkManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
weblogic.xml
<weblogic-version>10.3</weblogic-version>
<!-- no work manager defined -->
<wl-dispatch-policy>WorkManagerEni</wl-dispatch-policy>
The app deploys and simple web pages are processed within the WorkManagerABC wm. Although WL still marks 4 threads as hoggers, none of them are stuck. So no restart, and the server Health stays OK.
So a workManager at the server level obeys the "Ignore Stuck Threads" while an application scoped workmanager does not.

I wasn't too disappointed that the application-scoped workmanager didn't obey the stuck threads; I'd rather have the work manager configurable at the server console level without having to involve customized deployment plans to override hard-coded thread restraint levels in the app's deployment descriptors.
I think having it defined within the server console will make it simpler to manage the different performances in production versus qa, etc., than having it defined within the app and then adjusting it in each environment.

Similar Messages

  • WorkManager entry for max-stuck-thread-time doesnot override the default

    Hi All,
    I am using WLS 10.0 and have configured the following workmanager entry in the config.xml:
    <work-manager>
    <name>myworkmanager</name>
    <target>AdminServer</target>
    <ignore-stuck-threads>false</ignore-stuck-threads>
    <work-manager-shutdown-trigger>
    <max-stuck-thread-time>60</max-stuck-thread-time>
    <stuck-thread-count>5</stuck-thread-count>
    </work-manager-shutdown-trigger>
    </work-manager>
    I want that the <BEA-000337> message should be logged after the work-manager-shutdown-trigger's max-stuck-thread-time exceeds (after 60 seconds).
    If more than 5 threads of applications which are dispatched to this workmanager becomes stuck for more than 60 sec. an additional request to this applications are responded with http code 503.
    However, no <BEA-000337> message is written in to the server’s log file.
    This message is only written to the log file, when the stuck-thread-max-time (e.g. set to 150 secs) element of the servers configuration is exceeded.
    Sample:
    ####<09.01.2009 13:31:58 IST> <Error> <WebLogicServer> <appcashd>
    <AdminServerrefs1m1vm1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
    (self-tuning)'> <<WLS Kernel>> <> <> <1231504318065>
    <BEA-000337> <[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "151" seconds working on the request "Http Request: /testservlet/sleep", which is more than the configured time (StuckThreadMaxTime) of "150" seconds.
    Stack trace:
    java.lang.Thread.sleep(Native Method)
    at.compny.testservlet.SleepServlet.doGet(SleepServlet.java:61)
    I believe that the <BEA-000337> message should already be logged after the work-manager-shutdown-trigger's max-stuck-thread-time exceeds (ergo after 60 seconds).
    I would like to know if this is the default behavior or we are encountering a bug.
    Any pointers would be appreciated

    Hi,
    what I was thinking about is that the work manager indeed works since the next request after the specifies number of requests is returned with a 503 error.
    This makes me believe that it works !
    However, the behavior of the server regarding the <stuck-thread-max-time> is not overridden.
    I have specified this value as 60 seconds in the work manager.
    However, this message is only written to the log file, when the stuck-thread-max-time (e.g. set to 150 secs) element of the servers configuration is exceeded.
    Any Idea if this is the default behavior or if I am encountering a bug

  • Page stuck while load and leads to stuck thread

    Hi
    I am facing an issue from a long time.
    When i run the page of my application, when it opens for first time it get stuck and get loading and take very much time and after that it leads to stuck thread issue. All the component of my page opens but there is a table which gets value from OIM APIs also loads for the fiirst time. As in coding i have done it will pass null value to the table and wont fetch data for the first time. it will only fetch when value will be passed in a text box and submit was hit.
    So my page gets hanged or loading in the table section everytime when it loads. for that i have to login in weblogic server, run the workmanager, forcefully shut down the server instance and run the page again. But sometime that doesnt work too.
    Please help its a bug trouble for me and creating a huge problem.
    Thanks
    Sudeep

    I'm not sure I understand your issue - but if you want to delay the fetching of information into the table until you actually have a value to pass to it see:
    http://blogs.oracle.com/shay/2010/08/delay_method_execution_when_us.html

  • Can someone help me change the line width of my numbers table, its not set to thin or none and its stuck on .25. its a spreadsheet i imported from excel.

    Can someone help me change the line width of my numbers table, its not set to thin or none and its stuck on pt25. its a spreadsheet i imported from excel.

    MR,
    Apparently the import wasn't a good one.
    The best option at this point might be to start a new table. Insert a new Table, Copy the old table cell range, select the first cell in the new table and Edit > Paste and Match Style. This will throw out all the old formatting. A bit of work, but a nice clean start.
    Jerry

  • HT201210 I downloaded iOS 7.0 on my 4s and it makes you set your phone up. I am doing that now, but am stuck at the "Rescue Email" I put in an email and hit Next and it does nothing! HELP

    I downloaded iOS 7.0 and it makes you set your phone up. I am doing that now, but am stuck at the "Rescue Email" I put in an email and hit Next and it does nothing! HELP

    I turned my phone off and turned it back on, I went through the whole process again of setting my phone up and it worked

  • Detecting and Pinning a stuck thread

    While using WLS 7.0 there exists a problem where some execute threads get stuck (i.e don't respond) and do not release the associated resources such as connections, files etc. How does one detect such a stuck thread ? Also, how can we go about pinning stuck threads?

    "Haziq Pathan" <[email protected]> wrote in message news:3ffbfad4$[email protected]..
    While using WLS 7.0 there exists a problem where some execute threads
    get stuck (i.e don't respond) and do not release the associated resources
    such as connections, files etc. How does one detect such a stuck thread ?Basically there is a server health monitor thread that periodically checks
    threads and reports those who started execution and didn't finish it within
    configured time.
    Also, how can we go about pinning stuck threads?The best thing to do is to get a thread dump and see where the thread stuck,
    and deliver a fix for the problem.
    Hope this helps.
    Regards,
    Slava Imeshev

  • Stuck Thread causing heap to grow steeply and resulting in crash

    Hi,
    We have an ADF application deployed in weblogic 10.3.2.
    We have few PL/SQL's and SQL's which are complex and take around 5 minutes of time to complete at times. We also have the script running in database to kill long running queries so that it helps us to get rid of weblogic stuck threads to some extent.
    Now when ever there is an SQL running for long time , we see a stuck thread casuing heap to grow very fast and casuing server to crash.
    I know after a particular point of idle time thread is marked as stuck , but why does it filling the heap space - does stuck threads always causes heap to grow or is it just my specific case
    any pointers on how to debug this issue to find the root cause.
    Thanks,
    Naresh

    I think this setup needs profiling. To start-off, i would recommend collecting heap dump or jrf (if jrockit), instructions for them are available on net, as it varies with jvm versions and vendors.
    Post that you should look for the thread which you believe is stuck and a possible cause using OQL in memory analyzer tool over the heap dumps.
    Conceptually, till the time the objects (or data if you say) is being referenced, JVM cannot garbage collect it. So, I would say we need to figure out what are the contents of the heap, before coming to a conclusion that the threads which are stuck is causing the issue. Why I say so it that, I have seen in past that many-a-times, we suspect stuck threads to be an issue but it turns out to be that we are "knocking the wrong door".
    Long running threads (aka STUCK thread in WLS), will normally cause memory issues, if the references/task that its trying to perform has a large local data (i.e. data with the thread scope), so it the time the thread is not released the data is alive (irrespective of the fact that the data is used or not).
    Now, my first thought of this situation is that stuck thread is not an issue, considering that you are not able to replicate this in UAT post simulating stuck threads. Thus please collect some heap dumps (may be when you start observing memory increase) and then review them comparatively, I think that should be helpful.
    AJ

  • HT3180 stuck on setting time and date

    the screen is stuck oni setting date and time

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • HT5438 Stuck on setting date and time

    Apple TV stuck on setting date and time

    I read in another discussion that you can turn off your routers firewall temporarily and it will work. I did that. I turned off my apple tv (3rd gen) and then I turned off my routers firewall. Then I turned my apple tv back on and made sure the time setting was set to automatic. Then it let me set my iTunes login and everything was fine. I turned my firewall back on and it all works now. Try that. I'm not saying it will work for everyone, but it worked in my case.

  • HT1595 My apple tv stuck at setting date and time. Also when connecting yo network doesn't ask for network password

    My apple tv stuck at setting date and time. Also when connecting yo network doesn't ask for network password

    I just went through this last night. (Aug 15, 2013)
    What I did to get back up and running. This is not the first time I have lost the network connection with my Apple TV 3
    Products effected: Apple TV 3 and Home Sharing (My Apple TV 1 was not effected)
    Power down (unplug) the Apple TV and power down your router ( in my case, it is a FIOS router, flipping the on/off works fine).
    Power both items back up.
    At this point, I usually can reenter my Apple ID and PW. and reconnect Home Sharing.  But for some reason I was unable to reconnect last night but was able to get it reconnected in the morning. I was jut to tired to deal with it last night.
    A new issue that is was able to fix after a good nights sleep.
    I did figure out, (after trying to reenter my ID and PW many times and having it tell me that my ID and PW was wrong), that when using the Apple TV on screen keypad to type in the user ID. DO NOT use the ".com" keypad button. Instead type out each character for .com. ( or what ever ending you use for your ID account.)
    Once I typed out my full ID and PW. everything is back to 100%

  • My apple TV stuck on setting date and time.

    Tried to fix it with all the options you gave me on forum. Turned off, turned on, changed router, changed router settings and security level, even changed the ATV. Nothing works. Last week everything was fine. What should I do?

    Stuck on Setting Date and Time

  • HT1600 I have an apple tv  about two years old. Bought for a present and they never took it. I tried to hook it up cut it get stuck on setting time and date. Any help?

    I have an apple tv  about two years old. Bought for a present and they never took it. I tried to hook it up cut it get stuck on setting time and date. Any help?

    If you can view the main home screen, try selecting "settings" on the far right, then choose recent at the bottom. If not, try just unplugging power for a few minutes, then plug in and try again. Keep in mind you'll need a wireless connection and there may be several updates. Hope this helps-

  • After a power outage Apple TV can't find date and time - just keeps spinning on that screen. Tried powering off Apple TV, the computer, and the router. Tried to restart Apple TV. Tried to restore Apple TV, but it got stuck again setting time/date.

    After a power outage Apple TV can't find date and time - just keeps spinning on that screen. Tried powering off Apple TV, the computer, and the router. Tried to restart Apple TV. Tried to restore Apple TV, but it got stuck again setting time/date.

    Welcome to the Apple Community.
    Along with the things you have tried, some have had success setting the location to the US.

  • How Stuck Thread Timeout and JTA timeout values are related.

    Hi All,
    Can some one help me in understanding the the relation between Stuck Thread Time out and JTA timeout values.
    Thanks,
    Vardhan

    Hi,
    Both are totally different in this case.
    Stuck thread timeout is specific to weblogic monitoring guide line which inform you how long every thread is in process continuously by default it would 600 sec if any thread is taken more than 600 sec to finish off its work then weblogic will throw an error message that specific thread took more than 600 seconds.
    Note: Mostly of the time these stuck thread are not really an issue
    Where are JTA timeout on global side is specific to your every transaction either from EJB or JMS or JDBC transaction.
    This timeout will rule on every individual.
    Hope you got address your query.
    Regards,
    Kal

  • Setting phone to only join known wifi networks and ignore all others...

    Is it possible to set your phone to only join known wifi networks and ignore unknown wifi networks?
    Being spammed with wifi connection quieries is really annoying. I live in Tokyo and I get about 15 messages in the 10 minutes walk from my place to the station.
    I can turn off wifi completely, but then I have to turn it on and off every time I go into or out of a location with a wifi network that I wish to use.
    Is it possible to set up my phone to automatically connect to wifi networks that connected to previously, yet ignore any networks which includes not harassing me by asking me if I wished to join the network? (If I wanted to join any particular network, I would ask the owner myself without the need for being prompted).

    It is off. Unfortunately, all that function seems to do is stop my phone from asking me to join a "known" network. I could be wrong though as it's been a very long while since I tried turing it on.
    Regardless of the setting of that function, I still get bombarded by messages asking me if I want to join unknown networks.

Maybe you are looking for