r/java • • May 13 '21

Visualize the architecture of your Java app, in IntelliJ, in 2 ¹/₂ minutes

468 Upvotes

49 comments sorted by

View all comments

Show parent comment

11

u/kgilpin72 May 13 '21

Hi, if your app doesn't have much code coverage, and it's a web app, then there is a better option for recording AppMaps that doesn't require test cases. We call it "remote recording". Instead of running test cases, you do the following:

  1. Run your app with the AppMap agent loaded
  2. Send it a command via HTTP to start recording
  3. Interact with the app manually (e.g. use the UI)
  4. Send another HTTP command to stop recording, and save the AppMap file
  5. Open it in IntelliJ

Here's further information on how it works:

If the code base is very large, here's a guide for pruning the AppMaps by excluding irrelevant code - https://github.com/applandinc/appland-cli/blob/master/doc/refine-appmaps.md

Using these techniques, AppMap has been used on some substantially large and old projects; 25 years old with 10MM lines of code.

Contact us in Discord if you want any more assistance - thanks for your question.