[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: CORBA performance fix: reuse the opened socket.
From: |
Meskauskas Audrius |
Subject: |
[cp-patches] FYI: CORBA performance fix: reuse the opened socket. |
Date: |
Tue, 7 Jun 2005 15:27:21 +0200 |
Profiling shows that it is a real disaster to open/close a socket each time
the remote method is called;
the duration of this operation can become a "bottleneck", limiting the
performance of the whole application. I addition,
several thousands of the open/close steps may hit the bugs in the operating
system or runtime environment.
The attached patch keeps the opened, but unused socket up till 7 seconds and
has possibility to reuse it.
This behavior is much closer to the Suns CORBA client/server system than the
previous strategy to
have a single socket per call. I have also implemented the supplementing
feature to close the socket
explicitly, when required.
The changed version shows no regression in thetests we currently have.
2005-06-07 Audrius Meskauskas <address@hidden>z
* gnu/CORBA/IOR_Delegate.java (release),
gnu/CORBA/IOR_contructed_object.java (finalize):
Close the associated socket if the finalizer is called.
gnu/CORBA/gnuRequest.java (submit),
gnu/CORBA/Functional_ORB.java (serveStep): Try to reuse the opened sockets.
* gnu/CORBA/SocketRepository.java,
gnu/CORBA/GIOP/CloseMessage.java: New files.
Reuse_sockets.patch
Description: Binary data
SocketRepository.java
Description: Text Data
CloseMessage.java
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: CORBA performance fix: reuse the opened socket.,
Meskauskas Audrius <=