HI,
Our JBOSS EJB3 container (4.0.3SP1) is hanging in a few minutes followed by a
timeout, when I try to persist and flush a large number of objects (actually
only about 1500 objects) objects in one transaction. The overall exception is
Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257,
GlobalId=WMLI011810/744, BranchQual=, localId=744]
In a statefull session bean an object A is created. Afterwards about 1000
entries of another object B are added to a collection in object A - these
B-objects needs to be persisted when object A is persisted. The operation
em.persist(A) takes about one minute to complete - that's ok in this situation.
So far no problems...
Now, when the sessionbean is doing a em.flush() or returning control back to
the container (after last statement in the method is succefully complated), the
container is hanging for about 3 minutes before a timeout is thrown. The JBOSS
java.exe process is using 100% cpu power.
Why should is take so long time and so many resources to flush/commit only a
few thousand objects?
If I'm reducing the B objects to about 50 og 100 then anything works nice.
Isn't JBOSS scaled for large transactions?
Can anyone help us with this problem?
--- stacktrace (just a small top-part)
15:31:13,843 WARN [TransactionImpl] Transaction
TransactionImpl:XidImpl[FormatId=257, GlobalId=WMLI011810/744, BranchQu
al=, localId=744] timed out. status=STATUS_ACTIVE
15:33:52,225 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
15:33:52,225 ERROR [JDBCExceptionReporter] Transaction is not active:
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=
WMLI011810/744, BranchQual=, localId=744]; - nested throwable:
(javax.resource.ResourceException: Transaction is not act
ive: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=WMLI011810/744,
BranchQual=, localId=744])
15:33:52,225 ERROR [AbstractFlushingEventListener] Could not synchronize
database state with session
org.hibernate.exception.GenericJDBCException: Cannot open connection
at org.hibernate.JDBCException.(JDBCException.java:25)
....... AND A LOT MORE ....
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934384#3934384
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934384
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user