[quote author=Fra link=topic=1769.msg5617#msg5617 date=1154439954]
Shkei wrote:
[quote]why does 7.x handle memory better if it requires more memory from the start and uses 20% more per transaction?[/quote]
Yeah, it requires more memory per statistic.
1.But are you running out memory? Can you check how high it is?
2.They have removed some defects in memory usage in StatServer 6.5 release. Could you post the exact release you are running?
3. Have you checked the logs options?
4. I assumed your db is not running on the same machine, am I right?
5. How big is your ssbackup?? There are some internal problems on a 6.5.x releases that bring SS to loop and to consume up to 100% of CPU
[/quote]
I can actually relate to Shkei here, because we are having a somewhat of a similar problem.
One of our sites that has over 2000 agents is constantly having trouble with its CCA statserver.
Statserver version 6.5.102.26 and with about 300,000 request from datasourcer the things simply freezes.
I checked CPU and CPU idle levels drop to 20% and on an occasion or two it even hits 0%.
We are running on Suns with dual CPUs and enough memory to feed a small Polynesian island, yet once in two weeks, StatServer disconnected from T-Server with "client too slow".
I checked the network and it is operating at under 5% capacity even at peak times, so, it rules out the connection.
I then checked Solaris memory and noticed that statserver was consuming around 900 Megs, which is ok considering the specs.
I then looked at the files and noticed a huge 150MB ssbackup.00 and it hit me! When statserver spwes ssbackup.00 - it really freezes. Now, if you have your datasourcer "shock and awe" bombardment

take place at the same time, you are really doomed.

I changed the parameters specifying how often ssbackup is dumped and it significantly improved statserver performance, yet, we still get an occasional disconnect when ssbackup coincides with datasourcer bombardment. The problem is that statserver is a single-task application.
So, unless it is doing so already, it should:
1. have an option for throttling requests from datasourcer
2. spawn a separate process for writing down ssbackup.000 file
I also think it is simply ridiculous that we cannot have a fullblown log because it affects the performance. Having a separate thread doing just that would not slow down machine performance on a multi-CPU environment. So, I add
3. if not doing so already, have logging as a separate process
StatServer 7.x is faster, really? Anyone has done any studies to confirm? I am hesitant to upgrade to 7.x our historical reporting because we would need to check all stats and this will take time...