Tools which helps to debug the WSO2 Identity Server performance related issues Currently this supports,
- Execution time logger - Log time taken to execute defined methods
- Database connection logger - Log if any threads occupy more than one connection
Use mvn clean install
-
Copy
modules/java-agent/target/org.wso2.carbon.identity.developer.java-agent-1.0.0-jar-with-dependencies.jartoIS_HOME/lib -
Copy
modules/logger/target/org.wso2.carbon.identity.developer.logger-1.0.0.jartoIS_HOME/repository/components/dropins/ -
Copy
developer-debugger.tomltoIS_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
We can disable the complete debugger tool, by changing the root enabled config
enabled = false- If you want to disable the execution time logger, disable execution_time_logger.enable
[execution_time_logger]
enable = false- If you want to disable the database connection logger, disable db_multi_connection_logger.enable
[db_multi_connection_logger]
enable = false