[SNMP4J] Performance hotspot in Cipher.getInstance() method call
Praveen Jain
praveen.jain at esq.com
Thu May 30 13:03:24 CEST 2013
We are using SNMP4J version 1.11.4 for a legacy application running in Java
1.4 environment. The application behaved slower than expected and profiling
showed that there is hotspot in PrivDES.encrypt() method. This method in
turn calls javax.crypto.Cipher.getInstance(String) method (apparently on
each message transmission) and Cipher.getInstance(String) is the expensive
and CPU intensive call. Can you please suggest if:
1. This might be due wrong way of calling SNMP4J api (and also point
to a reference code for correct usage to prevent this problem)
2. Is this an inherent problem with Java 1.4 code?
3. Is this a problem with SNMP 1.11.4 code (it is not caching the
obtained cipher object)?
Thanks in advance for the help.
-Praveen
More information about the SNMP4J
mailing list