OutOfMemoryError when sending JMSMessage

Hi, everyone.
My application is a JMS client which runs on oc4j 9.0.0.4 and connects JMS listener to another server (Weblogic8.1). It receives a JMS message in every 2 seconds. Each time onMessage is called, the message is published to the JMS Topic on the local server.
The problem is it keeps running fine for a few days, but after that starts "getting JMSException : storeMessage" as below when publishing received message to the local JMS topic. The JMS listener keeps working for another 30 seconds with this error and sometimes without any trouble. Then the listener suddenly stops and it never receives message any more. Almost the same moment, there is this message in the jms.log.
05/09/14 17:06:32 computeSize
java.lang.OutOfMemoryError
Other than JMS listener, the oc4j seems to be working fine. I can get successful responce from the servlets and jsps.
Does anybody have any clue why this happens? Or is there any workaround as to allocate the bigger heap on JMS topic?
I appreciate your HELP!!!
-------Here is the stacktrace --------------
05/09/14 17:06:31 javax.jms.JMSException: storeMessage(ID:Oc4jJMS.Message.SYS037203.88e2dd:1064d0336d0:-8000.40727,null)
05/09/14 17:06:31      at com.evermind.server.jms.JMSUtils.makeJMSException(JMSUtils.java:1843)
05/09/14 17:06:31      at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1859)
05/09/14 17:06:31      at com.evermind.server.jms.ServerStore.storeMessage(ServerStore.java:757)
05/09/14 17:06:31      at com.evermind.server.jms.ServerStore.enq(ServerStore.java:157)
05/09/14 17:06:31      at com.evermind.server.jms.ServerTopic.enq(ServerTopic.java:464)
05/09/14 17:06:31      at com.evermind.server.jms.ServerTopic.enq(ServerTopic.java:97)
05/09/14 17:06:31      at com.evermind.server.jms.JMSProvider.enqMessage(JMSProvider.java:574)
05/09/14 17:06:31      at com.evermind.server.jms.EvermindSession.send(EvermindSession.java:1098)
05/09/14 17:06:31      at com.evermind.server.jms.EvermindMessageProducer.send(EvermindMessageProducer.java:409)
05/09/14 17:06:31      at com.evermind.server.jms.EvermindMessageProducer.send(EvermindMessageProducer.java:201)
05/09/14 17:06:31      at com.evermind.server.jms.EvermindTopicPublisher.publish(EvermindTopicPublisher.java:77)
05/09/14 17:06:31      at com.mypackage.sender.JmsObjectSender.send(JmsObjectSender.java:145)
05/09/14 17:06:31      at com.mypackage.sender.JmsObjectSender.run(JmsObjectSender.java:108)

How big are the messages?
The OutOfMemoryError means that there was inadequate memory to make a temporary copy (or two) of the message for book-keeping purposes. So either you are way low on memory or you have some really big message.
Are you using a persistent topic? (I.e., did you set a persistence file for it in jms.xml)? If not, do so. And turn on paging of message bodies. Are you reading all of the messages out of the topic (for all subscribers)? If not they will accumulate until you're out of memory.

