[omniORB] 100% CPU-Usage if settting ScanGranularity to 0

Empting Arnd Arnd.Empting@kst.siemens.de
Mon, 6 Nov 2000 13:50:20 +0100


Hi,

I have to connect between an Orbix (3.0c) client 
and an omniORB (3.0.1) server on Windows NT.

If the connection is idle for a long time Omni will cut it. 
When the Orbix-client gets his "wakeup-call" he tries to 
invoke an operation on the Omni-Server and then 
it throws an Exception :

[Orbix-Exception]
 - end of connection
           Reason: Channel closed and noReconnectOnFailure enabled
            (Possibly your target server has crashed/exited)
  [Completion status : COMPLETED_NO]

Easy solution would be to disable noReconnectOnFailure  
but it wont work whatever i try to set that value to. 

The other solution is to set the scanGranularity to 0 as 
mentioned in the Omni-Docu.

But if i do that i get 100% CPU-Usage.
Instead i had to set the idleConnectionScanPeriod to 0.

Someone else run into this kind of problem before? 
And maybe that granularity piece of code is worth to 
have a look at from the developer side?!

Regards
		Arnd Empting