Results 1 to 3 of 3

Thread: Performance problem ...

  1. #1
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21

    Performance problem ...

    Hello,

    I've some performances issues, so if you have some tips to fix them, it is welcome.

    My application looks like this:

    - A server S1, the glacier router, and n clients.

    - Each client create a session through the Glacier2 and register a callback.

    - On the server side, I've a thread that produce lots of data (depends on the hour of the day), data are stored inside a vector protected by a mutex (When i insert the data inside the vector i tag them with the local time). So i've another thread that consumes these data and try to send them for each listener subscribed by clients.


    It seems that there are too much data to send for each listener. Because just before to send the data, i compare the current local time with the one of the data and the difference in superior than 3 seconds. Moreover, Glacier2, clients, server are running on the same computer without consume more than 10% of the CPU.

    Have you an idea how can i optimize the model ?

    Thank you.
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

  2. #2
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21
    I've analysed the problem more deeper, and i think that i need to make some changes inside my code. Because i saw that the server try to send several thousand query in one seconds ...

    Joel
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

  3. #3
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Joel,

    Yes, you should do some profiling (either using a profiler tool or adding some profiling code to your application) to figure out the bootleneck. If sending the requests to the clients through Glacier2 is taking too much time, you should try to send less updates.

    Optimizing the server to send the requests in batches might also help (assuming the requests are oneway requests). See the Ice manual for more information on batched requests (section 30.15 and 40.9.3 in particular).

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How about the performance of 3.4?
    By linkman in forum Help Center
    Replies: 1
    Last Post: 03-05-2010, 07:37 PM
  2. about performance
    By fengxb in forum Help Center
    Replies: 7
    Last Post: 01-12-2007, 05:55 AM
  3. Replies: 11
    Last Post: 12-06-2005, 06:52 AM
  4. Performance Problem!
    By YingchunH in forum Help Center
    Replies: 4
    Last Post: 05-25-2005, 09:27 AM
  5. Performance
    By Ivan in forum Help Center
    Replies: 28
    Last Post: 04-12-2005, 06:46 AM

Posting Permissions

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