Code Monkey home page Code Monkey logo

identity-tools-debugger's Introduction

identity-tools-debugger

Tools which helps to debug the WSO2 Identity Server performance related issues Currently this supports,

  1. Execution time logger - Log time taken to execute defined methods
  2. Database connection logger - Log if any threads occupy more than one connection

How to build

Use mvn clean install

How to add debug support to IS

  • Copy modules/java-agent/target/org.wso2.carbon.identity.developer.java-agent-1.0.0-jar-with-dependencies.jar to IS_HOME/lib

  • Copy modules/logger/target/org.wso2.carbon.identity.developer.logger-1.0.0.jar to IS_HOME/repository/components/dropins/

  • Copy developer-debugger.toml to IS_HOME/repository/conf

  • Add the following under JAVA_OPTS to enable agent in wso2server.sh.

    -javaagent:$CARBON_HOME/lib/org.wso2.carbon.identity.developer.java-agent-1.0.0-jar-with-dependencies.jar \
  • Start the server

How to configure

We can disable the complete debugger tool, by changing the root enabled config

enabled = false

Execution time logger

  • If you want to disable the execution time logger, disable execution_time_logger.enable
[execution_time_logger]
enable = false

Database connection logger

  • If you want to disable the database connection logger, disable db_multi_connection_logger.enable
[db_multi_connection_logger]
enable = false

identity-tools-debugger's People

Contributors

sathiyakugan avatar piyumidasanayaka avatar wathsara avatar wso2-jenkins-bot avatar piraveena avatar darshanasbg avatar jkaushalya avatar maheshika avatar isurad avatar thumimku avatar gdrdabarera avatar madurangasiriwardena avatar senthalan avatar gayashanbc avatar janakamarasena avatar

Stargazers

Nipun Thathsara avatar

Watchers

James Cloos avatar  avatar

Forkers

rksk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.