Lite example do concurrent test, not even 1000 people can no

lpp168
lpp168
edited December 2012 in Photon Server
Lite example do concurrent test, not even 1000 people can not get hung up?
9260: 22:05:31.064 - Server Starting...
9260: 22:05:31.064 - Tick count: 179435033 (wraps in: 47.6335 days)
9260: 22:05:31.064 - Tick count 64: 179435033
9260: 22:05:31.064 - Photon Version: 3.0.27.1684
9260: 22:05:31.064 - PID: 8588
9260: 22:05:31.064 - Current directory is: C:\Windows\system32
9260: 22:05:31.064 - Changing current directory to: D:\GameServer\bin_Win64
9260: 22:05:31.064 - Config File: D:\GameServer\bin_Win64\PhotonServer.config
9260: 22:05:31.069 - Not using performance counters as they are not currently installed. Run the service with /InstallCounters to install them.
9260: 22:05:31.070 - Max message size: 512000
9260: 22:05:31.071 - S2S: MaxInboundMessageSize: 512000
9260: 22:05:31.071 - S2S: MaxOutboundMessageSize: 512000
9260: 22:05:31.071 - S2S: No inactivity timeout
9260: 22:05:31.073 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
9260: 22:05:31.073 - Per peer bandwidth limit
9260: 22:05:31.073 - Transmit Rate Limit: 256 KB/Sec
9260: 22:05:31.073 - Limit period: 200ms
9260: 22:05:31.073 - Limit per period: 52428 bytes
9260: 22:05:31.073 - Max queued data for transmission per peer: 512000 bytes
9260: 22:05:31.073 - Minimum retransmit timeout: 200
9260: 22:05:31.073 - Minimum ENet timeout: 5000ms
9260: 22:05:31.073 - Maximum ENet timeout: 30000ms
9260: 22:05:31.073 - Outbound ENet: MaxInboundMessageSize: 512000
9260: 22:05:31.073 - Outbound ENet: MaxOutboundMessageSize: 512000
9260: 22:05:31.108 - About to load runtime: PhotonHostRuntime.PhotonDomainManager from PhotonHostRuntime, Culture=neutral, PublicKeyToken=02C301B61B060C4D
9260: 22:05:31.108 - CLRBaseDirectory set to "D:\GameServer"
9260: 22:05:31.108 - Optimising event broadcast for 20 or more peers
9260: 22:05:31.111 - About to load CLR - versions available:
9260: 22:05:31.111 - v2.0.50727
9260: 22:05:31.111 - v4.0.30319
9260: 22:05:31.111 - No preference in configuration file, will load latest.
9260: 22:05:31.111 - About to load version: "v4.0.30319"
9260: 22:05:31.112 - Loaded version: "v4.0.30319"
9260: 22:05:31.458 - Photon host runtime loaded
9260: 22:05:41.613 - License is valid.
9260: 22:05:41.613 - Licensed for unlimited concurrent connections.
9260: 22:05:41.613 - Max Reliable Data In Transit (awaiting ACKs) per peer : 51200 bytes
9260: 22:05:41.613 - Per peer bandwidth limit
9260: 22:05:41.613 - Transmit Rate Limit: 256 KB/Sec
9260: 22:05:41.613 - Limit period: 200ms
9260: 22:05:41.613 - Limit per period: 52428 bytes
9260: 22:05:41.613 - Max queued data for transmission per peer: 512000 bytes
9260: 22:05:41.613 - Minimum retransmit timeout: 200
9260: 22:05:41.613 - Minimum ENet timeout: 5000ms
9260: 22:05:41.613 - Maximum ENet timeout: 30000ms
9260: 22:05:41.613 - CENetHost: Using Timer Wheel
9260: 22:05:41.614 - About to load application: Tcg from Photon.Tcg.Server
9260: 22:05:41.614 - Auto restart is enabled for application, existing connections will be terminated during restart
9260: 22:05:41.614 - Application will restart 1000ms after the last change detected
9260: 22:05:41.614 - Application will restart if files matching the following are changed: "dll;config"
9260: 22:05:41.614 - Application will NOT restart if files matching the following are changed: "log4net.config"
9260: 22:05:41.816 - Application: "Tcg" started in app domain: 2
9260: 22:05:41.816 - About to load application: Lite from Lite
9260: 22:05:41.816 - Auto restart is enabled for application, existing connections will be terminated during restart
9260: 22:05:41.816 - Application will restart 1000ms after the last change detected
9260: 22:05:41.816 - Application will restart if files matching the following are changed: "dll;config"
9260: 22:05:41.816 - Application will NOT restart if files matching the following are changed: "log4net.config"
9260: 22:05:41.962 - Application: "Lite" started in app domain: 3
9260: 22:05:41.962 - About to load application: CounterPublisher from CounterPublisher
9260: 22:05:41.962 - Auto restart is enabled for application, existing connections will be terminated during restart
9260: 22:05:41.962 - Application will restart 1000ms after the last change detected
9260: 22:05:41.962 - Application will restart if files matching the following are changed: "dll;config"
9260: 22:05:41.962 - Application will NOT restart if files matching the following are changed: "log4net.config"
9260: 22:05:42.108 - Application: "CounterPublisher" started in app domain: 4
9260: 22:05:42.108 - About to load application: Policy from Policy.Application
9260: 22:05:42.213 - Application: "Policy" started in app domain: 5
9260: 22:05:42.214 - Adding TCP listener on :0.0.0.0: 5055 with a listen backlog of: 150
9260: 22:05:42.214 - TCP inactivity timeout: 300000ms
9260: 22:05:42.214 - MaxInboundMessageSize: 512000
9260: 22:05:42.214 - MaxOutboundMessageSize: 512000
9260: 22:05:42.214 - Adding TCP Policy listener on :0.0.0.0: 843 with a listen backlog of: 150 and routing to application: "Policy"
9260: 22:05:42.214 - TCP inactivity timeout: 1000ms
9260: 22:05:42.214 - Adding TCP Policy listener on :0.0.0.0: 943 with a listen backlog of: 150 and routing to application: "Policy"
9260: 22:05:42.214 - TCP inactivity timeout: 1000ms
9260: 22:05:42.236 - Service is running...
8004: 22:06:47.983 - Custom crash dump created: D:\GameServer\bin_Win64\log\PhotonSocketServer.exe-20121129-220646-8588-8004-1.dmp"
8004: 22:06:47.983 - Purecall



