WebLogic Max Threads

Hello!
In Tomcat we can specify the attributes of Connector in conf/server.xml like maxThreads, minSpareThreads,maxSpareThreads to control the Thread Pool.
How we can do this in Weblogic? Which is the default value of max threads?
thanks a lot
A.

Hi,
Which Version of WLS are u using? Because till WLS 8.1 We can use Execute Queue Concept to adjust that. We can use " -Dweblogic.ThreadPoolSize=100" JAVA_OPTIONS to do this in WLS8.
But from WLS 9.x onwards we have a new concept called as WorkManager (Which is even recommended). Using this u can assign the MaxThread Constraint not only to the Server ...even u can do it at Application level now.
Please refer to: http://jaysensharma.wordpress.com/workmanagers/ to know how to do it.
<font color=red>NOTE: </font> for any reason if you dont want to use WorkManager thing in your Domain then Please apply the Following JAVA_OPTIONS to use the Old (WLS8.1) Style of Thread Pooling Mechanism:
-Dweblogic.Use81StyleExecuteQueues=true
and
-Dweblogic.ThreadPoolSize=100
Thanks
Jay SenSharma

Similar Messages

  • Setting Webserver max-threads in Weblogic

    Hi all!
    I'm porting an application from Tomcat which uses max-threads to set up the number of maximum concurrent connections to the web server.
    I see Oracle Weblogic uses Workmanager instead, but what is the correct way to assign a WorkManager with a MaxThreadsConstraint to the Web server ? (or if it's not possible to the Web server to a Web application)
    Thanks
    Frank

    Assuming that you are porting the application to Weblogic server,if you want to set maximum concurrent connections on the weblogic server,you could configure a workmanager with MaxThreadConstraints.You can either create a Global Workmanager or a scoped work manager on the basis of your requirement.
    Please refer to the below link to understand the difference between both and how to go about configuring them:-
    http://docs.oracle.com/cd/E11035_01/wls100/config_wls/self_tuned.html
    http://docs.oracle.com/cd/E11035_01/wls100/config_wls/self_tuned.html#wp1064810
    Now,if you want say for example only 10 concurrent requests on any managed server instance at any point of time,you could configure a Global manager with "Max Threads Constraint" of 10 and target it to the specific instance.
    Hope this helps!
    -Sandeep

  • Weblogic work manager - Control min./max. threads & fair share

    I have an application which is running on Weblogic 10.3.2. I need to be able to control the number of threads the server assigns to this application. The application has 3 MDBs and for each of these MDBs, we need to assign a weight so that that the available threads are distributed among the 3 MDBs according to the weight.
    After going through the Weblogic documentation, it looks like I could create 3 work managers with the min. threads, max. threads and fair share. These work managers could be assigned to each of the MDBs. But, this does not control the total number of threads the server assigns to the application.
    Question:
    Is there a way we can create a work manager with the min. threads and max. threads and assign it to the whole application? This could be used to control the min./max. threads assigned to the application. Then we could define 3 work managers with the fair share and assign them to the individual MDBs.

    Hi ,
    You can create a work manager with min. threads and max. threads constraints defined. Check this:
    http://www.oracle.com/technetwork/articles/entarch/workload-management3-087769.html
    Thanks,
    Sharmela

  • Help needed with diagnosis of WebLogic server thread dump

     

    Sorry, my mistake - I was trying to search for "weblogic" before the dump file
    loaded fully.... I am not very familiar with VisiBroker and may be totally
    wrong, but my guess is it creates a thread for each connection/client. I would
    look for VisiBroker properties or settings that could limit the runaway creation
    of threads....
    Arunabh
    "Dimitri I. Rakitine" wrote:
    It is, preceded by lots and lots of CORBA (visibroker) threads. Is it
    possible that application code
    creates new ORBs more often than it should ?
    "Arunabh Hazarika" <[email protected]> wrote in message
    news:[email protected]...
    The attached file does not look like a WebLogic Server thread dump.....
    Arunabh
    Kapil Singh Pawar wrote:
    I am running a web application on WebLogic server 6.0 sp2 + rp1 (HP-UX).
    After
    I start loading the web application with more users I constantly get thejava.lang.OutOfMemoryError.
    I tried increasing the max_thread_proc kernel parameter to 2048 but thatdoes
    not seem to help much. Here is the error that I get on the WebLogicServer console.
    <Oct 7, 2002 5:00:27 PM GMT+02:00> <Error> <HTTP><[WebAppServletContext(1828590,i2)]
    Servlet failed with Exception
    java.lang.OutOfMemoryError: max threads limit being reached in VM
    at java.lang.Thread.start(Native Method)
    at netscape.ldap.LDAPConnThread.<init>(LDAPConnThread.java:112)
    atnetscape.ldap.LDAPConnection.getNewThread(LDAPConnection.java:1117)
    atnetscape.ldap.LDAPConnection.connect(LDAPConnection.java:1034)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:915)
    at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:759)
    atcom.i2.scm.LDAP.ScmLDAPDefaultAuthenticate.authenticate(ScmLDAPDefaultAuthen
    ticate.java:129)
    at scmldap.service(scmldap.java:452)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :213)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:1302)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :1676)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    I am posting the thread dump obtained at the OutOfMemoryError stage. Anyhelp
    in diagnosing the thread dump and possible fix for this error is highlyappreciated.
    For information sake, while the web application encountersOutOfMemoryError the
    example web apps and WebLogic console application work fine. So it looksto be
    a case of memory outage only for my custom application.
    Thanks
    Kapil Singh Pawar
    Name: thread_dump.txt
    thread_dump.txt Type: Plain Text (text/plain)
    Encoding: base64--
    Dimitri

  • WorkManager Max thread constraints not applied to MDB

    Hi
    We have a problem with the workmanager & the max threads constraint in weblogic 10.3. It doesn't seem to apply the constraint at all. The number of beans (message-driven) seems to stop at 16 (max threads is set to 25, applications based work-manager) but it threads the calls far beyond that limit until we run out of database connections. Or at least, that's what it seems to be doing. The server has been restarted and the application redeployed. We've also created a default workmanager with the same constraint but nothing changed. Changing the max-treads-constraint to 1 leads to the same result, 16 beans are created and it seems to create threads until we run out of database resources.
    Any ideas on what might be the cause of this ?
    Edit: just noticed that the @MessageDriven( name=".. wasn't set. Might that be the cause of this problem ? (not setting the name of the mdb in the @MessageDriven annotation)
    /Laban
    Edited by: Laban on 2009-jun-15 09:22
    Edited by: Laban on 2009-jun-15 09:47

    The problem is not that it doesn't create more then 16 threads, it's that it seems to be creating more like the 1000+ threads despite the fact that i've set the max-threads constraint in the application specific work-manager (for the specific ejb). It creates 16 ejb's though.
    1 - Set the MDB's dispatch-policy to reference a custom work manager (not the default work manager)I did: opened the application, selected the ejb containing the mdb. Configuration - workload, create new workmanager. Selected the global max-constraint workmanager that i've created that says that it should have a restriction of 25 threads. Then both a redeploy and a restart just to be sure.
    2 - Set the MDB's max-beans-free-pool to higher than 16 (default is something like 1000)Is this necessary if i set the max-threads constraint. If that's the case, what is the max-threads constraint actually doing ? And another thing, the max-beans-in-free-pool can't be set using the /console if i'm not mistaken which is a bit annoying.
    3 - Configure the custom work manager with max threads constraint of higher than 16.I've tried 25 and 1, nothing seems to change. And as i mentioned, i also tried with a default workmanager. It still created 16 ejb's and a WHOLE lot of threads.

  • Does Max threads in Viusal Admin overide Max concurrency in Channels...

    Hi All,
    Here are the settings for no of JDBC threads in our Java Visual Admin:
    AFWCall 10
    AFWRecv 5
    AFWRqst 10
    AFWSend 5
    JDBC_http://sap.com/xi/XI/SystemCall 5
    JDBC_http://sap.com/xi/XI/SystemRecv 5
    JDBC_http://sap.com/xi/XI/SystemRqst 5
    JDBC_http://sap.com/xi/XI/SystemSend 5
    Now the issue is that even if I put Max concurrency as 1 or 5 in JDBC adapter, I see 5 messages with status 'Delivering' at one time.
    So does that mean Max threads in Viusal Admin overide Max concurrency in Channels
    Pls advice...on this...
    Regards,
    XIer
    Edited by: XIer on May 14, 2008 2:16 AM

    Hi All,
    Here are the settings for no of JDBC threads in our Java Visual Admin:
    AFWCall 10
    AFWRecv 5
    AFWRqst 10
    AFWSend 5
    JDBC_http://sap.com/xi/XI/SystemCall 5
    JDBC_http://sap.com/xi/XI/SystemRecv 5
    JDBC_http://sap.com/xi/XI/SystemRqst 5
    JDBC_http://sap.com/xi/XI/SystemSend 5
    Now the issue is that even if I put Max concurrency as 1 or 5 in JDBC adapter, I see 5 messages with status 'Delivering' at one time.
    So does that mean Max threads in Viusal Admin overide Max concurrency in Channels
    Pls advice...on this...
    Regards,
    XIer
    Edited by: XIer on May 14, 2008 2:16 AM

  • Jcp.endpoint.main.max.threads exceeded error on jrun 4.0.1 server

    jcp.endpoint.main.max.threads exceeded error on jrun 4.0.1 server
    Posted: May 20, 2005 4:30 AM Reply
    hi,
    i am getting following error on my jrun server
    'too many concurrent requests,
    jcp.endpoint.main.max.threads exceeded'
    The application is running on jrun 4.0.1 server.
    i checked the log files but the load was too few on the day.
    I tried a lots of stuff on net but could not find the solution.
    pls help it out urgently
    manoj

    Lisa,
    I would check the online docs and/or the following HowTos for more details. They are not specific to JRun, but will give you the general process and list or archives and other things to copy and add to the classpath:
    http://technet.oracle.com:89/ubb/Forum2/HTML/006397.html
    http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html

  • How to find out Max threads count for Custom Work Manager??

    Hi All,
    How to find out Max threads count for Custom Work Manager??
    I have created 1 WM & targeted it to a cluster of 2 MS. Later I created Max thread Constraint = 300 & assigned that to my WM.
    I need to check how many threads maximum were created by my WM after lets say 1 completed day.
    The idea behind that is to understand if .. 300 is enough or need to increase the same way as we do it for JDBC datasource like.. Active connections Max count.. etc.
    Any Idea?
    regards,
    Tanmay

    Hi Ashish,
    Thanks for your response.
    The monitoring page that you are suggesting does not indicate the max thread count reached for a particular WM.
    For example, If I have Sample WM with 300 Max Thread Constraint, is there a way for me to check how many threads have been used out of 300??
    Any pointers in this regard are appreciated.
    Thanks,
    Tanmay

  • Core i5 'max thread' query

    Hi guys,
    I've just upgraded my MacBook Pro to a unibody Core i5 model. Loving the speed increase all round in Motion & FCP etc.
    Although it's a dual core (2.4), due to the hyper-threading on each core, it registers in Compressor and Shake as having 4 accessible processing threads.
    So my question, perhaps obvious as it may sound, is: Should I enable Shake & Compressor to use all 4 threads, or should I cap them to 2?
    Only reason I ask is because I'm rendering a project in Shake at the min with 'Max Thread' set to 4, yet it seems really slow. Perhaps it's an abnormally large project? Although it only contains 1 x ProRess 422LT video and one Quicktime SD file. The rest is a concoction of keying nodes and adjustment layers etc.
    I've included a screen grab of the project in question (not sure if it helps at all):
    http://i1.creativecow.net/u/134316/shakerenderscreen.jpg
    It's a bit of a messy project, but the original screen & lighting were quite poor, so I've had to work hard to get it to viewable state I am by no means, a shake-spert
    All help & advice appreciated.
    Thanks in advance.
    Chaz

    What I was told and seems to hold true for me is to use one instance for two processors, so for 4 processes (virtual or otherwise), use two instances...
    Patrick

  • Weblogic Kernel Thread Queue - Count

    Kernel thread count is configurable, the kernel thread queue can be configured
    to grow.
    The socket reader threads are a %age of the kernel thread queue. Does it mean
    that the number of socket reader threads (allocated as %age of the kernel threads)
    change as the kernel thread count changes dynamically ?
    thanks,
    Parag

    A [STUCK] thread is a WebLogic managed thread that WebLogic has decided has been busy for too long.  This might be quite normal for a background process or batch process.  It does not necessarily indicate a real problem.  The object allocation and subsequent GC is also normal behaviour.
    So is your thread really stuck or is it just running for longer than WebLogic is configured to expect?  You can use WebLogic thread pool configurations and the CommonJ API to avoid threads being marked as [STUCK] by declaring that they are long running (and assuming you're using a new enough version of WebLogic that honours this - it used to still mark them as [STUCK]).
    If your thread is truly stuck it is more likely to be to do with your code than an object allocation / GC issue.

  • What is the Default WorkManager Max-Threads-Constraint default value?

    Hello,
    I know that when I create a new WorkManager the default value for the Max-Threads-Constraint is -1.
    But I wonder if this is the case also for the default value of the Default Work Manager?
    I would assume that the Default WorkManager has other values set. Couldn't find any reference to that.
    Thank you in advance.

    It is called as Self-Tuning Work Manager.
    It means, it doesnt have a specific value. It varies according to the demand in a specific time.
    Kinds,
    Gabriel Abelha

  • Scalability test and weblogic concurrent thread ability?

    Hi,every one
    Now I deployed .war into weblogic 10.3. I added some logs in the function dopost() begin and end position in .war applicaion.
    Then I began to send request from hundreds of HTTP C client at the same time to application sever to do the scalability test.
    From the .war logs. I found even if HTTP C client requests are sent at the same time, dopost() function start times are quite different.
    Some dopost() is executed delay tens of seconds.
    So the circumstances is normal? Or is there any problem in the concurrent process of weblogic server?
    thanks.

    Another measurement point that was captured is the max number of threads (LWPs) on the server went up to 196 (then dropped to 179 and stabalized there)
    Any help is definitely appreciated.

  • Weblogic: ONE thread cause CPU soaring(50%+),NEVER die,why?

    hi,
    My environment is as follows:
    APPSERVER: weblogic 8.1.4 sp4
    JDK: IBM jdk1.4
    OS: AIX 5.3
    DB: oracle
    our app model is as follows:
    user | server | cluster
    user1 \************/server1
    user2 -- proxy server -- server2
    user3 / ***********\server3
    (https) (http)
    the proxy server and server1/2/3 are all in one domain(server1/2/3 one cluster),
    once we restart the proxy server,everything looks fine,but 1 or 2 days
    later,the CPU start soaring,from 10~20% to 50%(proxy server cpu usage),
    however,the server1/2/3 are all healty(cpu not high),if we restart server1/2/3
    the problem still exist, and after some time,the cpu would be up to 90%+,then
    we MUST restart the proxy server,then everything ok again.
    Now the cpu is 50%+,we checked the proxy server's active threads,and found ONE
    thread whose id is 252 continue exist and the request never change during one day.
    the thread state is :
    252 13262 weblogic.t3.srvr.SSLListenThread$1@2778a170 n/a n/a
    then we get the thread dump by kill -3,we get this info about this thread:
    at 0xD3764B18 in
    "ExecuteThread: '252' for queue: 'weblogic.kernel.Default'" (TID:0x300C2168, sys_thread_t:0x7E6F08A8, state:R, native ID:0x10506) prio=5
    at com.rsa.jsafe.JCMPInt.addVectors(Unknown Source)
    at com.rsa.jsafe.JCMPInt.addInPlace(Unknown Source)
    at com.rsa.jsafe.JCMPInt.subtractSigned(Unknown Source)
    at com.rsa.jsafe.JCMPInt.modInvertSchroeppel(Unknown Source)
    at com.rsa.jsafe.JCMPInt.modInvert(Unknown Source)
    at com.rsa.jsafe.JA_RSA.generateBlindingValues(Unknown Source)
    at com.rsa.jsafe.JA_RSA.generateBlindingValuesBuffer(Unknown Source)
    at com.rsa.jsafe.JA_RSAPrivateKey.getKeyDataBlind(Unknown Source)
    at com.rsa.jsafe.JA_RSAPrivateKey.getKeyData(Unknown Source)
    at com.rsa.jsafe.JA_KeyData.getKeyData(Unknown Source)
    at com.rsa.jsafe.JA_RSA.generalDecryptInit(Unknown Source)
    at com.rsa.jsafe.JA_RSA.decryptInit(Unknown Source)
    at com.rsa.jsafe.JG_AsymmetricCipher.doDecryptInit(Unknown Source)
    at com.rsa.jsafe.JSAFE_AsymmetricCipher.decryptInit(Unknown Source)
    at com.rsa.jsafe.JSAFE_AsymmetricCipher.decryptInit(Unknown Source)
    at com.certicom.tls.provider.cipher.JSAFE_RSA.init(Unknown Source)
    at com.certicom.tls.record.handshake.ServerStateSentHelloDone.handle(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
    at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
    at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
    at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
    at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
    at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
    at javax.net.ssl.impl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.bea.sslplus.CerticomSSLContext.forceHandshakeOnAcceptedSocket(Unknown Source)
    at weblogic.security.utils.SSLContextWrapper.forceHandshakeOnAcceptedSocket(SSLContextWrapper.java(Compiled Code))
    at weblogic.t3.srvr.SSLListenThread$1.execute(SSLListenThread.java(Compiled Code))
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java(Compiled Code))
    we start google,but nothing found about this problem.The only way to solve this problem now is to restart
    the proxy server,can anyone help me to solve this problem? any response is appreciated!!!
    cowrie / 2009-6-3

    why,please help me ....

  • Weblogic's thread management

    Hi, I'm thinking on some issues related to Weblogic thread management.
    Suppose I start a thread (either on an startup class or from a servlet) that
    I want to perform some background work (I have readed it's out of the specs
    to start transactions from a thread launched in a servlet... yea I know it
    ;) ) well the problem is. How do I know when the Weblogic server is being
    shutting down?.
    I have seen on Weblogic's console that when an script like the
    ./stopWeblogic.sh one is executed it calls a Weblogic method in order to do
    that... then the Weblogic starts to destroy servlets, undeploys EJBs and, at
    the end a message like "Waiting 20 seconds for threads to stop" or something
    like that is written to the console.
    The question is, how does Weblogic notify the running threads that they
    should stop?, will it work for a thread launched in a startup class or from
    a servlet?, does the thread has to extend from an special Weblogic class?.
    If this isn't possible, would it work overriding the destroy() method of the
    servlet to call a method of the thread that stops it properly?. I know it
    will be called anytime the webapp is redeployed or if the servlet is hot
    reloaded, but it's fine to me.
    Thanks in advance, regards
    Ignacio.

    Hi, I'm thinking on some issues related to Weblogic thread management.
    Suppose I start a thread (either on an startup class or from a servlet) that
    I want to perform some background work (I have readed it's out of the specs
    to start transactions from a thread launched in a servlet... yea I know it
    ;) ) well the problem is. How do I know when the Weblogic server is being
    shutting down?.
    I have seen on Weblogic's console that when an script like the
    ./stopWeblogic.sh one is executed it calls a Weblogic method in order to do
    that... then the Weblogic starts to destroy servlets, undeploys EJBs and, at
    the end a message like "Waiting 20 seconds for threads to stop" or something
    like that is written to the console.
    The question is, how does Weblogic notify the running threads that they
    should stop?, will it work for a thread launched in a startup class or from
    a servlet?, does the thread has to extend from an special Weblogic class?.
    If this isn't possible, would it work overriding the destroy() method of the
    servlet to call a method of the thread that stops it properly?. I know it
    will be called anytime the webapp is redeployed or if the servlet is hot
    reloaded, but it's fine to me.
    Thanks in advance, regards
    Ignacio.

  • How to increase the Weblogic Session Threads

    Hi Everyone,
    We have been using replicated-if-clustered property of session-descriptor element of weblogic.xml and things were smooth and fine until our application didnt grow. Now there is a heavy traffic on the application and we want to increase the session replication thread count to more then 2 servers. Does anyone have any idea how to go about it? I dont see a way of defining how many servers the session should be replicated. Right now it does on the 2 servers which forms the cluster. Is there really any difference between replicated and replicated-if-clustered property?
    Thanks a Lot in Advance for answering my queries.
    Yogendra N Joshi.

    user13017505 wrote:
    Hi Everyone,
    We have been using replicated-if-clustered property of session-descriptor element of weblogic.xml and things were smooth and fine until our application didnt grow. Now there is a heavy traffic on the application and we want to increase the session replication thread count to more then 2 servers. Does anyone have any idea how to go about it? I dont see a way of defining how many servers the session should be replicated. Right now it does on the 2 servers which forms the cluster. Is there really any difference between replicated and replicated-if-clustered property?
    Thanks a Lot in Advance for answering my queries.
    Yogendra N Joshi.To start with persistent store/session replication options:
    •memory—Disables persistent session storage.
    •replicated—Same as memory, but session data is replicated across the clustered servers.(No Persistent store)
    •replicated_if_clustered—If the Web application is deployed on a clustered server, the in-effect persistent-store-type will be replicated. Otherwise, memory is the default.
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html
    Regarding increasing traffic on the servers:
    If there is heavy traffic on the servers and both servers in a cluster are utilized fully, you can add more managed servers to the cluster and load balance the requests amongst them equally.
    The sessions will be replicated across all the servers in a cluster as you have session replication enabled already.
    But for increasing load/traffic we will have to analyze the capacity of the present setup and then add more servers to the cluster as required.
    Regards,
    Swapna

Maybe you are looking for

  • Convert .avi to .mov for free?

    I have a new iMac running Lion and i am looking for a easy and preferrably free way to convert .avi files to .mov.  I know there are tons, but what is the best one?

  • Thin white bars appearing above images

    What are the thin white bars appearing above images I have placed in my pages? Is there a way to avoid/remove these: example: http://homepage.mac.com/toddlich/Sites/RESOURCES/SHORT%20STORIES/DB87D5F5-4239-4 9D0-9B54-735351640A29.html

  • Reading Text longer than 132 Characters including Special characters

    Hello Seniors, Could you please give me some information about the following Function Modules also? 'SOTR_STRING_CREATE_CONCEPT' 'LXE_OBJ_TEXT_PAIR_READ_SOTR' 'SOTR_STRING_READ_TEXT_WITH_KEY' I was able to create a concept by using the Function modul

  • Service on two different RAC environment

    I am looking for a way to create a service which can be supported from two different RAC environments. One service for two different RAC databases. Is it possible. If yes, then how.

  • Bounding box around Text Illustrator CS2 12 Windows XP

    My computer crashed while using Adobe Illustrator and when rebooting I have lost the bounding box when typing text. Now I am unable to resize my text. Any suggestions on how to get the bounding box back? Clicking the direct selection tool does nothin