Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Can VisualVM profiling be used with AEM?

Avatar

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
Level 3

21-03-2019

Every time I turn the profiler on it hangs. I can't get responses back from my searches. I set up visualVM as per the standard Oracle docs (Java VisualVM) and connected to my AEM (author) instance and turn profiling on but whenever I make a request, it simply hangs.

Has any one used VisualVM profiling with AEM successfully? Is there anything special that I need to do?

Replies

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

21-03-2019

It should work per Monitoring and Maintaining Your AEM instance

Try this: java - VisualVM Calibration Step Hangs with Windows 10 - Stack Overflow

The solution is to start VisualVM from command-line using:

jvisualvm.exe "-J-Dorg.netbeans.profiler.separateConsole=true"

Avatar

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
Level 3

21-03-2019

I'm actually running on OS X not Windows 10. I tried your suggestion anyway and it doesn't seem to help. Still hangs.

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

21-03-2019

Try this to see the errors (if any) in terminal

jvisualvm "-J-Dnetbeans.logger.console=true"

Avatar

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
Level 3

21-03-2019

Not really. There is some start up logging (application classpath, etc). When I attempt to profile the application, I just get this:

INFO [org.netbeans.ui.metrics.profiler]: Profiler Attach

INFO [org.netbeans.ui.metrics.profiler]: Profiler Settings

WARNING [javax.management.remote.misc]: Failed to check the connection: java.net.SocketTimeoutException: Read timed out

Avatar

Avatar
Level 1
ameesht29076763
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ameesht29076763
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ameesht29076763
Level 1

21-03-2019

As per Monitoring and Management Using JMX Technology - Java SEMonitoring and Management Guide -

Password authentication for remote monitoring is enabled by default. To disable it, set the following system property when you start the Java VM.

You could either try - -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

or provide password using -Dcom.sun.management.jmxremote.password.file

Couple of references -

Avatar

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
Level 3

30-04-2019

I tried that option but it still hangs when I try to start profiling.

Avatar

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

135 likes

Total Posts

541 posts

Correct Reply

164 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile

Avatar
Validate 25
MVP
PuzanovsP
MVP

Likes

135 likes

Total Posts

541 posts

Correct Reply

164 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Contributor 2
Ignite 10
View profile
PuzanovsP
MVP

01-05-2019

Dear J,

Just tried connecting from Windows 10(latest update from Microsoft) to AEM 6.4 SP2 with

java version "1.8.0_201"

Java(TM) SE Runtime Environment (build 1.8.0_201-b09)

Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)

and visualvm_142 works like magic.

When starting both AEM and visual_vm make sure you have sufficient permissions to run both applications. As some corporate laptops are locked from doing even basic functionality.

win10.PNG

Regards,

Peter