Question

In websphere 7 is there any way to limit the verbose classloading to log only classes from certain packages. Say I want to see only classes which are loaded from package com.mycompany.* ?

Was it helpful?

Solution

As specified in the Class-loader runtime diagnostics section of IBM SDK and Runtime Environment Java Technology Edition Version 6 (Which is the Java WebSphere uses)

You can set the -Dibm.cl.verbose=<class_expression> variable in order to do what you want, in your case -Dibm.cl.verbose=com.mycompany.*

In WebSphere Admin Console under Application servers > server1 > Process definition > Java Virtual Machine instead of checking Verbose class loading just add the variable to Generic JVM arguments and that should do the trick

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top