I have main application and this application have dependency on custom lib which use AOP. And when I deploy main application I need to specify this -javaagent to make dependency work.
When I specified -javaagent for application I only get one GC log and no additional info.
Command:
java -Dlog4j.logLevel=ALL -javaagent:aspectjweaver.jar -Xlog:gc -Xlog:gc* -Daj.weaving.verbose=true -Dsun.misc.URLClassPath.disableJarChecking=true -cp application org.springframework.boot.loader.JarLauncher
LOGS:
[0.018s][info][gc] Using G1
[0.081s][info][gc,init] Version: 17.0.2+8-86 (release)
[0.081s][info][gc,init] CPUs: 16 total, 4 available
[0.081s][info][gc,init] Memory: 10240M
[0.081s][info][gc,init] Large Page Support: Disabled
[0.081s][info][gc,init] NUMA Support: Disabled
[0.081s][info][gc,init] Compressed Oops: Enabled (Zero based)
[0.081s][info][gc,init] Heap Region Size: 4M
[0.081s][info][gc,init] Heap Min Capacity: 8M
[0.081s][info][gc,init] Heap Initial Capacity: 8G
[0.081s][info][gc,init] Heap Max Capacity: 8G
[0.081s][info][gc,init] Pre-touch: Disabled
[0.081s][info][gc,init] Parallel Workers: 4
[0.081s][info][gc,init] Concurrent Workers: 1
[0.081s][info][gc,init] Concurrent Refinement Workers: 4
[0.081s][info][gc,init] Periodic GC: Disabled
[0.081s][info][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800bdf000-0x0000000800bdf000), size 12447744, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
[0.081s][info][gc,metaspace] Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824
[0.081s][info][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
That's basically all. I am very curious why there is no more logs or info about error.
I use aspectJWeaver as explicit jar in my k8s pod. It works on my machine but I have problems remotely.
I've tried to change path for lib but that doesn't work.
Some specifics I've removed from run command to not share it