简体   繁体   English

SCIM Wso2是性能

[英]SCIM Wso2is performance

I'm using WSO2IS version 5.3 with MySQL using mysql-connector-java-5.1.44-bin driver and DB Size of 220K users . 我正在使用带有MySQL的WSO2IS版本5.3,使用mysql-connector-java-5.1.44-bin驱动程序和220K用户的DB大小。 when using SCIM to change the attributes for a user takes ~ 4.6 secs versus reading/creating a user takes ~ 1.1 sec. 当使用SCIM更改用户的属性需要大约4.6秒而读取/创建用户需要大约1.1秒。 Any Suggestion for lowering those times? 有什么建议可以降低这些时间吗?

You can have a look WSO2 SCIM reference architecture from [1]. 您可以从[1]查看WSO2 SCIM参考架构。 There you can see SCIM user manager which is a wrapper of Carbon user manager and WSO2 Charon which is responsible for decoding SCIM request and encoding SCIM response. 在那里你可以看到SCIM用户管理器,它是Carbon用户管理器和WSO2 Charon的包装器,它负责解码SCIM请求和编码SCIM响应。 There are three level of bottle neck can happen 瓶颈有三级可以发生

Level 01: Charon SCIM request and response, decoding and encoding Level 02: How SCIM user manager utilize Carbon user manager functions to do user store operations Level 03: Actual user store operations need to with underlaying user store. 级别01:Charon SCIM请求和响应,解码和编码级别02:SCIM用户管理器如何利用Carbon用户管理器功能执行用户存储操作级别03:实际用户存储操作需要与底层用户存储一起使用。

Some of tips to isolate performance issue 一些隔离性能问题的技巧

  1. Do user update operation from management console and check latency if same latency is there issue is with underlaying user store 用户是否从管理控制台更新操作并检查延迟,如果相同的延迟存在于底层用户存储的问题
  2. Disable user store operation event listeners from identity.xml 从identity.xml禁用用户存储操作事件侦听器

[1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider [1] https://docs.wso2.com/display/IS500/WSO2+Identity+Server+as+a+SCIM+Service+Provider

Adding to @Gayan's tips to isolate the performance issue. 添加@Gayan提示隔离性能问题。

You can enable JDBC logging with log4jdbc and monitor the time taken to execute each DB query. 您可以使用log4jdbc启用JDBC日志记录,并监视执行每个数据库查询所花费的时间。 Then you may be able to narrow down the issue, whether it is in the DB interaction or not. 然后,您可以缩小问题范围,无论是否在数据库交互中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM