+ Reply to Thread
Results 1 to 4 of 4

Thread: Some Problem about electrotank server

  1. #1
    Senior Member
    Join Date
    May 2012
    Posts
    144
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Some Problem about electrotank server

    Hi All!

    I see some problem when develope game. Please fix it help me.

    - Problem 1: Sometime, when client send message A after send message B to server but client receive response message B before response message A.
    - Problem 2: Sometime, client spend long time to receive response message ( > 2s)
    - Problem 3: I using Database With JDBI same example of Electrotank but I see it handle insert slowly on database. Please show the way can handle on database fast help me
    - Problem 4: Sometime, still exist room is empty. it have not player
    - Problem 5: many times, user can not login to electroserver but server is nonarm. Player login before still play game. But if player logout game. They can not login game again.

    Now, We need fix some bug to develope product. Please help me soon

  2. #2
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,209
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    We need to address these issues one at a time. For problem 5, see UserNameExists. For problem 2, check your Garbage Collector settings.

    For problem 3: the DatabaseWithJDBI example keeps all information in memory on the ES5, and persists it rather slowly. Try switching to the DbLoginMySQL example for something that might be faster. Inserting into a database will be slow if your database is slow of course.

    For the other problems, please describe each of them in full detail, with each problem in a separate thread. It's far too confusing when one thread tries to fix multiple problems.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  3. #3
    Senior Member
    Join Date
    May 2012
    Posts
    144
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tcarr View Post
    We need to address these issues one at a time. For problem 5, see UserNameExists. For problem 2, check your Garbage Collector settings.

    For problem 3: the DatabaseWithJDBI example keeps all information in memory on the ES5, and persists it rather slowly. Try switching to the DbLoginMySQL example for something that might be faster. Inserting into a database will be slow if your database is slow of course.

    For the other problems, please describe each of them in full detail, with each problem in a separate thread. It's far too confusing when one thread tries to fix multiple problems.
    Hix. I don't think so.

    1. about problem 5: we already add code to handle UserNameExists:
    if (getApi().isUserLoggedIn(context.getUserName())){
    EsObject esObject = new EsObject();
    esObject.setString(Field.Action.getName(), "evict");
    esObject.setString("evictReason", "Evict user '"+context.getUserName()+"' from previous session 'cause duplicate login");
    getApi().evictUserFromServer(context.getUserName() , esObject);
    }

    That mean: Electrotank server sometime crashes, User cannot login but system performance is normal (about 200 user)

    2. about problem 3: I see DbLoginMySQL example also used JDBI. I do not see the difference

    3. about problem 4: example: Room A has 3 user. then a time, All leave room --> room is empty, there is not any user. But this room is not destroy by electrotank

  4. #4
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,209
    Thanks
    80
    Thanked 1,086 Times in 1,075 Posts
    Start a separate thread for EACH issue. In each thread, give more details - there isn't enough information here for me to help you, and it's extremely confusing as well. Help me on this and I'll be glad to help you.
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts