Page 1 of 1

JMS (Streams AQ) with atomikos causing serious log spam

Posted: Mon Oct 31, 2011 12:00 pm
by gregaryh
I have a new stack 3.1 project started with the stack starter. I am utilizing JMS in my application and have set it up appropriately. However, as it runs, the logs are filling up with thousands of lines like these:

Code: Select all

[11/10/31 11:52:33:221] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0002500527
[11/10/31 11:52:33:224] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0002600527
[11/10/31 11:52:34:242] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0002600527
[11/10/31 11:52:34:245] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0002700527
[11/10/31 11:52:35:263] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0002700527
[11/10/31 11:52:35:266] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0002800527
[11/10/31 11:52:36:285] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0002800527
[11/10/31 11:52:36:287] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0002900527
[11/10/31 11:52:37:312] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0002900527
[11/10/31 11:52:37:315] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003000527
[11/10/31 11:52:38:332] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003000527
[11/10/31 11:52:38:335] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003100527
[11/10/31 11:52:39:353] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003100527
[11/10/31 11:52:39:355] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003200527
[11/10/31 11:52:40:374] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003200527
[11/10/31 11:52:40:376] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003300527
[11/10/31 11:52:41:394] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003300527
[11/10/31 11:52:41:396] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003400527
[11/10/31 11:52:42:414] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003400527
[11/10/31 11:52:42:417] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003500527
[11/10/31 11:52:43:434] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003500527
[11/10/31 11:52:43:437] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003600527
[11/10/31 11:52:44:455] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003600527
[11/10/31 11:52:44:457] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003700527
[11/10/31 11:52:45:476] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003700527
[11/10/31 11:52:45:478] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003800527
[11/10/31 11:52:46:496] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003800527
[11/10/31 11:52:46:499] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0003900527
[11/10/31 11:52:47:516] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0003900527
[11/10/31 11:52:47:521] 0000000c I atomikos: createCompositeTransaction ( 120000 ): created new ROOT transaction with id 127.0.0.2.tm0004000527
[11/10/31 11:52:48:539] 0000000c I atomikos: commit() done (by application) of transaction 127.0.0.2.tm0004000527
As this is so far only running on my development box locally, I have tried changing the local.logging.properties in the following ways, all to no avail:

com.atomikos.level=WARNING
com.atomikos.level=WARN
atomikos.level=WARN

I found this on the atomikos site, but since it using the XML style logging params, I am not sure how it translates in the stack dialect: http://fogbugz.atomikos.com/default.asp ... y.6.1910.3

Any help would be appreciated.

Posted: Mon Oct 31, 2011 12:03 pm
by jonesrk
This is what I have for my development logging. I'm on an internal stack 2.1.x project
com.atomikos.level=SEVERE
atomikos.level=OFF

Posted: Mon Oct 31, 2011 12:29 pm
by gregaryh
That worked. Thanks! :)

Posted: Tue Nov 01, 2011 9:59 am
by YoungstromMJ
Wow, thanks for helping out Ryan. :)

Gregary,

I'm curious are you using Atomikos in your Stack 3.1 application on purpose? In Stack 3.1 Atomikos isn't available in the templates and we don't recommend using it normally.

Mike