Nuclos client info server: NuclosClientThreadContextHolder, stack trace, DEV mode, round trip, SQL, 3.14, analysis. |
Language: Deutsch · English
Analyze client call sites on the server – DEV mode and NuclosClientThreadContextHolder.
On this page |
Intended purely for testing, e.g. to analyze unnecessary round trips and SQL queries. |
From version 3.14, the client's call sites can be processed on the server. The client must be started in DEV mode; then its thread stack trace is sent to the server.
try {
NuclosClientThreadContextHolder holder = SpringApplicationContextHolder.getBean(NuclosClientThreadContextHolder.class);
if(holder.isSupported()) {
LOG.info(holder.getNuclosStackTraceElement().toString());
}
} catch(Exception e) {
// handle Exception here
} |
NuclosClientThreadContextHolder.getNuclosStackTraceElement() returns all elements with nuclos in the package name.