In our production server we found intermittent pause in execution between 2 lines of code. We are using Wildfly server v9 with JAVA v8. log4j for logging.
What could be the possible reason for such pause in execution?
We have already checked CPU usage which found normal. Also checked GC logs and not found GC pause time during that time period.
Application log:
2020-01-24 06:39:03,473 DEBUG [com.test.control.common.TestController] (default task-231) ## Response Data:
2020-01-24 06:39:03,485 DEBUG [com.test.control.common.TestController] (default task-231) TimeTaken to display results:[340]
2020-01-24 06:39:09,792 DEBUG [com.test.control.common.TestController] (default task-231) Exit: SEARCH_FILTER_DATA
2020-01-24 06:39:09,793 DEBUG [com.test.control.common.TestController] (default task-231) Exit: TestController
Code Snippet:
if(log.isDebugEnabled())
log.debug("TimeTaken to display results:[" + (endTime - startTime) + "]");
if(log.isDebugEnabled())
log.debug("Exit: SEARCH_FILTER_DATA");