Why do the number of active JMS connections increase?

<strong>Problem</strong>
- Number of active JMS connections and current JMS messages increases until the Weblogic instances crash with an OutOfMemory exception
<strong>Setup</strong>
- Weblogic v9.2.3, Cluster with 4 Nodes
- A JMS Message is sent from a MDB in Weblogic to a distributed queue which has a member on each of the 4 Weblogic nodes. The session is created as follows session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE), the message delivery mode is set programmatically to persistent and the delivery mode override of the queue setup is set to persistent too
- Standalone JMS client processes: each one is attached to <strong>all</strong> 4 nodes. Each one uses a unique JMS message selector so that we have more than one queue consumer for one queue but every message is exactly dedicated to one queue consumer. We us weblogic.jar for the clients.
- Use of Weblogic auto reconnect feature. JMS client code:
Connection connection = this.connectionFactory.createQueueConnection();
final WLConnection wlconnection = (WLConnection)connection;
wlconnection.setReconnectPolicy(JMSConstants.RECONNECT_POLICY_ALL);
wlconnection.setTotalReconnectPeriodMillis(-1);
wlconnection.setReconnectBlockingMillis(-1);
<strong>Remarks and Questions</strong>
- There are no pending JMS messages which is good
- In our setup, each JMS client is connected to all 4 nodes as the messages are not distributed to all nodes: if a message is put to Queue A but the client is only connected to Queue B, the message is NOT transfered from Queue A to Queue B. We set the parameter "Forward Delay" to 5 seconds with no effects. Is this the normal behavior?
- Not all JMS clients are visible in the Weblogic console under JMS Services -&gt; JMS Servers -&gt; [Server] -&gt; Monitoring -&gt; Active Connections. Which one are visible? Which one are not visible? There are also clients where the number of connections is not zero but stays constant; we know that as several independent clients on different hosts are started and the IP adress is visible in the Weblogic console. Why....?
- What reasons can lead to increasing connections? Is this due to client or server problems? Do we have to acknowledge the message in the onMessage(Message) method of the client JMS consumer? So far as I know, we don't have to.
- Are the increasing number of current messages due to the increasing number of JMS connections?
- May the RECONNECT_POLICY_ALL policy produce this problem?
Any hint is appreciated.
Peter
Edited by: pkeller on 23.10.2008 17:08

To answer the question about the forwarding of messages from one queue to another myself: As mentioned at http://forums.bea.com/thread.jspa?threadID=400000611, the forwarding for queues does only work if all queue consumers are attached to the same queue. This means that our setup is OK.
But the main question is still unanswered: why do the number of active JMS connections increase? I forgot to mention that
- all messages arrive at the clients and that no exceptions are visible in the log
- if you kill the client, the connections are still visible in the Weblogic console!?
Please help as this problem is very urgent.
Peter
Edited by: pkeller on 24.10.2008 09:06
Edited by: pkeller on 24.10.2008 09:10

Similar Messages

  • How to check the number of active jdbc connections

    hi all,
    i'm creating a connection from Java using java.sql.Connection class and with oracle thin drivers. connection is creating properly.
    now, i want to know how many connections are created, through the sql query. i forget the query.
    its helpful for me.
    regards
    pavan.

    Your requirements are a bit vague - the only place to accurately determine the number of connections is in Oracle using the V$SESSION virtual view.
    It can tell you the number of session (active or idle) made from the platform running that Java code. It can also tell you basic session information like the current SQL (if active) that is being executed.
    There are numerous other V$ views that can be used in conjunction to build a very accurate picture of what the session is doing and what resources it is using.
    Details are in the Oracle® Database Reference manual. On-line copies of all manuals available via http://tahiti.oracle.com

  • I can't cap the number of active downloads (via persistent-connection-to-server cap) AND still be able to load pages hosted on the same server, *because*...?

    I'm aware that, by setting "network.http.max-persistent-connections-per-server" (in about:config) to 1, I'm effectively preventing myself from being able to download a single file from a server AND load a page hosted on the same server simultaneously.
    My question is, why can't Firefox tell the difference between a file download and loading a website?
    The reason I ask is that I feel I should be able to create a download queue and have my browser download one file at a time (to minimize the impact downloads have on available bandwidth and my own downstream, while allowing me to set up a long chain of sequential downloads), YET still be able to browse websites hosted on the same server.
    I do not want to use an add-on or a separate download manager to solve this problem. I think that's stupid. Firefox should be able to tell the difference between a request to load an html file and a request to download any other type of file.
    After all, I can already configure Firefox's file handling behavior for each type separately (I have, for example, previously set PDF files to prompt me to "Save as...", in order to prevent exploits from triggering when I click on a link, by preventing Firefox from opening them in-browser).
    There is no reason I shouldn't be able to do what I have said I would like to. I should not HAVE to limit the number of max server connections in order to ACHIEVE filling a simple download queue with a 1-file-at-a-time limit.

    In your Keychain under 'login' delete the VeriSign certificates and then quit and restart all browsers/itunes/app store.
    http://apple.stackexchange.com/questions/180570/invalid-certificate-after-securi ty-update-2015-004-in-mavericks

  • Getting the number of active connections in a connection Pool

    Hi,
    I have an application deployed on jboss. DB used is db2. For monitoring purpose i need to get the number of active and idle connections at any point of time. I am trying to use commons-dbcp jar to get this data using BasicDataSourceClass. Following is the piece of code.
    Context initialContext;
    try {
         initialContext = new InitialContext();
         DataSource ds = (DataSource) initialContext.lookup(myjndiname);
         logger.info("************CONNECTION POOL DATA->" + ds.getClass().getName() + "************" + ds.getClass() + "**************");
         BasicDataSource bds = (BasicDataSource) datasource;
              logger.info("************CONNECTION POOL DATA-> ACTIVE CONN=" + bds.getNumActive() + " IDLE CONN=" + bds.getNumIdle() + " INIT SIZE=" + bds.getInitialSize());
    catch (NamingException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    This code gave a class cast exception at the point datasource is cast to BasicDataSource. The class name returned by ds is WrapperDataSource. I have few queries on this:-
    1. What configurations do i need so that datasource returned by InitialContext is BasicDataSource? FYI i tried to add the BasicDataSourceFactory in db2-ds.xml. But it still didnt work
    2. Is there any other way to find the number of active connections in a connection pool? I dont want any server specific solution.
    Pls help.
    Thanks

    user13642196 wrote:
    Hi,
    I have an application deployed on jboss. DB used is db2. For monitoring purpose i need to get the number of active and idle connections at any point of time. I am trying to use commons-dbcp jar to get this data using BasicDataSourceClass. Following is the piece of code.
    Context initialContext;
    try {
                 initialContext = new InitialContext();
                 DataSource ds = (DataSource) initialContext.lookup(myjndiname);
                 logger.info("************CONNECTION POOL DATA->" + ds.getClass().getName() + "************" + ds.getClass() + "**************");
                 BasicDataSource bds = (BasicDataSource) datasource;
              logger.info("************CONNECTION POOL DATA-> ACTIVE CONN=" + bds.getNumActive() + "  IDLE CONN=" + bds.getNumIdle() + "   INIT SIZE=" + bds.getInitialSize());
    catch (NamingException e) {
                 // TODO Auto-generated catch block
                 e.printStackTrace();
    }This code gave a class cast exception at the point datasource is cast to BasicDataSource. The class name returned by ds is WrapperDataSource. You can only cast an object to an interface it implements or to a class it extends (directly or indirectly).
    I have few queries on this:-
    1. What configurations do i need so that datasource returned by InitialContext is BasicDataSource? FYI i tried to add the BasicDataSourceFactory in db2-ds.xml. But it still didnt workhttp://commons.apache.org/dbcp/api-1.2.2/org/apache/commons/dbcp/package-summary.html#package_description

  • Check the number of active users of oc4j in EBS

    Hi,
    I often see a recommndation of sizing jvm's to 1 per 100 active users. How can I find the number of active users currently using a jvm in EBS. We have 4 apps servers and 1 of apps servers also runs OBIEE with it's own jvm.
    I can find out from a unix command prompt counting establish connections to the port but I like to know if there's a better way to find the number of active users using the jvm's
    Thanks
    Mike

    Hi,
    To find the number of active user session on each of the application servers from a unix command line. I would find the port that Apache was listening on eg 8100. The use the following command on each of the apps servers
    netstat -an | grep 8100 | grep -i est | wc -l
    This gives a rough idea of how many active connections are established to the apps server. But I would really like to find how many users are actively using o4cj.
    If you are using forms in socket mode again, you can grep on the forms listening port number to find how many active forms users are connected.
    I can also see how many active connections are in the oc4j established to the database using lsof. Find the process id for oacore jvm.
    lsof -p PID
    But I'm sure there's a better and more accurate way of find active users of o4cj, specifically oacore.
    Thanks
    Mike

  • *IMPORTANT* Limiting the number of active threads

    Hi All,
    i have a few of questions so please bare with me:
    1) What is the best way to limit the number of active threads? ie i want to run 10 threads but i want there to be only 3 running at a time.
    this is how im thinking of doing it rite now:
    count = 0;
    while(...)
    thread[count].start();
    while(threadgroup.activeCount > 4){}
    count++;
    2) I have a class that extends thread how do i overide the constructor so that i can add the thread to the threadgroup?
    ok here is an example of what i mean:
    u can do this with a normal thread: Thread one = new Thread(threadgroup, "what");
    this is what i need to do tho:
    class whatever extends Thread {
    public whatever(int a, int b, ThreadGroup tg)
    { what do i put here to make this thread part of the tg threadgroup?}
    thanx for any help in advance and i kinda need a quick answer cause this is due soon , thanx youssefe2k4

    Hi,
    1) Why do you want to do that?
    2) super(tg, "a name");
    /KajIt's part of a homework assignment... I saw another post on this forum and one at JavaRanch where you need to create an application that given a directory will scan each file and report the file name and how many lines are in them... but it must be multithreaded, each thread scan a single file and updates some list and finally you can only have three of these file scanning threads running at the same time...
    Quote "To avoid having too many threads competing for the system resources when there are a lot of files in the directory, we will restrict the number of active Producer threads (active threads are started threads that have not ended yet) during the run time. For this assignment, at any time there should not be more than 3 active Producer threads. If there are already three active Producer threads during the run time, the program should wait until one of them ends to start the next Producer thread."
    I was think about working on it, so that I can strengthen my knowledge in threads...
    I still might do it, just for fun... I don't know yet...
    We will see...
    - MaxxDmg...
    - ' He who never sleeps... '

  • Active JMS Connections

    Are Active JMS Connections as viewed through the console (by clicking on Monitor all Active JMS Connections... ) really active? These numbers never seem to decrease.
              Thanks,
              John
              

    Which one are you talking about?
              JMSServer->Monitor Active JMS Servers, the connection field does change.
              Server->Monitoring->JMS->Monitor all Active JMS Connections, the table does
              reflect the current connections. This works on 6.1 sp2, I don't have other
              version handy to verify.
              .raja
              "John" <[email protected]> wrote in message
              news:[email protected]..
              > Are Active JMS Connections as viewed through the console (by clicking on
              Monitor all Active JMS Connections... ) really active? These numbers never
              seem to decrease.
              >
              > Thanks,
              > John
              

  • Report showing the number of active users in the system

    All,
    There is a standard SAP report which shows the number of active users in the system (output same as AL08).
    Does anyone remember this?
    Cheers,
    Bidwan

    Hello Bidwan, 
    Are you talking about the report RSUSR000?
    Regards.
    Ruchit.

  • Is there a way to control the number of concurrent SMTP connections on Database Mail?

    Las week Rackspace started controlling the number of concurrent SMTP connections and we are now getting the following message when we send as little as 15 messages at a time using Database Mail:
    Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response was: 4.7.0 smtp13.relay.dfw1a.emailsrvr.com Error: too many connections from IP xxx.xxx.xxx.xxx)
    We are using SQL Server 2005 and Windows 2003 and we have been doing this since 2006 with no problems
    Is there a way to control the number of concurrent SMTP connections used by Database Mail or the Database Mail external executable DatabaseMail90.exe?

    Hi rkohler,
    Usually, we can use the Database Mail Configuration Wizard or the Database Mail stored procedures to determine the server name and port number for the Simple Mail Transfer Protocol (SMTP) server . In the SMTP server points, we can set or increase the number
    of concurrent connections.
    There is similar issue about database email on SQL Server 2005, you can refer to the following post.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6bb7b600-f025-451b-898b-2caa29c10d4d/only-some-email-gets-sent-successfully-from-spsenddbmail-database-mail-on-sql-server-2005
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • How to know the number of Active users logged in to a Essbase  Application?

    Hi,
    Is there way to capture/log the number of active users who have logged into a particular Essbase application at a given time.
    In Essbase or in Shared services?
    I know we can see the EAS-Edit Sessions shows the actively logged-in users, then we can sort on the application/database & manually count the number.
    Is there a way to capture it in a log at a given time on a regular basis. Any MAXL or Shared services feature?
    Appreciate your thoughts.
    Thanks,
    Ethan.

    You could use maxl .
    display user all;
    there will be a column called "logged in" which will display true/false for the users
    but that will just show if they are logged into the server and not the application
    You can also use use display session
    display session all;
    or
    display session on application sample;
    which should show what you are after.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do I reset the number of activations on Visio 2003 after getting a "too many activations" message?

    I just installed Visio 2003 on a PC, and got the "we can't activate this app via the internet because you've installed it too many times" message. I went back to phone activation, but, of course, that's no longer available for this product.
    How do I get the number of activations reset? Apparently you used to be able to do this by calling Microsoft, but what's the number to call? Or is there another way to do it?
    I'm probably going to need to do it for my copy of Office 2003 also.

    Hi,
    Microsoft has ended support for Office 2003 on April 8, 2014. This change will affect your software updates and security options.
    Please contact your local customer service. Explain to the service (Human being) that you can’t activate Visio 2003 and the error message is “we can't
    activate this app via the internet because you've installed it too many times”.
    You can find
    your local custom support number on the link below.http://support.microsoft.com/gp/customer-service-phone-numbers/en-us
    Hope it can be helpful.

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why must the number of states on all pages be equal?

    Hi,
    I'm building a complete interactive website in Fireworks CS5 using Master Pages, States and Behaviors for some neat interactivity on the mockup.
    My question is why must the number of states be equal on all pages? I have a Master Page with a simple rollover effect on all the links, but on the Profile page I have a popup where you can insert tags. To create an interactive popup on the Profile page I need a couple of states for that popup on the Profile page. As soon as I add more states to the Profile page it loses the content from the Master Page, even if I tell all the layers in the Master page to "share on all states", when forcing the Profile page get's disconnected from the Master page.
    There has to be a simpler way of doing this!
    Thanks!

    There is no way of doing what you want in Fireworks. It's not an HTML editor and can't generate more than rudimentary interactive objects. To create more sophisticated interactive objects you need have some knowledge of coding and use software like Dreamweaver or Flash.

  • TS3899 Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it on my computer?  The difference between the 2 keeps climbing.

    Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it from my computer?  And how do I fix it?  The number keeps climbing on my phone, making the difference between the two greater.

    You're welcome.
    In order to have the account's Sent mailbox synchronized with the server with the Mail.app on your Mac and with the iPhone's Mail application, you must store the account's Sent mailbox on the server with each. The same applies to the account's Drafts and Trash mailboxes.
    With store sent messages on the server deselected for the account preferences with the Mail.app on your Mac, create an "On My Mac" location mailbox. At the Mail.app menu bar go to Mailbox and select New Mailbox. Choose On My Mac for the mailbox location - which will be stored locally on your computer's hard drive and enter a name for the mailbox. You can name this mailbox MobileMe Sent. Select OK to create the mailbox, which will be available under "On My Mac" in the Mail.app mailboxes drawer.
    Select your MobileMe Sent mailbox. Select a sent message in the mailbox and at the menu bar go to Edit and choose Select All. Follow this - at the Mail.app menu bar go to Message and select Move To and then select the new On My Mac location mailbox in the window provided. This will move all messages from the account's locally stored sent mailbox to the newly created On My Mac location mailbox. When this transfer has been completed, re-select store sent messages on the server for the account preferences.
    Now do the same with the newly created On My Mac location mailbox where all sent messages were transferred to. Select a message in the mailbox and at the menu bar go to Edit > Select All. At the menu bar go to Message > Move To and select your MobileMe account's server stored Sent mailbox under Sent in the window provided. This will transfer all messages stored locally on your computer's hard drive from the newly created "On My Mac" location mailbox to the account's server stored Sent mailbox. These messages will no be available when accessing the account with the iPhone's Mail application.

  • Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    paulcb wrote:
    Using the Bold Text Accessibility option does make the keypad numbers a little bolder.
    Yep - I was only looking at Text Size.
    But still, not sure what the deal is. The "1" is just as readable as any other number on the keyboard regardless.

Maybe you are looking for