Different execute queues with different thread priorities

We are running WebLogic 6.1, SP2 on Solaris 2.8 and I have a question related to the
use of Execute queues
I'm aware that the administration console servlets, and the rest of requests given
to the server run in separate execution queues each with their own pool of threads.
There is an <executequeue> element in the config.xml that allows you to change the
parameters of the default execute queue that most requests are handled in.
My question is is it possible to create new execute queues, each with a given number
of threads running at a different priority. Then one could assign a particular WAR
deployment to a queue and hence control the priority that certain requests run at
governed by the deployment that received the initial request.
Essentially the problem that I'm trying to address is that I have a JAR with MDBs
in it. I also have JARs with Entity and Session EJBs and WARs. They are all using
the same pool of threads to execute. I want to be able to throttle the MDBs as they
receive messages so they don't take over the machine and interfere with interactive
use. Now I can limit the number of MDBs in the MDB pool, but then if the machine
is not being used by users, then the machine resources are wasted only allowing one
MDB to be active at a time when there are a lot of messages in the queue.
What I want to be able to do is to have as many MDBs run as I can, up to a certain
limit, say 15 for example, but not to pull from the same thread pool/execute queue
as the requests for URLs in the WAR. Also I want the MDB threads to run at a much
lower priority and always give preference to interactive requests.
So interactive threads will always win and grab the processors if interactive use
is high, but if it's not, the MDBs can run instead.
Regs,
Paul

Hi,
I had a chat with BEA support about my issue. You can create multiple ExecuteQueues
and assign them to servlet definitions in WARs in the web.xml, and with an option
to the EJBC compiler, you can assign a particular class of EJB to an ExecuteQeueue.
For details see http://e-docs.bea.com/wls/docs61/perform/AppTuning.html#1106284
Presumably it's the thread of the initial request that counts, i.e. if a WAR calls
an EJB, then it's the thread in the execute queue of the WAR that will be used right
the way through the request, not that of the EJB being called, assuming they are
both deployed in the same WebLogic instance. If they were in different instances,
you would obviously have a thread from the WAR queue on one instance, and a thread
from the EJB queue on another instance.
If a plain Java command-line client connected directly to an EJB, then it would be
the thread from the ExecuteQueue of the EJB that would get used.
I've been told that MDBs always run in the default queue, so it seems that the way
for me to do what I want is just to create an ExecuteQueue, set the priority of the
threads in this queue to be higher than that of the default queue, and assign this
queue to my WARs. I can leave my EJBs running in the default queue.
Regs,
Paul
"Dimitri I. Rakitine" <[email protected]> wrote:
Don't know about 6.1 (One can find out very easily what the possible config
parameters
are by deploting
http://dima.dhs.org/misc/listMBeans.jsp and
http://dima.dhs.org/misc/showMBean.jsp
abd looking at the XXXConfig mbeans), but in 7.0 there are quite a few
things which
can be tuned in the executequeue config (and priority is one of them. also
interesting
is that it is possible to configure it to increase number of execute threads
when queue
length exceeds some specified threshold) :
QueueLength
Returns the maximum length of this queue.
ThreadPriority
Returns the priority of the threads associated with this queue.
ThreadCount
Returns the number of threads assigned to this queue.
QueueLengthThresholdPercent
Returns the threshold percent for length of this queue, set in QueueLength.
ThreadsIncrease
Returns the number of threads to grow when a queue is within QueueLengthThresholdPercent
of the set QueueLength.
ThreadsMaximum
Returns the maximum number of threads in the pool.
ThreadsMinimum
Returns the minimum number of threads in the pool.
Dimitri

