• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Transaction rolled back

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my application MDB with container manage transaction,I am doing performence testing ,for this in my configuration connection pool size is 15 ,I am sending message in every 2 second from my clint program. but after two or three hour I am getting this error.Imn my application I am persisting the jms message in jms table.

Any body having idea why I am getting this error.



BEA-010065 Jul 2, 2007 8:16:39 PM IST myserver Warning EJB MessageDrivenBean threw an Exception in onMessage(). The exc
eption was:

java.lang.OutOfMemoryError.
java.lang.OutOfMemoryError



BEA-010213 Jul 2, 2007 8:14:05 PM IST myserver Info EJB Message-Driven EJB: PMTCEJB's transaction was rolledback. Th
e transaction details are: Xid=BEA1-0908B70BBBFAED3D7FF3(311
64628),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe
=0,numRepliesOwedOthers=0,seconds since begin=1,seconds left
=3599,XAServerResourceInfo[JMS_PMTCJDBCMessageStore]=(Server
ResourceInfo[JMS_PMTCJDBCMessageStore]=(state=rolledback,ass
igned=myserver),xar=JMS_PMTCJDBCMessageStore,re-Registered =
false),SCInfo[pmtc_domain+myserver]=(state=rolledback),Owne
rTransactionManager=ServerTM[ServerCoordinatorDescriptor=(Co
ordinatorURL=myserver+16.138.181.4:7001+pmtc_domain+t3+, XAR
esources={JMS_FileStore, weblogic.jdbc.wrapper.JTSXAResource
Impl, JMS_PMTCJDBCMessageStore},NonXAResources={})],Coordina
torURL=myserver+16.138.181.4:7001+pmtc_domain+t3+).

BEA-010065 Jul 2, 2007 8:11:40 PM IST myserver Warning EJB MessageDrivenBean threw an Exception in onMessage(). The exc
eption was:
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you are running out of memory, which is not too much of a suprise if you are doing performance testing. There are a plethora of reasons why it could be happening, from the very obvious (you haven't configured your JVM with enough memory) to the less obvious (your application has a memory leak).

One of the first things to note is its actually quite easy to write a performance test that breaks an application in an invalid way, by which I mean your test is actually using the application in an unrealistic way. For example a common one I see is people writing test scripts that try to log all N hundred users on simmultaneously, rather than ramping them up over time.

Without knowing a lot about your application and its architecture it is very difficult to offer much advice beyond general stuff. Check your test: is it valid? Check your JVM configuration: does it have enough memory? If its a long running JVM, are you using the server configuration (if it is HotSpot we are talking about)? Tweek your JVM with things like GC logging on to see what is going on (see here for useful ones). Doing this last one will begin to hint a memory leak if there is one.
 
We must storm this mad man's lab and destroy his villanous bomb! Are you with me tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic