On 20/05/2021 6:25 pm, Colin Paice wrote:
Are there any magic options to say "load a jar - just once ...  not once
for each thread", or to tell Java to load from the shared classes cache?
It feels like an old (non java) problem of having a non reentrant load
module, so it was loaded from disk every time, instead of reusing the
in-memory copy.


I doubt that Java is loading the classes multiple times. I think the class cache is more for sharing between different instances of the JVM.

I suspect that there is something else in the jar that is being accessed that is not cached. I see that jar contains a number of properties files e.g.
/com/ibm/eserver/zos/racf/nls/IRRExceptionMessages.properties
I wonder whether they could be what is being repeatedly loaded?

Andrew Rowley

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to