I could be wrong but AFAIK the IS has it own custom classloader, when you load package the IS loader “loads” all referenced classes from the package, and when you disable a package it does a GC on them.
The less packages you have enabled, the faster IS will load. Loading a jar/class file in the classloader is time consuming.
However if you have resources not used, even if they are loaded, the GC will remove them from memory and keep references to load them again if needed.
When unloading the package IS will perform a GC and if they were on memory you will see a mem decrease, but if they were not used you won’t notice.
In summary the wording “stored in memory” is not fully correct, is better to say “they are made available in the classloader”.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods