JBoss slows after 24 hours for no apparent reason

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x
  • Java 7

Issue

  • Our JBoss server mysteriously slows after a day or so for no apparent reason. There is no resource contention (no high memory, swapping, CPU, or heavy disk usage), no GC issues, and no threads persisting in blocks, waits or sleeps. Threads remain runnable with available CPU time but despite that everything is considerably slower.

Resolution

if not "%PRESERVE_JAVA_OPTS%" == "true" (
  rem Add tiered compilation, if supported (64 bit VM), and not overriden
  echo "%JAVA_OPTS%" | findstr /I "\-XX:\-TieredCompilation \-client" > nul
  if errorlevel == 1 (
    "%JAVA%" -XX:+TieredCompilation -version > nul 2>&1
    if not errorlevel == 1 (
      set "JAVA_OPTS=-XX:+TieredCompilation %JAVA_OPTS%"
    )
  )
)

Root Cause

Diagnostic Steps

  • Check if -XX:+TieredCompilation is present in the JVM options used by JBoss through the boot/server log start up output
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.