[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Weird deadlock I had today...
clebert.suconic@jboss.com
do-not-reply at jboss.com
Wed Dec 3 22:24:17 EST 2008
To replicate this:
I - Open org.jboss.messaging.tests.performance.paging.MeasurePagingMultiThreadTest
II - Change testPagingMultipleSenders to:
| public void testPagingMultipleSenders() throws Throwable
| {
|
| final int NUMBER_OF_THREADS = 18;
| final int NUMBER_OF_MESSAGES = 100;
| final int SIZE_OF_MESSAGE = 1024;
|
| Configuration config = createDefaultConfig();
|
| HashMap<String, QueueSettings> settings = new HashMap<String, QueueSettings>();
|
| config.setPagingMaxGlobalSizeBytes(20 * 1024);
| config.setJournalSyncTransactional(true);
|
III - run the test inside Eclipse.
Wait some time...., and call the kill -3 on the process. (I aways do killall -3 java)
My disk is somewhat slow at sync, maybe because it is really syncing and not using any caching. If you don't get the deadlock, use a higher number of Messages as your disk may be faster.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4194201#4194201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4194201
More information about the jboss-dev-forums
mailing list