Skip to content

Tag: java

How do I implement countdown in the GUI

I wrote a piece of code in Java about a countdown function in GUI, but I found that when I wanted to use timers and threads, time could not be refreshed in the GUI. Sleep () {I know this will be a function in the main thread, but later I ran it. It is not, and I don’t understand}. So

MDC value missing from log

My app is running on amazon SWF and I want to be able to see all the logs of a specific request using an slf4j MDC. For some code flows I see the MDC in the logs, but for some they are missing, for example: I have these 2 lines of code one after the other: I See the log,

Jmeter Injector Heap size

We have a jmeter injector box which uses 32GB heap size for jmeter jvm. When running load tests we noticed a big dip in injecting load when GC activity happens. Anyone experienced this before? Which GC algorithm we can use here?? Answer Most probably you’re seeing so called Stop-The-World There are garb…