Base solution for your next web application
Open Closed

NewtonSoft.Json thread locking under load ? (possible to use System.Text.Json instead?) #10972


User avatar
0
sedulen created

Prerequisites

  • What is your product version? v9.3.0
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

If issue related with ABP Framework

  • What is ABP Framework version? v5.14.0

In continuing to investigate the performance issues I'm seeing, I've been capturing .dump files of my running system under load. In the latest .dump file I captured, the Diagnostics Analysis revealed somthing very eye-catching

In that screenshot, where it provides the hyperlinks in the Analysis summary, if you click on one of those hyperlinks, it opens the Parallel Tasks view, where I see:

is there anything specific in ABP or ANZ that requires using NewtonSoft for JSON serialization & deserialization at the WebAPI level? I was reading this post on the NewtonSoft.Json github repo https://github.com/JamesNK/Newtonsoft.Json/issues/1795

Curious what everyone's thoughts are. Thanks! -Brian


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We have plans to move to System.Text.Json but we haven't faced a performance problem regarding NewtonSoft. Could this be a false alarm ?

  • User Avatar
    0
    sedulen created

    Hi @ismcagdas,

    That's great news. I think you are right that this is a false negative. It may be observed in the .dump file but I dont see it often so I don't think its a substantial performance issue.

    -Brian