Heap Dump Generation in AEM through JMX console

Statement - Heap Dump generation
Environment - AEM 6.3 GA

Solution :

  • Check the test1.prof parallel to the crx-quickstart folder.
  • That's  it!

Java VM Daignostic commands to run GC, Finalization,vmSystemProperties,vmVersion,vmUptime and vmCommand line

Statement - Java VM Diagnostic command
Environment - AEM 6.3 GA

Solution :
Operations
Return Type
Name
java.lang.String
gcClassHistogram([Ljava.lang.String; arguments)
Provide statistics about the Java heap usage.
java.lang.String
gcClassStats([Ljava.lang.String; arguments)
Provide statistics about Java class meta data. Requires -XX:+UnlockDiagnosticVMOptions.
java.lang.String
gcRotateLog()
Force the GC log file to be rotated.
java.lang.String
gcRun()
Call java.lang.System.gc().
java.lang.String
gcRunFinalization()
Call java.lang.System.runFinalization().
java.lang.String
help([Ljava.lang.String; arguments)
For more information about a specific command use 'help '. With no argument this will show a list of available commands. 'help all' will show help for all commands.
java.lang.String
jfrCheck([Ljava.lang.String; arguments)
Checks running JFR recording(s)
java.lang.String
jfrDump([Ljava.lang.String; arguments)
Copies contents of a JFR recording to file. Either the name or the recording id must be specified.
java.lang.String
jfrStart([Ljava.lang.String; arguments)
Starts a new JFR recording
java.lang.String
jfrStop([Ljava.lang.String; arguments)
Stops a JFR recording
java.lang.String
threadPrint([Ljava.lang.String; arguments)
Print all threads with stacktraces.
java.lang.String
vmCheckCommercialFeatures()
Display status of commercial features
java.lang.String
vmCommandLine()
Print the command line used to start this VM instance.
java.lang.String
vmFlags([Ljava.lang.String; arguments)
Print VM flag options and their current values.
java.lang.String
vmNativeMemory([Ljava.lang.String; arguments)
Print native memory usage
java.lang.String
vmSystemProperties()
Print system properties.
java.lang.String
vmUnlockCommercialFeatures()
Unlock commercial features
java.lang.String
vmUptime([Ljava.lang.String; arguments)
Print VM uptime.
java.lang.String
vmVersion()
Print JVM version information.

  • That's  it!

How to clear blocked queue or forced-to retry blocked queue in AEM through JMX console

Statement - How to clear and force retry blocked queue
Environment - AEM 6.3 GA

Solution :



  • Go to the Felix console URL: http://localhost:4502/system/console/jmx
  • Search for publish agent as shown in below screenshot
  • Open the Publish agent and you can validate whether the queue is blocked or not,If queue is blocked, you can see the no of items blocked in queue as per the screenshot.
  • you can see there are 4 items blocked in queue, Click on the queueCLear() method --> Click on Invoke to clear the blocked queue and reffresh the console post click on invoke as shown in below screenshot.

  • That's  it!