Similar Messages

  • OutOfMemoryError When Sending Large Image

    Hi All,
    We are developing a midlet that is esentially a photo blogging app. We are using an HTTP POST to send the image to the web server. The code is working properly as we are able to send images up to about 80KB.
    However, when sending images larger than ~80KB, the midlet gets an OutOfMemoryError.
    The image is being sent in chunked data packets, so shouldn't this mean we could send any size file since it would just keep sending more data chunks until it has reached the end of the file?...
    Has anyone else out there encountered this or perhaps know of a work around?
    Any help would be greatly appreciated.
    Thanks!
    Jim

    We are currently loading the entire image into memory at the moment which is
    probably causing the OutOfMemory exceptions. Would you know how native
    phone applications send images through HTTP which are many times the
    size of available memory?
    The only way I could think of is to somehow connect the input stream
    which gets the image from the phone's memory and the output stream
    which writes out the HTTP data. By doing this no new byte array will get
    declared (explicitly anyway) to temporarily hold the entire image in the phone's
    memory. I'm wondering could I accomplish something like that by somehow
    collapsing these two chunks of code into one that declares no arrays to hold
    the entire image in memory?
    Here's our current code for reference:
    Getting the image from the phone
    theFile is a FileConnection object which references the image file we want
                        InputStream fileInputStream = theFile.openInputStream();
                        fileContent = new byte[(int)filesize];
                        fileInputStream.read(fileContent);
                        fileInputStream.close();Writing image to HTTP output stream
    data is a byte[] array holding the entire image in memory
    httpOut is a DataOutputStream
    SuperViewerMidlet.httpOut.write(data);

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    How do I delete stored email addresses in my iphone? When sending photos, I don't want to have certain email addresses  "popping up" from the internal memory, I've deleted my entire "Contact" list but they still appear.  Help please!

    As with the Mail app on a Mac, the iPhone's Mail app stores all email recipients in a list of previous recipients which is separate from the address book or contacts. The email address autofill feature when addressing an message pulls from Contacts and from the list of previous recipients.
    Different from the Mail app on a Mac, there is no access to the list of previous recipients with iOS on an iPhone, iPod Touch, or iPad to remove a previous recipient from the list, or to add a previous recipient to the address book or contacts that is not already entered - not at the present time anyway.
    The only way to purge the list of previous recipients at the present time is by restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup, which will start being re-populated again with every sent message.

  • I have recently bought a macbook and am using outlook 2011 as email. i am getting an error message 4.7.0 not allowed when sending emails how do I fix?

    i have a macbook and am using outlook 2011 as email.   receiving okay.   sending okay sometimes.  am now getting error message 4.7.0 not allowed when sending.  what is the cause? how do I fix please?

    I have discovered that the emails have in fact been sent but much later, maybe it's a network problem with the people i am sending it to.  so i checked my sent items and they are there, but at the time the email doesn't go straight into the sent box or drafts so i'm assuming it's disappeared and type it again.  i'll keep going with it, until someone can give me a possible solution or explanation as to what is happening.

  • I updated to ios 5 and now when sending an email it says no subject, do you still want to send ? Can this be turned off ?

    I updated my iphone 4 to ios 5. When sending emails now it says " there is no subject, do you want to still send ? " Is there a way to turn that off. I could not find the setting. In ios 4 this problem never happened .  Anyone have an answer ?
    Steve

    There is no way to consolidate iTunes accounts.
    Setting up an iPhone has never required creation of a new Apple ID.
    You've apparently purchased content with both Apple ID's.  Sign into the device with the correct Apple ID and sync the content.

  • When sending job from Final Cut Pro to Compressor using local QCluster

    When sending job from Final Cut Pro to Compressor by way of Share and using the local QCluster, the audio renders, but the video errors out saying something along the lines of Can not locate file.
    If I use 'This Computer' it works fine.
    What gives?
    Fresh install of OS and FCS.
    Thanks!

    I'm just learning the intricacies of Compressor and Qmaster myself, but I have learned that when you use Qmaster you can not share directly from FCP. You must export a Quicktime movie (reference movie seems to be fine) and input that to Compressor. This is only an issue when using Qmaster, as you've seen.

  • Video does not display when sending from Final Cut Pro to Motion

    Suddenly, when sending an audio & video sequence to Motion, a new Motion file is created, and all my layers come in properly, but the video does not display.
    The audio plays fine, and Motion clearly know that there are video tracks there, but it does not display them.
    Additionally, when rendering the Motion file back in FCP, it turns in to black video.
    I have previous sequences within the same project that were sent just fine, and are editable properly, but any new ones I try to create just come out black.
    Help, please?

    Do you have Motion mistakenly set to render out with an Alpha channel?
    Double click your Motion clip in the Timeline. Go to Modify > Composite Mode in the menu bar and set the Alpha to "None/Ignore".

  • Using JProgressBar when sending an email

    Good day to all! How can I use the JProgressBar to monitor progress when
    sending an email? I am using the Email package by Jakarta Commons.
    Somehow, I need my application to display progress since the send( )
    function takes a considerable amount of time to complete.
    Regards...

    >
    I Want to learn how to send email . Could you please
    tell me how to send email. and also give me some
    sample Code . so that i can Understand
    Sure. :) I just used a simple-To-Use API of Jakarta Commons Email, which is
    built on Java Mail. Their main site may start you off through simple examples.
    Go to this page: http://jakarta.apache.org/commons/email/userguide.html

  • When sending an email using outlook can you attach another email?

    When sending a new email using outlook, is it possible to attach another email?

    What does that have to do with iPhones?

  • Textarea problem when sending mail (only Firefox)

    When sending mail using textarea item with multiple lines, carriage returns are taken away in resulting mail when sent in Firefox, but not in IE.
    To send mail, I call Javascript function that gets textarea value ($v or $x.innerHTML give the same result) and calls then on-demand process that calls in turn APEX_MAIL function.
    Igor

    Thank you, Jari!
    "pre" did the trick. Line breaks are OK now.
    There is one small inconvenience, though: font becomes Courrier instead of sans-serif type. But this is less disturbing than missing line breaks.
    Igor

  • I am losing my carriage returns when sending emails. How to keep? uses SMTP Email MIME Text Content-Type.vi

    I am losing my carriage returns when sending emails using the Internet email vi's.
    All carriage returns are stripped out and I get one long word wrapped paragraph.
    I want to avoid html.
    Ideally, using the vi's for rich text would be perfect, but a simple text message with carriage returns and line feeds in any font ok. 
    uses SMTP Email MIME Text Content-Type.vi
    i have tried text/plain, text/html, and mixed yada something

    You need to use Line feed constant and then use concatenate function.See the screen shot.
    Naqqash
    Attachments:
    Using Line feed.png ‏15 KB

  • Why can't I cut and paste email addresses when sending documents?

    Why can't I cut and paste email addresses when sending files? I have to type them in each time...And it doesn't remember them for the future, as SendNow did.
    Also, it seems that the message I type in is not kept, as it was with SendNow?
    Thanks!

    Hi drlaura,
    You're correct on both counts--these features work differently Adobe Send than they do in Adobe SendNow.
    If you're sending files from Adobe Reader, you can access your local Address Book, which should make entering email addresses easier. Please see: I’m trying to send a file from Adobe Reader, but I can’t access my computer’s address book to find my contacts. Why not?
    Please let us know how it goes.
    Best,
    Sara

  • TS3276 My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    My o2 email account does not work when sending from my MAC it will accept incoming mail but not send it gives me a message that  o2 account (offline) my mac I have no problem with my iPhone  or mac laptop. any suggestions please.

    Sorry for the delay...
    I did what you've told me, new account and manually copied my files from Time Machine. I had lots of permissions problems, but at the end, almost everything is in order... It seems it had to be with some of the Apple Preferences, but I can't be sure, as most of them were dumped to the trash can.
    I still don't have my Mail Rules back, unfortunately, although I did goggled some. It is a pity, as I had around 30 or 40 of them, getting my mail in order to each of its mailboxes, but it is a small price as the rest doesn't show the before syntoms.
    Thanks for the help, anyway!!

  • TS2755 Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help of how to set up messages on each

    Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks

    search google for "iphone remove picture from contact"

