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)