JDK-6317122 : Unnecessary call to AccessController.doPrivileged in RMI/JRMP connector server
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 5.0u5
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-08-29
  • Updated: 2010-07-29
  • Resolved: 2005-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u6 b03Fixed
Related Reports
Relates :  
Description
Wrapping the remote operations with the connector server creator access
control context is not necessary in the JMX RMI/JRMP connector server as
the RMI/JRMP implementation already does that. This means that when using
the RMI/JRMP connector server every time a new connection is opened an
unnecessary call to AccessController.doPrivileged() is carried out. This
could be avoided.

The fix for the CR 6293356 carried out in 5.0u5 was implemented at
a level where the JMX code was shared by the two connector server
implementations, i.e. the RMI/JRMP and the RMI/IIOP connector servers.

In order to improve the performance of the applications using RMI/JRMP
and that repeatedly open a connection, perform several operations and
then close the connection immediately, the fix should be implemented
in the RMI/IIOP connector server only.

Comments
EVALUATION Move the code wrapping the operation with the connector server creator access control context from the generic JMX RMI classes to the specific JMX RMI/IIOP classes.
29-08-2005