I was doing some performance testing using JRun 4. I have a stateless
session bean deployed on a server running JRun 4. The session bean does a
simple insert into an Oracle DB. I have a CF page talking to the session
bean remotely. It appears that it takes 9 seconds to insert a row into the
table. Now I ran the same test locally with the bean deployed in the same
instance that the client CF page is deployed in. The results of this test
were 21 seconds for a 1000 inserts. If I run a 1000 tests remotely it would
take 2 and a half hours at 9 seconds an insert. I have tried to run this
test and about half way through the test I get the error below. I know the
problem is not within the network cause I have made a simple stand alone
java application that performs the 1000 inserts in about 120 seconds. Also
I have tried a jsp and a servlet both of them return an insert in 9 seconds
so that rules out CF. Does JRun 4 have any settings that may increase its
performance? Here is the error. Clustering in the jrun.xml is not enabled.
03/17 12:30:58 info The container
JRun2_export.jar#SessionManagerLiteStateless r
olled back a transaction it began for the
methjavax.transaction.TransactionRolle
dbackException: The container JRun2_export.jar#DBAccessStateless rolled back
a t
ransaction it od pickTest.
The container JRun2_export.jar#DBAccessStateless rolled back a transaction
it be
began for the method writeDataToDB.
at
jrunx.cluster.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:11
2)
at jrunx.clus
ter.ClusterAlgorithm.invokeService(ClusterAlgorithm.java:70)
at jrunx.rmi.Invocation.invoke(Invocation.java:289)
at
jrunx.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java
:133)
at
jrun.ejb.invocation.ClientInvocationHandlerImpl.invoke(ClientInvocati
onHandlerImpl.java:221)
at $Proxy16.writeDataToDB(Unknown Source)
at
JRun2.SessionManagerLiteStatelessBean.useSessionToDB(SessionManagerLi
teStatelessBean.java:196)
at
JRun2.SessionManagerLiteStatelessBean.pickTest(SessionManagerLiteStat
elessBean.java:64)
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
jrun.ejb.interceptors.InvokerInterceptor.invokeObjectMethod(InvokerIn
terceptor.java:155)
at
jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeRe
quired(ContainerManagedTransactionInterceptor.java:311)
at
jrun.ejb.interceptors.ContainerManagedTransactionInterceptor.invokeTr
ansactedMethod(ContainerManagedTransactionInterceptor.java:150)
at
jrun.ejb.interceptors.TransactionInterceptor.invokeObjectMethod(Trans
actionInterceptor.java:130)
at
jrun.ejb.interceptors.StatelessSessionInstanceInterceptor.invokeObjec
tMethod(StatelessSessionInstanceInterceptor.java:89)
at
jrun.ejb.interceptors.EJBSecurityInterceptor.invokeObjectMethod(EJBSe
curityInterceptor.java:81)
at jrun.ejb.EJBContainer.invokeObjectMethod(EJBContainer.java:111)
at
jrun.ejb.invocation.RemoteInvocationProxyImpl.invoke(RemoteInvocation
ProxyImpl.java:89)
at jrunx.rmi.RMIBroker.invokeEJB(RMIBroker.java:225)
at jrunx.rmi.RMIBroker.invoke(RMIBroker.java:135)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)03/17 12:30:58 info Transaction rolled back on JDBC Connection from
DataSourc
e OracleDB1
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:536)
Thanks for the help!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4