请教:performance issue# Java - 爪哇娇娃
p*s
1 楼
我单位有个系统是做server用,理想的情况想一个server可以带12~15个clients。
但现在带个4~5个就慢得要死,
不知道问题在哪里。
这个系统主要功能是每1妙刷新不到100个item的status。
这个刷新我们用了synchronization 对每一个item。
我自己认为这个可能是performance问题的根本。
因为我们根本没必要对每一个itemsynchronization。
我们只需要对同一个item的不同status的update, synchronization。
不知道谁能给我点指点,
这里synchronization应该怎么实现?
但现在带个4~5个就慢得要死,
不知道问题在哪里。
这个系统主要功能是每1妙刷新不到100个item的status。
这个刷新我们用了synchronization 对每一个item。
我自己认为这个可能是performance问题的根本。
因为我们根本没必要对每一个itemsynchronization。
我们只需要对同一个item的不同status的update, synchronization。
不知道谁能给我点指点,
这里synchronization应该怎么实现?