File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Out of Memory Errors - Caused by UserTransaction?