Jonathan
unread,Nov 12, 2009, 10:31:15 AM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jPOS Users
Hi,
I was testing my code, wondering why it was taking so long for a
second connection to my server to occur. I found that each client
tries to send a message immediately on making the connection. Both
these ISOServer$Session objects had their own BaseChannel, but each
had the same serverInLock and serverOutLock objects. This is not good.
I suspect it happens because of a clone() method, but I'm still
investigating.
Also, I have noticed that the unit tests in jpos take 12 minutes to
run on my humble laptop. Why should they take so long?
Here's what I see on my machine:
test:
[junit] Running org.jpos.iso.AllTests
[junit] Tests run: 183, Failures: 0, Errors: 0, Time elapsed:
0.338 sec
[junit] Running org.jpos.iso.packagers.PackagerTestCase
[junit] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 0.766
sec
[junit] Running org.jpos.q2.iso.QMUXTestCase
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 12.692
sec
[junit] Running org.jpos.space.JDBMSpaceTestCase
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed:
212.026 sec
[junit] Running org.jpos.space.JESpaceTestCase
[junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed:
113.193 sec
[junit] Running org.jpos.space.TSpaceTestCase
[junit] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 4.003
sec
[junit] Running org.jpos.transaction.ContextTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.009
sec
[junit] Running org.jpos.transaction.TransactionManagerTestCase
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed:
366.015 sec
[junit] Running org.jpos.util.FSDMsgPropertiesTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.016
sec
[junit] Running org.jpos.util.FSDMsgSeparatorTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.005
sec
[junit] Running org.jpos.util.FSDMsgTestCase
[junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.023
sec
[junit] Running org.jpos.util.ThroughputControlTestCase
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 14.302
sec
The TransactionManagerTestCase, JDBMSpaceTestCase and the
JESpaceTestCase take most of the time. Could these be the same problem
I am seeing? Sorry, I haven't looked at what the tests are doing, so I
could be completely wrong.
Ciao,
Jonathan