Skip to content

miniapp高并发情况下非常严重的性能问题 #349

@axeon

Description

@axeon

cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl的executeInternal方法使用synchronized关键字导致极其严重的性能问题。
通过jmc观察,大并发下导致海量线程block在此处,造成非常严重的不可用。
建议去除synchronized关键字,同时优化getAccessToken(false),尽量不要有锁,token可用后台进程维护。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions