Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2006
joel vennin 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)
Reply With Quote
  #2 (permalink)  
Old 08-22-2006
joel vennin 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)
Reply With Quote
  #3 (permalink)  
Old 08-22-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IceGrid startup performance and CPU usage "problem" kovacm Comments 11 12-06-2005 07:52 AM
Performance Problem! YingchunH Help Center 4 05-25-2005 10:27 AM
Performance Ivan Help Center 28 04-12-2005 07:46 AM
Ice Performance marc Announcements 0 03-28-2005 08:29 PM
Ice performance ? ChMeessen Comments 5 09-25-2003 12:47 PM


All times are GMT -4. The time now is 11:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.