http://113.240.233.104/PhotonSocketServ ... 8004-1.dmp

Comments

  • Sorry but I can't download your logs or dmp - I'm getting

    404 - 找不到文件或目录。
    您要查找的资源可能已被删除,已更改名称或者暂时不可用。


    Please upload the logs and dmp's to a server where I can download.
    For this kind of issues please send an email to support@exitgames.com.
  • now,you can download my logs or dmp
  • Yes - thank you - I'm downloading now.

    From the logs so far it seems you are able to reproduce the issue with your test.
    Could you send us the test you are using?
  • Contacted you per mail for more details.
  • This is my Test
  • Thank you - for the test. We managed to reproduce the issue. We sen't you the download link to a fix and are preparing the next public release.
  • I download your test project and run. I use ExitGames-Photon-Server-SDK_v3-0-37-3631.

    In ConfigMgr.cs . I change `Count` value from 1000 to 10.
    [code2=csharp]namespace PressureTest
    {
    class ConfigMgr
    {
    public static string AccountFormat = "test{0}";
    public static int AccountStart = 10000;
    public static int Count = 10;//1000
    public static int ActionInterval = 1000;
    public static string ServerAddress;
    public static string LoginUrl;
    public static int RoomType = 2;
    public static int TimeType = 3;
    public static int CountPerSecond = 50;
    }
    }[/code2]

    In TestPlayer.cs , I change `ConnectionProtocol.Tcp` to `ConnectionProtocol.Udp`.
    [code2=csharp]public TestPlayer(int i)
    {
    id = i;
    peer = new PhotonPeer(this, ConnectionProtocol.Udp);//new PhotonPeer(this, ConnectionProtocol.Tcp);
    }[/code2]

    And add try-catch in `Service()`.
    [code2=csharp]public void Service()
    {
    try
    {
    while (true)
    {
    if (this.peer != null)
    this.peer.Service();
    Thread.Sleep(50);
    }
    }
    catch (Exception e)
    {
    Console.WriteLine(e);
    }
    }[/code2]

    The question is , I get the following exception. If I want to managed to reproduce the issue, the `Count` value must be set to 1000?

  • This looks like a bug we fixed a few weeks ago in the client library.
    I'm sorry you had to run into this, despite being fixed in the client libs.
    The tester most likely doesn't use the latest client library because it was downloaded with the server SDK.

    You can download the client lib and replace the one for the tester with it. Get Photon-DotNet_v3-0-1-14_SDK.zip and update your lib. Maybe you need some minor adjustments to the Tester, as well.

    This should fix your issue.
    I will make sure the next server SDK gets a fresh lib.