This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Out of Memory Errors - Caused by UserTransaction? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Out of Memory Errors - Caused by UserTransaction?" Watch "Out of Memory Errors - Caused by UserTransaction?" New topic
Author

Out of Memory Errors - Caused by UserTransaction?

Jon Rocky
Greenhorn

Joined: Oct 20, 2004
Posts: 3
I'm attempting to research if a recent change in several of our application beans is responsible for a large number of out of memory errors we've been getting.

Approximately 5 of our beans were changed to Bean-Managed transactions, and code was inserted to use a TransactionController utility to get transactions, commit, and rollback.

This was done because these beans access an LDAP store, and we needed rollback capabilities for this, which we did in a seperate class.

However, since the creation of the TransactionController, several of our environments have been reporting Out-of-memory errors occurring. Due to the timing, we're wondering if the UserTransactions have anything to do with it.

Has anyone heard of this happening? Are there memory leak possibilities with UserTransactions?
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Well, number one: UserTransaction is an interface, and therefore doesn't have an actual implementation to leak memory from! What app server are you using?


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Jon Rocky
Greenhorn

Joined: Oct 20, 2004
Posts: 3
Websphere 5.1.1
 
 
subject: Out of Memory Errors - Caused by UserTransaction?
 
Similar Threads
Stateless Session Beans Managing JDBC Transactions
Question Regarding HFE / Bean things you can do within business methods - Page 199
XA Errors !! Help !!
weblogic does not allow commit in oracle
Bean stuff in ejbCreate of stateful session bean