Similar Messages

  • How can I use different calendars associated with different emails to see appointmen​ts separately​?

    I have 3 emails accounts on my Blackberry curve. I want to use different calendars for different type of reminders/appointments. How can I do that? In calendar I pressed menu key and then clicked on select calendar, choose one email address (email 1) then entered an alarm but now if I go to a different calendar associated with different email ( email 2), it also shows me that alarm which I entered in email 1 calendar. Thanks for help

    Don't have LV handy to open the old code, but I did read through the thread you referenced.  It sounds like the example configured 2 counters to create the variable-freq finite pulse train and configured a 3rd counter to count the # steps generated as verification.   That 3rd counter would be a problem for you as there is no internal timing signal connection between your 2 USB devices.  You would need to run a physical wire connection and change some of the config code to match.  Alternately, you could just delete all the code associated with the 3rd counter for now because it isn't strictly necessary.
    Further advice/questions:  Are you planning on a pure sine wave of frequency such that you oscillate with both positive and negative velocity (example: varying from -1000 to +1000 Hz clockwise)?  Or is there a nominal average frequency with a small sine wave superimposed (example: nominal of 1000 Hz clockwise, variation of +/- 50 Hz)?
    I *think* you may be dealing with more of a continuous pulsetrain situation, which is actually much simpler.  You would only need 1 counter/timer, though you would still perform the freq changes in a timed loop which uses the pulsetrain as its timing source.  You'd just need to keep track of your total elapsed time so you could figure out the right sinusoidal freq value at the moment you're ready to update it.
    Another subtlety to watch out for if you're oscillating about 0 velocity  -- don't try to create a frequency that is lower than the rate at which you need to update.  Also, with steppers you may have mechanical stability issues at low freqs like 10's to low 100's of Hz.    These kinds of things may need to be managed as special cases which force you to deviate from a "pure" sine wave.
    -Kevin P.

  • How do I set up different network locations with different wifi?

    I am having an issue setting up different network locations with different wifi profiles on each. I want to do this to enable fast switching of wireless networks. In my house I have two wireless networks, my own personal one and one that is created by using a wifi modem supplied by my company. If I use the company wifi network then I can get into all my work applications without having to enable VPN access separately. It is also faster. However, they also block many applications including sending email from my personal email account, dropbox, etc. So throughout the day I need to switch wireless networks back and forth.
    I was looking for a faster way to switch and thought I would try network locations. Was able to set up a new network location without issue. However it seems that whatever wireless preferences, changes, or wifi network order I put into my "Work" location it carries over to my other location which is the standard "Automatic".
    What I would like it to have my "Work" location only to be able to connect to my work wifi and my other network (Automatic) to just connect to my home wifi only. That way I can enable faster wifi switching and can even use my launcher program (Alfred) to provide shortcuts.
    Anyway to do this?
    Thanks in advance for any help or advice.

    Just thought I would bump this up in the conversation. Doing a further search I came across this discussion which is similar: Connecting to a wireless network via applescript?
    However, I tried to build the Automator application as discussed and cannot get it to work. Very much a novice at Applescript and Shell Script but have created customized Automator services before. All I get now is "Shell Script command encountered an error". No more detail. I copied and pasted the script as shown in the email thread. Is there any other line or command I need to place in front of it?
    Thanks again for any help

  • Me and my wife have two different iTunes accounts with different music, how can we syncronice this to our Ipad?

    Me and my wife have two different iTunes accounts with different music, how can we syncronice both our accounts to our Ipad?

    I'd like to know the same thing...

  • HT4528 Can I put the same information on two different i-phones with different numbers and different ID's?

    Can I put the same information on two different i-phones with different numbers and different ID's?

    Yes and no it really depends on what information you are putting on the devices.

  • Printing different/selective files with different copies

    Hi everyone,
    I've been working on finding a solution, on how to print different pdf files with different copies, without opening the pdf-files.
    Task:
    I have a folder, with 25 pdf files
    I want to make a php overview, of the folder
    At the end of each line/file - i would like to add a number for the copies
    In the end, I would like to simply press print - and every document ive added a number/copies to - are being printet...
    I guess I need to use PrintPDF - but does anyone know any pre-made program/function - that could handle the "copies" part...?
    I hope someone can help me out,
    Thanks
    Jan

    Well, i had hoped that the acrobat could open silent - eventhough they've removed that feature in the newer versions.
    Even though the program would open - if the amount of copies was added - and i just hat to press print - it would ease the job alot.

  • Can i share live documents in pages between different apple devices with different owners

    Can i share live documents in pages between different apple devices with different owners

    iTunes: How to share music between different ... - Apple - Support

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • HT4061 3GS stuck on connect to iTunes screen and keep getting error 29 at restore tried 5 different batteries all with different apn numbers what apn should my batterie have

    Keep getting error 29 I have tried 5 batteries now all with different apn numbers which is the correct batterie to use in my 3GS

    Error 20, 21, 23, 26, 28, 29, 34, 37
    These errors typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service

  • Page Footer : utilisation different page footers with different dimension

    In my document I use different page u2013footers sections, I know that CR takes as reserved space the minimum space of the greatest page-footer section, is there a possibility to have different page footer sections with different dimensions

    hi,
    "Clamp Page Footer" option can be used to remove extra space at the bottom of the report. This option can be used such that  each page  height varies.
    Regards,
    Vamsee

  • Many consumers on a queue, with different selctor, 2 in an HA configuration

    Hi all,
    I have a question about one queue and some (3) consumers. I have one queue and three consumers (clients) connected to the same queue. Let' s call the consumer: A, B, C. All of these with selectors, connecting a SunOne MQ 3.5 SP2, 4 brokers cluster. Let's define the nature of the A, B, C client consumers:
    Client A and B have the same selector and should work in a high availability configuration, so that if A fails, B will take its place, and viceversa: if A is running, B will not.
    On the same queue of A and B I have another consumer, we will call it "C", that has a selector that is different from A and B (we said A and B have the same selector). So only A and B have to be in failover-safe configuration. I have not configured any backup consumers, all are active. What will happen is this case in your opinion ? Will I be able to see working the A and B failover configuration and independently the C one simultaneosuly ? I mean A or B and C all of them running fine ?
    Thanks for your assistance.
    Stefano.

    A selector should not lock messages onto a queue. Is that what you are seeing? A selector should filter the messages from the destination, so that only a subset with the corresponding messages with the proper qualifiers would be visible to the consumer.
    in a network failover scenario for A or B, does C continue to receive ?C should not be impacted by A or B
    I mean if a consumer crashes on the network, and maybe it is not correctly unregistered from the brokers, am I sure that other consumer (with may be) a different selector (the C), continues to get its own messages ? The broker sends a ping to the clients to see who's still alive. So worst case scenario, is that if the consumer that crashed has still messages reserved in its buffer (according to the flow controls) when the broker detects the crash, it will free the messages to be consumed by other consumers.
    should I ensure a low flow limit to be sure that no lock situation can occur or just endure for a short time ?A flow limit that is too high would cause the messages to be consumer unevenly by the consumers, not lock the messages.
    Just a small detail here....
    The selector on a connection is set at the connection initialisation time. The selector's value is then transferred to the broker. The broker can then use the selectors to send messages to the consumers, according to their selectors that they have set. So in the flow limit "batch" a consumer will never have a message that he can't process because of its selector. So, if a flow limit is too high, the message processing will simply be slower, but making full usage of all the consumers connected to the brokers to load balance the message processing.
    HTH
    TE

  • How to run stand alone executables developed with different versions of LabView on the same system

    I am using LabVIEW 8.2 to develop a stand alone executable for a target system.  The target system already has a stand alone executable written by another vendor, using LabVIEW 7.1.  I installed the LV RunTime Engine for 8.2 which left the 7.1 engine intact (as it should).  The problem I am now having is that the drivers installed on the target system are incompatible with the NI-DMM vi's that I am using.  My concern is that if I replace the old drivers with the ones I am using on my development platform I may end up breaking the old software.  What would be an appropriate work around to ensure that the target system will be able to run both executables?  (FWIW the system will NOT be running both executables concurrently.)
    The target system is an embedded PXI card cage, running Windows XP, with a NI PXI-4070 DMM (among other instruments, however I have had not had this issue with the NI-DAQmx drivers).

    Hi Yerffejj,
    Thanks for sharing your issue with the community. I am struggling to see what you mean by "break the software." If you only have the two executables and LV Run-Time versions 8.2 & 7.1, then you just need to go to http://www.ni.com/support/ » Drivers and Updates » Search within Results: » enter "NI-DMM" » GO to get the DMM driver you need. To see the driver you were using on the development machine, just go to Measurement & Automation Explorer (MAX). The DMM driver should also automatically install DAQmx, NI-VISA, and NI-IVI, fyi.
    Best wishes to you, and please let us know if that does not solve your problem.
    Regards,
    Dan Richards
    Dan Richards
    Certified LabVIEW Developer

  • Is it possible to have different tabs print with different page setups.

    I would like to use specific page setup parameters (under the File menu) for printing from a particular web site, but those parameters do not work well for printing from other web sites. I would like to be able to specify different page setup parameters for each open tab. Is this possible?

    That might be possible via a GreaseMonkey user script, by setting the '''@include''' address to a specific domain.
    http://wiki.greasespot.net/User_script
    This is an example of a script I found a few years ago to bypass a fault in Firefox when printing the Courier font.
    <pre><nowiki>// ==UserScript==
    // @name Fix Courier Bug
    // @namespace http://userscripts.org
    // @description Replaces "Courier" with "Courier New" font
    // @author Dan
    // @include *
    // ==/UserScript==
    var elementList = document.getElementsByTagName('*');
    for (var i = elementList.length - 1; i >= 0; i--) {
    var elementItem = elementList[i];
    var ff = getComputedStyle(elementItem, '').fontFamily;
    var oldff=ff;
    ff = ff.replace('Courier New', '1234567890qwertyFONT');
    ff = ff.replace('Courier', 'Courier New');
    ff = ff.replace('1234567890qwertyFONT','Courier New');
    elementItem.style.fontFamily = ff; </nowiki></pre>
    Sorry, I can't help you with writing a script.

  • Different Identity Root with different Masters in one sun IM system

    Hi!
    We have the problem that we have to administer identities which have completely different sources and attributes. (internal identities with sap hr as master, external identities for system a with sql db as master, external identities for system b with flat text file as master, ...)
    has anybody an idea how we could implement this?
    br
    Martin

    Hello,
    there is a standard SAP solution: [Decentralized Warehouse Management (LE-IDW) |http://help.sap.com/saphelp_erp60_sp/helpdata/en/51/803c35975f0054e10000009b38f839/content.htm]
    for your scenario.
    Andrzej

  • Passing data to different internal tables with different columns from a comma delimited file

    Hi,
    I have a program wherein we upload a comma delimited file and based on the region( we have drop down in the selection screen to pick the region).  Based on the region, the data from the file is passed to internal table. For region A, we have 10 columns and for region B we have 9 columns.
    There is a split statement (split at comma) used to break the data into different columns.
    I need to add hard error messages if the no. of columns in the uploaded file are incorrect. For example, if the uploaded file is of type region A, then the uploaded file should be split into 10 columns. If the file contains lesser or more columns thenan error message should be added. Similar is the case with region B.
    I do not want to remove the existing split statement(existing code). Is there a way I can exactly pass the data into the internal table accurately? I have gone through some posts where in they have made use of the method cl_alv_table_create=>create_dynamic_table by passing the field catalog. But I cannot use this as I have two different internal tables to be populated based on the region. Appreciate help on this.
    Thanks,
    Pavan

    Hi Abhishek,
    I have no issues with the rows. I have a file with format like a1,b1,c1,d1,e1, the file should be uploaded and split at comma. So far its fine. After this, if the file is related to region A say Asia, then it should have 5 fields( as an example). So, all the 5 values a1,b1..e1 will be passed to 5 fields of itab1.
    I also have region B( say Europe)  whose file will have only 4 fields. So, file is of the form a2,b2,c2,d2. Again data is split at comma and passed to itab2.
    If some one loads file related to Asia and the file has only 4 fields  then the data would be incorrect. Similar is the case when someone tries to load Europe file with 5 fields related data. To avoid this, I want to validate the data uploaded. For this, I want to count the no. of fields (seperated by comma). If no. of fields is 5 then the file is related to Asia or if no. of fields is 4 then it is Europe file.
    Well, the no. of commas is nothing but no. of fields - 1. If the file is of the form a1,b1..e1 then I can say like if no. of commas = 4 then it is File Asia.But I am not sure how to write a code for this.Please advise.
    Thanks,
    Pavan

Maybe you are looking for

  • Connection dropping for a few minutes randomly, reoccuring issue for months now

    So my Too long, didn't read I'll just post now: Is there anyway to speak directly to an elevated support technician? I'm tired of having to spend half an hour each time I call just to get to someone who can tell me to do more than just reset the mode

  • The PLANNER_CODE specified is not a valid Planner in MTL_PLANNERS

    Hi All, I am trying to create an item using the API - inv_item_grp.create_item. We are giving one of the parameters as planner_code, but it gives an error as - The PLANNER_CODE specified is not a valid Planner in MTL_PLANNERS The same planner is bein

  • Does the new X1-01 support only MP3?

    Hello people! I'm currently an X6 16GB user and I'm planning to get the X1-01 as my second phone. I just like to know if the X1-01 supports MP3 only? I'm asking this because almost all my music files are in AAC format. Regardless, I'll just convert m

  • Flexible UI/ Collaboration Room API

    Hi Experts!!! can you please suggest for the solution of the below problem. I have a created room template which consists of room info, discussions,tasks, Calender, member roles, member lists..... using thie above room template i have created a room.

  • Applications and multilanguage

    I want to develop an application, which will be placed on a dutch language site. I was told the development of the application was best done while the browser was set to english, to prevent me from running into some language related bugs. As I unders