Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automate JAVA memory profiling on multiple java instances at the same time

I'm relatively unexperienced in developing JAVA and I was hoping on getting some advice.

I have a modular JAVA server application setup in which a high level service that acts as a front-end interface which communicates with 8 lower level services.

In production, each service is hosted on its own machine.

I'm looking to profile a standard SE development environment which launches all instances locally. I am currently using eclipse and JVMmonitor.

My current workflow involves manually starting each service, followed by triggering the monitoring process on each service manually through eclipse. This workflow gets the job done, but I'm sure there is a more intelligent solution someone has come across. Most forum postings only solve monitoring one java instance.

Are there any other stand alone JAVA applications that anyone would suggest? I would like to avoid adding profiling code if possible.

like image 331
AvianFLU Avatar asked Feb 28 '26 00:02

AvianFLU


1 Answers

Most profilers allow you to profile JVMs without the need to manually start the profiler.

For example, JProfiler calls this "offline profiling" and the integration wizards in the JProfiler GUI have an option for it:

enter image description here

Disclaimer: My company develops JProfiler.

like image 93
Ingo Kegel Avatar answered Mar 01 '26 14:03

Ingo Kegel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!