Bugs item #588241, was opened at 2002-07-29 16:38
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=588241&group_id=22866
Category: JBossServer
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joe Simone (jsimone)
Assigned to: Nobody/Anonymous (nobody)
Summary: Out-of-memory Exception
Initial Comment:
OS: WinXP Pro
JDK ver: 1.3.1_04-b02
This occurs in Both 3.0.0 final and 3.0.1RC1. Each
iteration creates 10 CMP 2.0 entity beans and returns.
So we get the memory exception after creating about
14,510 entities.
Below is the relevant client code and its result:
int totalPasses = 10000;
for (int pass=1; pass <= totalPasses; pass++) {
// Create a bunch of sample data using the event
manager interface ...
messageBox("CREATE SAMPLE
EVENTS", "Pass "+pass+" of "+totalPasses, " ");
eventIds = eventManager.createSampleEvents(10);
}
[java] ------------------------------------------------------
[java] --- CREATE SAMPLE EVENTS
[java] --- Pass 1451 of 10000
[java] --- Current Time: Sun Jul 28 18:14:18 EDT 2002
[java] ------------------------------------------------------
[java] java.rmi.ServerException: RemoteException
occurred in server thread; nested exception is:
[java] java.rmi.ServerException: null; nested exception
is:
[java] java.lang.OutOfMemoryError
[java] Embedded Exception
[java] null; nested exception is:
[java] java.lang.OutOfMemoryError; nested exception is:
[java] javax.ejb.TransactionRolledbackLocalException:
null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] Embedded Exception
[java] null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] java.rmi.ServerException: null; nested exception
is:
[java] java.lang.OutOfMemoryError
[java] Embedded Exception
[java] null; nested exception is:
[java] java.lang.OutOfMemoryError; nested exception is:
[java] javax.ejb.TransactionRolledbackLocalException:
null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] Embedded Exception
[java] null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] javax.ejb.TransactionRolledbackLocalException:
null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] Embedded Exception
[java] null; nested exception is:
[java] java.lang.OutOfMemoryError
[java] at
sun.rmi.transport.StreamRemoteCall.exceptionReceived
FromServer(StreamRemoteCall.java:240)
[java] at
sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:215)
[java] at sun.rmi.server.UnicastRef.invoke
(UnicastRef.java:117)
[java] at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invok
e(Unknown Source)
[java] at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.i
nvoke(JRMPInvokerProxy.java:128)
[java] at org.jboss.invocation.InvokerInterceptor.invoke
(InvokerInterceptor.java:108)
[java] at org.jboss.proxy.TransactionInterceptor.invoke
(TransactionInterceptor.java:73)
[java] at org.jboss.proxy.SecurityInterceptor.invoke
(SecurityInterceptor.java:76)
[java] at
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke
(StatelessSessionInterceptor.java:111)
[java] at org.jboss.proxy.ClientContainer.invoke
(ClientContainer.java:76)
[java] at $Proxy1.createSampleEvents(Unknown Source)
[java] at com.highnotes.ebu.client.test.Stress_2.main
(Stress_2.java:91)
[java]
javax.transaction.TransactionRolledbackException: null;
nested exception is:
[java] java.lang.OutOfMemoryError
[java] java.lang.OutOfMemoryError
[java] <<no stack trace available>>
An additional point is that if the entities are immediately
removed after creation, NO memory exception occurs.
In fact, I have had this test case running for almost 36
hours straight with no signs of distress.
Below is the relevant code from the client and its result:
int totalPasses = 10000;
for (int pass=1; pass <= totalPasses; pass++) {
// Create a bunch of sample data using the event
manager interface ...
messageBox("CREATE SAMPLE
EVENTS", "Pass "+pass+" of "+totalPasses, " ");
eventIds = eventManager.createSampleEvents(10);
Iterator iter = eventIds.iterator();
while (iter.hasNext()) {
eventManager.removeEvent((String) iter.next());
}
}
[java] ------------------------------------------------------
[java] --- TEST COMPLETE
[java] --- Pass 10000 of 10000, Total elapsed time: 0
days 0 hrs 26 mins 32 secs
[java] --- Current Time: Sun Jul 28 18:53:08 EDT 2002
[java] ------------------------------------------------------
The session facade has "RequiresNew" as the
transaction attribute and each of the entity bean
methods has "Required".
My expectation is that when the client invokes:
eventIds = eventManager.createSampleEvents(10);
that the createSampleEvents method of the
eventManager Session bean WILL create a new
transaction. Then, that 10 entity beans will be created
under that transaction. Finally, when the
createSampleEvents method returns to the client the
transaction will be complete and a commit will be
performed for the 10 enities created.
I don't see any evidence of this happening.
Shouldn't I be seeing SQL COMMITS in the server.log?
See ref link :
http://www.jboss.org/forums/thread.jsp?
forum=46&thread=18548
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=588241&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development