locked
first request very slow large sc-win32-status 64 RRS feed

  • Question

  • User-1634078688 posted

    server is windows-server-2016

    iis inprocess .net core 3.1.0

    1.first request very slowly more than 25s.

    2.iis log has sc-win32-status 64 and timetoken is 0.

    more than 200/s,but client request once.

    why?

    add iis log

    LogRow time csMethod csUriQuery scStatus scSubstatus scWin32Status csBytes timeTaken
    28540 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28541 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28542 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28543 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28544 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28545 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28546 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28547 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28548 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28549 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 15
    28550 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28551 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28553 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28554 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28555 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28556 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28557 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28558 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28559 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 15
    28560 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28561 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28562 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 15
    28563 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28564 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 15
    28565 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28566 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    28567 2020-01-01 02:32:36.000 POST tickes=1600309958 200 0 64 615 0
    same in 1s,
    Monday, September 21, 2020 12:26 AM

All replies

  • User1120430333 posted

    And the first request is doing what exactly?

    Monday, September 21, 2020 3:32 AM
  • User-1634078688 posted

    nothing.only app init.

    demo code like this

     [HttpPost]
            public async Task<IActionResult> Join(GetOneLottery body)
            {
                try
                {
    //redis get 
                    var getclicknum = RedisBuyNum.GetHasNumAsync($"wait{body.shopid}-{body.openid}-{body.lotteryno}");
                    if (getclicknum > 0)
                    {
                        RedisBuyNum.SetNumAsyncv2($"wait{body.shopid}-{body.openid}-{body.lotteryno}", (getclicknum+=1));
                        if (getclicknum >= 10)
                        {
                            RedisBuyNum.SetNumAsyncv2($"wait{body.shopid}-{body.openid}-{body.lotteryno}", (getclicknum += 1),600);
                        }
     
                        return new JsonResult(new
                        {
                            ErrorNo = 1,
                            ErrorInfo = $"too fast ,you has click{getclicknum}次",
                            Data = ""
                        });
                    }
    //other 
    return new JsonResult(new
                        {
                            ErrorNo = 0,
                            ErrorInfo = $"",
                            Data = "has do!"
                        });
    }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                    this._logger.LogError(ex.ToString());
                    return new JsonResult(new
                    {
                        ErrorNo = 0,
                        ErrorInfo = $"{ex.Message ?? ""}",
                        Data = ""
                    });
                }
    }
    Monday, September 21, 2020 3:38 AM
  • User-1634078688 posted

    Sorry, I remember that I have already posted it once. But it seems unsuccessful.

    Then I will post it again. Nothing. It is a counter for redis. Inform customers not to click too fast.

    Monday, September 21, 2020 4:19 AM