Maybe you are looking for

  • Update kernel and recieved a "Machine check error"

    I was on Vacation this last weekend but was finally able to update today. Upgrade seemd fine, issued reboot command and instead of my normal reboot I was greeted with "machine check error" flashing in my upper left hand corner. Syslinux never came up

  • Placing a multiple page pdf over multiple pages in indesign

    Ok so I do alot of "print presentations," when designing books or manuals etc I have to place the spreads of the document into their own A3 pages in another indesign file So I make a pdf with all the spreads I need. Then I place the pdf and with impo

  • FDM Import button grayed out for ONLY 1 period

    Hello experts, I want to import a text file to HFM via FDM. I chose the current POV (period, location,..) and go to the upload tab. What's a suprise, my import button is gray and i can not import my text file. I tried to change to other Period (previ

  • Premiere Elements 8 - Still pictures in PE are blurred compared to original

    My system is Intel Q6600 CPU, Windows 7 64bit, 6GB memory, 1TB C: drive, 2TB E:drive, NVIDIA GeForce GT 220 video card, Premiere Elements 8, using Microsoft Office Picture manager to look at still originals. The Premiere Elements 8 project settings i

  • SLD Best Practices

    Hi From where can I get the best practices related to SLD? My XI system Landscape contains following systems. Sandbox Development Quality Production I am considering following options: Individual SLD for each system. One SLD for Sandbox, Second for D