Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Issues with enable transaction statistics with JAVA_OPTS

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to enable transactions statistics in wildfly 18.
I have this config in %JBOSS_HOME%\bin\standalone.conf.bat:


After restarting wildfly, transactions monitor page in web console states that "Statistics Disabled".
in jboss-cli.bat I see this:

So both wildfly.transactions.statistics-enabled=true and wildfly.statistics-enabled=true, but overall expression is false.

How can it be?
How to enable statistics with JAVA_OPTS?
 
Greenhorn
Posts: 27
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Looking at the documentation for Narayana (Transaction Manager) sub-system we see the configuration with Wildfly section.
https://www.narayana.io//docs/project/index.html#d0e3536

The docs recommend using the cli to configure the transaction sub-system. Have a read (yes v25 docs but the principles are the same) of the configuration instructions.
https://docs.wildfly.org/25/Admin_Guide.html#transaction-statistics
The section "observing all transaction statistics attributes" is relevant to making the configuration change you want. These changes will survive a server restart.

# connect to a running application server
./bin/jboss-cli.bat -c

# enable transaction statistics
/subsystem=transactions:write-attribute(name=statistics-enabled, value=true)
# list all statistics attributes
/subsystem=transactions:read-attribute-group(name=statistics, include-runtime=true)



Can you switch to using the cli rather than using JAVA_OPTS ?

 
Jeremy Whiting
Greenhorn
Posts: 27
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Think I found your answer relying on JAVA_OPTS for configuration.


 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic